Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace redis cluster with nats #1

Merged
merged 8 commits into from
Dec 27, 2016
Merged

Replace redis cluster with nats #1

merged 8 commits into from
Dec 27, 2016

Conversation

esatterwhite
Copy link
Owner

The timer rebalance function was implemented with redis using rpush and blpop. with redis cluster, list keys are not shared between servers, so there is pretty high likelyhood that none of the other servers get any updates during a rebalanace.

with sentenal, there is a chance of duplicate messages.

Replacing redis with Nats using queue groups which guarantees at most once delivery of messages, and spreads work between nodes.

redis cluster and sentenal don't do lists / blpop very well
and run the risk of missing messages and duplicates
only consider it to be json, if it is an object.
strings don't need to be encoded

integration tests start
We want to unsubscribe before dispatching
messages so the node that is shutting down
doesn't get it's own messages
make sure the node going down unsubscribes first
so it doesn't get it's own messages
@esatterwhite esatterwhite merged commit b80c967 into master Dec 27, 2016
@esatterwhite esatterwhite deleted the nats branch December 27, 2016 16:21
esatterwhite added a commit that referenced this pull request Mar 17, 2020
esatterwhite added a commit that referenced this pull request Mar 18, 2020
* initial commit

* add stream and batch support

* test: adding some test

* backend: make sure to slugify location for scylla table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant