You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Raphael Ouazana (Jira)" <se...@james.apache.org> on 2020/04/07 08:08:00 UTC
[jira] [Commented] (JAMES-3140) Provide a CachedDumbBlobStore
[ https://issues.apache.org/jira/browse/JAMES-3140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17077026#comment-17077026 ]
Raphael Ouazana commented on JAMES-3140:
----------------------------------------
What's happening if there are 2 requests for the same uncached value at the same it?
Can you forecast to make one of the 2 requests waiting for the cache to be loaded instead of reading both at the same time in the blobstore?
> Provide a CachedDumbBlobStore
> -----------------------------
>
> Key: JAMES-3140
> URL: https://issues.apache.org/jira/browse/JAMES-3140
> Project: James Server
> Issue Type: Improvement
> Reporter: René Cordier
> Priority: Major
>
> {{This DumbBlobStore wraps another dumbBlobStore and compose it with a Cache.}}
> Blobs are cached upon writes
> Only blobs of the default bucket are cached.
> Upon reads:
> * the cache is queried
> * if the cache is empty then load it's value from the blobStore
> * and populate the cache
> Provide guice bindings in james-distributed guice product:
> * configure CassandraBlobStoreCache
> * enable caching if {{blobStore.cache.enabled=true}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org