[Carbon-dev] Registry distributed cache used only for cache invalidation ?
azeez at wso2.com
Sun Jul 3 01:03:47 EDT 2011
On Sun, Jul 3, 2011 at 8:15 AM, Sumedha Rubasinghe <sumedha at wso2.com> wrote:
> On Sat, Jul 2, 2011 at 8:26 PM, Afkham Azeez <azeez at wso2.com> wrote:
>> Shankar mentioned $subject. Isn't this sub-optimal? For instance, caching
>> will not reduce the load on the DB in the current implementation. Why has it
>> been implemented this way?
> For the benefit of others who do not know the full context,
> Current distributed caching impl is local to a particular node. Whenever
> the first request for a resource is made, if it's not in the local cache ,
> it gets added. This way there could be several caches of same resource local
> to different G-Reg instances. When that particular resource is modified
> through one G-Reg server, a message is being sent to other local caches to
> invalidate their cached copy.
> I think was done due to several reasons.
> - Replicating a large object over distributed cache being an over head
> - A resource has considerable amount of meta data around it (properties,
> associations/dependencies, tags, comments, etc). No clear decision on
> replicating those or not.
> - Collection & Resource not being serializable
> Technically, most of these issues can be solved easily.
> I believe we should at least ,
> - think of distribute caching resources bellow a certain size
> - Cache certain type of media types (eg. synapse-config, wsdls) which have
> more tendency to be accessed across cache
>> Sent from my phone
>> Carbon-dev mailing list
>> Carbon-dev at wso2.org
> Carbon-dev mailing list
> Carbon-dev at wso2.org
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
email: **azeez at wso2.com* <azeez at wso2.com>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
*Lean . Enterprise . Middleware*
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Carbon-dev