Open PaperTiger7 opened 1 year ago
only 500 messages can be sent per second
this is too low, it does not make sense. over 1k~10k message per second per nginx worker should be resonable.
does the openresty and kafka server are distribution in different regions? they have very high network latency?
only 500 messages can be sent per second
this is too low, it does not make sense. over 1k~10k message per second per nginx worker should be resonable.
does the openresty and kafka server are distribution in different regions? they have very high network latency?
Thank you for your reply. the openresty and kafka server are distribution in same regions.
Hello, I have some questions when using lua-resty-lua. I wanted to avoid having to re-connect to kafka client every time a request came into Lua code, so I used something like singleton mode to make a kafka client connection and then use the same connection to send messages to kafka. I'd like to ask if this is necessary? Here's connection code.
Here's code for sending massage.
I currently have 12 servers using openrsty for message production and 3 servers for kafka clusters and 9 partitions per topic. After testing, when the concurrency is around 4000 connections, only 500 messages can be sent per second, and each message is only 30 characters long. I would like to ask how to configure to increase the number of messages sent? Looking forward to your reply.