简体   繁体   中英

WSO2 ESB Cache mediation to cache a config file

I need to get some configs from a my xml config file. Due to the high load it is a bad idea to read data from file for each proxy service invocation. I found smooks and cache mediators and I think these two mediators can help me but I don't know how. Also I've heard of VFS transports but since I have the large scale and high load of requests I have to reduce the service invokation or reading from files and handle this problem with some cached data in server RAM.

How about using a database to build a persistent cache, so that you can do a dblookup before reading the file. This mediation logic can be defined within the ESB where the ESB will do a DBlookup before accessing the file. Similarly for a new entry you can create a cache entry in the DB.

If you are still interested in cache mediator the following link will help [1] http://soa.dzone.com/articles/wso2-esb-cache-mediator

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