wso2 message broker + spring integration performance -


I am using the spring integration + WSO2 message broker for my project: My stream is: < P> Step 1. Client call cool website service

Step 2. Get the link from the class and send it to the request line (via gateway)

Step 3. Request queue to the activator Get the message from, bussiness logic then send results back to the queue queue

Step 4. Crappy results and questions for the customer. Tricyca received

My question is: Why is WSO2 very slow?

This took me 1-2 seconds to complete the flow with WSO2 for only one message but when I switch to ActiveMQ it grows too much ( full stream for 1000 messages in 6 seconds) ???

My configuration is as follows:

  & lt ;! - WSO2 connection - & gt; & Lt ;! - & lt; G: jndi-lookup id = "connectionFactory" jndi-name = "qpidConnectionfactory" cache = "true" & gt; & Lt; JEE: Environment & gt; Java.naming.factory.initial = org.wso2.andes.jndi.PropertiesFileInitialContextFactory connectionfactory.qpidConnectionFactory = amqp: admin Administrator: admin @ carbon / carbon? Brokerlist = 'tcp: // localhost: 5672' & lt; / G: Environment & gt; & Lt; / JEE: JNDI-View & gt; - & gt; & Lt ;! - ActiveMQ Connection - & gt; & Lt; Been Name = "connectionFactory" class = "org.apache.activemq.ActiveMQConnectionFactory" & gt; & Lt; Property Name = "Broker URL" & gt; & Lt; Price & gt; TCP: // Local Host: 61,616 & lt; / Pricing & gt; & Lt; / Property & gt; & Lt; / Bean & gt; & Lt ;! - CB Configuration - & gt; & Lt; Int: channel id = "cbRequestChanel" & gt; & Lt; / Int: channel & gt; & Lt; Int: channel id = "cbResponseChanel" & gt; & Lt; / Int: channel & gt; & Lt; Jms: inbound-gateway request-channel = "cbRequestChanel" request-destination-name = "cbQueueRequest" connection-factory = "connectionFactory" /> & Lt; Jms: outbound-gateway id = "cbOutGateway" request-destination-name = "cbQueueRequest" answer-destination-name = "cbQueueResponse" request-channel = "cbRequestChanel" reply-channel = "cbResponseChanel" connection-factory = "connectionFactory" / & Gt; & Lt; Int: gateway id = "cb gateway" default-request-channel = "cbRequestChanel" default-reply-channel = "cbResponseChanel" service-interface = "com.test.gateway.ICBGateway" /> & Lt; Int: service-catalyst input-channel = "cbRequestChanel" method = "get" ref = "cbcctiver" & gt; & Lt; / Integer: Service-Trigger & gt; & Lt; Bean id = "cBServiceActivator" class = "com.test.activator.CBServiceActivator" />    

I tested with rabbitmq, acticemq, wso2 for the same flow and use Spring integration 2.2

results as the following:

WSO2: 1 message

Active MQ for 1-2 Second 10.000 message

Rabbit MQ: 10.000 1 second for messages.

I do not know why wso2 is very slow anyway, RabbitMQ is really strong.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -