GithubHelp home page GithubHelp logo

prateek-forks / goqite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maragudk/goqite

0.0 0.0 0.0 2.41 MB

Go queue library built on SQLite and inspired by AWS SQS.

Home Page: https://www.goqite.com

License: MIT License

Go 98.89% Makefile 1.11%

goqite's Introduction

goqite

Logo

GoDoc Go codecov

goqite (pronounced Go-queue-ite) is a persistent message queue Go library built on SQLite and inspired by AWS SQS (but much simpler).

Features

  • Messages are persisted in a SQLite table.
  • Messages are sent to and received from the queue, and are guaranteed to not be redelivered before a timeout occurs.
  • Support for multiple queues in one table.
  • Message timeouts can be extended, to support e.g. long-running tasks.
  • A simple HTTP handler is provided for your convenience.
  • No non-test dependencies. Bring your own SQLite driver.

Benchmarks

Just for fun, some benchmarks. ๐Ÿค“

On a MacBook Air with M1 chip and SSD, sequentially sending, receiving, and deleting a message:

$ make benchmark
go test -cpu 1,2,4,8 -bench=.
goos: darwin
goarch: arm64
pkg: github.com/maragudk/goqite
BenchmarkQueue/send_and_receive_messages           	   15885	     76166 ns/op
BenchmarkQueue/send_and_receive_messages-2         	   17215	     66464 ns/op
BenchmarkQueue/send_and_receive_messages-4         	   18106	     63733 ns/op
BenchmarkQueue/send_and_receive_messages-8         	   19184	     62530 ns/op
PASS
ok  	github.com/maragudk/goqite	7.895s

Note that the slowest result above is around 13,000 messages / second.

Made in ๐Ÿ‡ฉ๐Ÿ‡ฐ by maragu, maker of online Go courses.

goqite's People

Contributors

markuswustenberg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.