Jens Kleine-Herzbruch created CAMEL-14281:
---------------------------------------------

             Summary: Support sync reads/read locking in JCachePolicyProcessor
                 Key: CAMEL-14281
                 URL: https://issues.apache.org/jira/browse/CAMEL-14281
             Project: Camel
          Issue Type: New Feature
          Components: camel-jcache
    Affects Versions: 3.0.0
            Reporter: Jens Kleine-Herzbruch


Currently, if two requests for the same cache key come in simultaneously, both 
requests will execute the route decorated with the cache policy. If this route 
includes expensive calculations/integrations this may be undesirable. Instead, 
only the first request should kick of the real route, and the second should 
block on the cache read until the result of the first route has entered the 
cache.

 

Spring, for example, supports this with the "sync" parameter on @Cacheable.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to