简体   繁体   中英

Can cache mediator group same request in wso2 esb or ei?

I try to use cache mediator. But when cache dont contain response and I make two same requests, they both throw. But I want the second request wait until first will be cached. How it csn be done in WSO2 ?

There are several ways to implements this. First use queue, second use property to mark that request is going on right now.

Second solution is kind of tricky if request will fail, then faulty sequence will start, and need to reset property in that sequence.

Second what does it mean wait for first request? Hold connection and do not respond while first request will not populate cache or just respond quickly "server is too busy" (also legal).

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