A golang queue backed by redis with concurrency support
go get github.com/0x4139/ceausescu
config := ceausescu.Config{
MaxConnections:100,
RedisAddress:os.Getenv("redis"),
}
publisher := ceausescu.NewPublisher(config)
publisher.Publish("foo", "bar")
config := ceausescu.Config{
MaxConnections:100,
RedisAddress:os.Getenv("redis"),
}
subscriber := ceausescu.NewSubscriber(config)
subscriber.Work("test", 100, func(data string, err error) {
if err != nil {
panic(err)
}
})
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Well romanians will have some sort of an idea why this project is named ceaucescu
https://godoc.org/github.com/0x4139/ceausescu
TODO: MIT