Results 1 to 4 of 4

Thread: spring amqp messageListenerContainer,performance very low

  1. #1
    Join Date
    Jul 2012
    Posts
    13

    Question spring amqp messageListenerContainer,performance very low

    MessageListenerAdapter ‘s method
    invoke

    protected Object invokeListenerMethod(String methodName, Object[] arguments) throws Exception {

    when message come in,i think this operation will lower the message cosuming performace,do u?

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,023

    Default

    Very slightly; but it gives you the convenience of using a POJO as a listener instead of being tied to the framework. You can implement the MessageListener but, if you are seeing performance problems, it is unlikely due to the use of reflection in the adapter.

    Can you describe further what you mean by "performance very low"?
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #3
    Join Date
    Jul 2012
    Posts
    13

    Default

    i just think it will degree the performance.beside that,spring-amqp only create one connection to rabbitmq broker,i don't think it's a good idea.After my test,multi-connections take a better performance than one-connection。

  4. #4
    Join Date
    Jul 2012
    Posts
    13

    Default

    Thank your reply.
    if i don't use adaper,i must write hard code for the message handle name of "handleResult"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •