Hi Rajith, I think this is a generic requirement for all the C5 based products rather than for this specific use case. So we need to come up with a solution that can be used across the platform.
Thanks, On Thu, Feb 16, 2017 at 12:37 AM, Rajith Roshan <raji...@wso2.com> wrote: > Hi all, > > In C5 API Manager back end REST APIs (micro services) are protected using > oauth2 token. Every time request comes to micro services, interceptor will > validate the access token sent in the authorization header of the request. > In order to validate the token we need to do a introspection call to the > key manager. We can not do this introspection call to the key manager for > each and every request. We need a caching layer at the interceptor level in > order to cache the access tokens. > > We are going to use local cache with small cache timeout periods for this. > What are the best caching systems we can use for this. > We can use either JCache (javax.cache), google guava cache[1] which are > specially used as local caches. "Memcached" [2] is also another option but > mostly used in distributed systems. > > [1] - https://github.com/google/guava/wiki/CachesExplained > [2] - https://memcached.org/ > -- > Rajith Roshan > Software Engineer, WSO2 Inc. > Mobile: +94-72-642-8350 <%2B94-71-554-8430> > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Maduranga Siriwardena Software Engineer WSO2 Inc; http://wso2.com/ Email: madura...@wso2.com Mobile: +94718990591 Blog: http://madurangasblogs.blogspot.com/ <http://wso2.com/signature>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev