read-backup-data: near cache should not be used ??

11 views
Skip to first unread message

rob van der boom

unread,
Dec 12, 2022, 10:10:49 AM12/12/22
to Hazelcast
Hey, 

I do read some differences between performance near-cache or read-backupdata.

But i don't find information if it can be used together ?


In the hazelcast-default.xml configuration there is a comment after read-backupdata telling:
"<!-- near cache must not be used -->"

Does this mean near cache can not be used together with read backup data ?

Hope anyone can explain.

ahmet mırçık

unread,
Dec 12, 2022, 10:46:47 AM12/12/22
to haze...@googlegroups.com
Hi, 

If the subject is client side near-cache, read-backup data has no effect.
But if you are asking for server-side near-cache, map.get api call first looks up near-cache 
and if data is not there it checks backup-replica then if it still doesn't find data, it goes to the primary-replica of partition data.

Hope this clarifies the mechanism.


--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/b5a6ae6b-c2a2-4241-a378-e3194e46a61dn%40googlegroups.com.


--
Ahmet Mırçık

rob van der boom

unread,
Dec 13, 2022, 9:44:42 AM12/13/22
to Hazelcast
aaa thx, that makes sense , thanks that answers question, it was about client side.  So near cache is active there and read-backup doesn't interfere..

Op maandag 12 december 2022 om 16:46:47 UTC+1 schreef ahmet...@gmail.com:
Reply all
Reply to author
Forward
0 new messages