0

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.

4

1 回答 1

0

使用数据库构建持久缓存怎么样,这样你就可以在读取文件之前进行 dblookup。这个中介逻辑可以在 ESB 中定义,ESB 将在访问文件之前执行 DBlookup。同样,对于新条目,您可以在数据库中创建缓存条目。

如果您仍然对缓存调解器感兴趣,以下链接将有所帮助 [1] http://soa.dzone.com/articles/wso2-esb-cache-mediator

于 2013-07-10T10:05:48.397 回答