Announcement Announcement Module
Collapse
No announcement yet.
spring amqp messageListenerContainer,performance very low Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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"?

    Comment


    • #3
      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。

      Comment


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

        Comment

        Working...
        X