Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14281

Support sync reads/read locking in JCachePolicyProcessor

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • 3.0.0
    • 3.x
    • camel-jcache
    • None
    • Unknown

    Description

      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 off 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jensgr@gmx.net Jens Kleine-Herzbruch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: