Announcement Announcement Module
Collapse
No announcement yet.
Efficient clients in spring-amqp Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Efficient clients in spring-amqp

    spring-amqp module provides great apis to call rabbitMQ services.
    however, when using rabbitTemplate.convertSendAndReceive or rabbitTemplate.sendAndReceive, i find a significant
    1)overhead to creating anonymous queues for each request/reply scenario
    2)channel.cancel(consumerTag)
    when timing these overheads - it adds upto 2 milliseconds. this might look like a quibble, but that's a data
    throughput of 500 req/reply in a second.
    ..and the total throughput for 10,000 req/reply scenario turns out to be ~ 3 ms.

    IMO, from a design perspective, what might be better is to:
    1) use a pool of queues for a single client calling multiple services.
    2) use the consumer tag as a means of correlation(which is already provided by rabbitMQ apis)
    total throughput for 10,000 req/reply ~ 0.5 ms.

    Is there a possibility that spring-amqp might allow for such designs(so that we don't need to switch between client apis)?
    thanks in advance

  • #2
    We had a similar question last week http://forum.springsource.org/showth...emporary-queue

    Please go ahead and enter an 'Improvement' JIRA here https://jira.springsource.org/browse/AMQP and we'll take a look at it.

    Comment

    Working...
    X