[ 
https://issues.apache.org/jira/browse/IGNITE-8475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitriy Govorukhin updated IGNITE-8475:
---------------------------------------
    Description: 
GridCacheAdapter.syncOp has awaitLastFut(); this call wait last async operation 
completed. 

This means all async operation in one thread will be executed one by one but 
not in parallel. Async operation is not async. 

Example for atomic cache 

f1=cache.getAsync(key1); 
f2=cache.getAsync(key2); 

f1 always will be complete before f2. 

Need to create a new decorator for IgniteCache, and return IgniteCache proxy 
with fair async operations.

IgniteCache.withFairAsync()

  was:
GridCacheAdapter.syncOp has awaitLastFut(); this call wait last async 
operation completed. 

This means all async operation in one thread will be executed one by one but
not in parallel. Async operation is not async. 

Example for atomic cache 

f1=cache.getAsync(key1); 
f2=cache.getAsync(key2); 

f1 always will be complete before f2. 

Need to create a new decorator for IgniteCache, and return IgniteCache proxy 
with fair async 

operations.

 IgniteCache.withFairAsync()


> Create new IgniteCache decorator with fair async methonds
> ---------------------------------------------------------
>
>                 Key: IGNITE-8475
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8475
>             Project: Ignite
>          Issue Type: Improvement
>          Components: cache
>    Affects Versions: 2.4
>            Reporter: Dmitriy Govorukhin
>            Priority: Major
>
> GridCacheAdapter.syncOp has awaitLastFut(); this call wait last async 
> operation completed. 
> This means all async operation in one thread will be executed one by one but 
> not in parallel. Async operation is not async. 
> Example for atomic cache 
> f1=cache.getAsync(key1); 
> f2=cache.getAsync(key2); 
> f1 always will be complete before f2. 
> Need to create a new decorator for IgniteCache, and return IgniteCache proxy 
> with fair async operations.
> IgniteCache.withFairAsync()



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to