On Mon, Oct 12, 2015 at 7:35 AM, endian675 <[email protected]> wrote:

> I have a CacheStore that loads missing data from the underlying data source
> (an Oracle DB).  At present, multiple requests for the same key will cause
> multiple loads from that Oracle DB, until the object is inserted in to the
> memory cache by Ignite.
>
> Is there currently any way to queue up subsequent requests for a CacheStore
> load() that is "in flight", and then signal them all when the data is
> available in the memory cache?
>

I remember seeing a ticket about this. The proposed design involved
wrapping the CacheStore internally, inside of Ignite, and ensuring that no
duplicate requests are sent to DB by overriding the load(...) methods in
the wrapper.


> I can simulate this in my CacheStore implementation using a piece of shared
> context and some retry loops, but is there a native Ignite way?  If not,
> would anyone be interested in me implementing this inside Ignite?
>

Would be great if you could contribute this functionality. Let me find the
relevant ticket so you can get started. I will post it here.


>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/CacheStore-servicing-multiple-requests-for-same-key-tp1589.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Reply via email to