Created
October 15, 2015 20:21
-
-
Save pfreixes/4cf237f833c0daa063ec to your computer and use it in GitHub Desktop.
16K amqp messages per second
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 publisher > 1 queue | |
queues = 10K | |
messages per queue = 100 | |
concurrence consumers = 20 | |
queues binded by consumer = 50 | |
qos by consumer = 40 | |
asyncronous pattern | |
Throughput got 16K messages, why ? | |
+ Threads are to slow, time(context switch) > time(select) | |
+ As many consumers more memory conumed but more faster | |
+ Decrease the number of consumers but increase the QOS => more messages in the socket buffer ready to be picked up | |
+ Rabbitmq gets randomly the next messages considering multiple binding | |
+ ^^ this is necessary, otherwise there is again resource contention. | |
+ this is because we use 1 queue per publisher |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment