Is it a good practice to use JMS Temporary Queue for synchronous use?

后端 未结 7 896
有刺的猬
有刺的猬 2021-01-30 18:20

If we use JMS request/reply mechanism using \"Temporary Queue\", will that code be scalable?

As of now, we don\'t know if we will supporting 100 requests per second, or

7条回答
  •  春和景丽
    2021-01-30 18:23

    Using selector on correlation ID on a shared queue will scale very well with multiple consumers.

    1000 requests / s will however be a lot. You may want to divide the load a bit between different instances if the performance turns out to be a problem.

    You might want to elaborate on the requests vs clients numbers. If the number of clients are < 10 and will stay rather static, and the request numbers are very high, the most resilient and fast solution might be to have static reply queues for each client.

提交回复
热议问题