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

Add support for multiple messages per contact #13

Merged
merged 2 commits into from
Jul 10, 2017
Merged

Conversation

nicpottier
Copy link
Collaborator

This sadly complicates our lua/redis queuing even more, but it is the only way I've figured out how to satisfy both max transactions per second on channels as well as fair queueing across channels, having priorities AND spacing out messages on the same contact by a set amount of time. (currently that is at least 5 seconds [could be more depending on what is in the queue but shouldn't be if we set priorities smartly])

Typical push and pop are still in the .15ms range so performance still seems ok.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 68.01% when pulling 9466b19 on multiple-messages into 7bc7930 on master.

@nicpottier nicpottier merged commit 59d21a9 into master Jul 10, 2017
@nicpottier nicpottier deleted the multiple-messages branch July 10, 2017 16:49
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.

2 participants