HI,

I have two caches Person and PersonDetail. i have to update the one of the
property person details status based on person and person detail properties
and current date.

Person {

String personId

String equivalentId

String name

Long dateOfBirth;
....

}

PersonDetail {

String detailedId

String equivalentId

Long startDate

Long endDate;

String status

}

Person cache key -> AffinityKey<String, String> -> AffinityKey<PersonId,
equivalentId>
PersonDetail cache key -> AffinityKey<String, String> ->
AffinityKey<DetailId, equivalentId>


status of Person details is determined based on Person#dateOfBirth,
PersonDetail#startDate, PersonDetail#endDate and current date.


I see entry processor can nbe applied on given set of cache keys only. Is
there any way in update each PersonDetail's status in efficient way ?

Can we use mapreduce ? if yes, Could you please share any example ?

Thanks for your help.

Thanks.

Reply via email to