简体   繁体   中英

WSO2 ESB Asynchronous logging with better performance

We are using WSO2 ESB 4.8.0. ESB performance is decreasing When Debugging logging is enabled. We need a solution to capture request and response from ESB through log mediator and send to REST api asynchronously and the response should be sent to the client with out waiting while logging.

Please suggest any mediators or any sample tutorial how can we do logging asynchronously with out effecting any performance on ESB.

Use clone mediator and manage logging in a dedicated target

In this target, just push your log message in a JMS queue or in JMS message store (OUT_ONLY)

Dequeue this logging queue in a dedicated mediation (use a message processor if you used message store, or define a JMS Proxy reading this queue)

It's asynchronous, in your mediations, logging will be fast and if your REST API is down or slow, you will not loose any message

The solution Jean-Michel is describing is called a WireTap. If you need extra explanation or some implementation details and tricks w/WSO2 ESB check this link : http://pragmaticintegrator.wordpress.com/2013/04/16/implementing-wiretap-eip-in-wso2-esb-proxy-service/

Hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM