Hi Ruwan, On Mon, Jan 10, 2011 at 10:32 AM, Ruwan Linton <[email protected]>wrote:
> Udayanga, may I know some usecases for this cache implementation?? Synapse > is not designed for the users to interact with the API directly. It has a > configuration language to access the API (in most of the cases, apart from > the Class mediator and so forth, and the class mediator has to be your last > option). > > One of the use cases is implementing a prefetcher. We can define a prefetching criteria under cache so that certain entries(ie:-xslt,wsdl , etc) are prefetched and cached upfront to enhance performance. So at runtime remote entries/item collections could be prefetched from cache , without contacting the registry first(otherwise first query would always be to a remote reg) .Also whenever remote reg is down we can query prefetched cache instead (and can easily employee a back-off criteria depending on the window of failure ) . Another use case may be implementing a distributed cache when multiple registry/esb instances are running . Implementing these scenarios under current context tis hard because of the reasons i have mentioned earlier. Regards, Udayanga -- *Udayanga Wickramasinghe* Software Engineer; WSO2 Inc.; http://wso2.com, *email: **[email protected]* <[email protected]>* cell: +94 (77) 983-4365 blog: **http://udayangawiki.blogspot.com*<http://udayangawiki.blogspot.com/> * twitter: **http://twitter.com/udayanga_wick*<http://twitter.com/udayanga_wick> * *
