iron_mq_java icon indicating copy to clipboard operation
iron_mq_java copied to clipboard

Push message is very slow

Open naivefun opened this issue 9 years ago • 1 comments

Hi

I'm testing on local, it takes 500+ or even 1000+ms to push a message, very slow.

How can I improve the speed? or using connection pool? Thanks.

6141522235577319120 : 1655 6141522235577461809 : 537 6141522235577461812 : 1107 6141522239872429113 : 1645 6141522239872350360 : 990 6141522239872350374 : 1653 6141522239872207044 : 1016 6141522239872207029 : 711 6141522239872350377 : 525 6141522239872429134 : 1675

naivefun avatar Apr 25 '15 04:04 naivefun

Hi, @vordio

There are several possible options:

  • You can fork this repo and try to use connection pool
  • If you need to push many messages at a time, you could push a collection of messages in one request
  • You can also move part of your code to IronWorker. In that case you could expect latency below 50ms

pyeremenko avatar Apr 27 '15 06:04 pyeremenko