Peformance for local cache

41 views
Skip to first unread message

Hakan Küçük

unread,
Apr 10, 2023, 6:22:44 AM4/10/23
to Hazelcast
I have an issue with local cache perfomance. 


How can i improve perfomance for local caches? 

ahmet mırçık

unread,
Apr 13, 2023, 9:01:21 AM4/13/23
to haze...@googlegroups.com

And by setting in-memory-format to OBJECT and cache-local-entries to true, you should see better performance. Example xml config is here: https://github.com/hazelcast/hazelcast-code-samples/blob/b8bb28c8ad8d8e67019e445ad04bc8cbe9c847f3/distributed-map/nearcache/src/main/resources/hazelcast.xml#L17



--
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/b64756cd-2e5f-4be8-855c-3f2f08c064f3n%40googlegroups.com.


--
Ahmet Mırçık

Hakan Küçük

unread,
Apr 20, 2023, 3:58:55 AM4/20/23
to Hazelcast
Thanks for the answer. it increased the performance,  
But is the data stored in the cache duplicated in this case ? both in map and near cache? 
is there any other way to avoid this?  like having a near cache without a map?

13 Nisan 2023 Perşembe tarihinde saat 16:01:21 UTC+3 itibarıyla ahmet mırçık şunları yazdı:

Nick Pratt

unread,
Apr 20, 2023, 3:08:56 PM4/20/23
to haze...@googlegroups.com
You mean something like:

Map<Key,Value> myLocalMap = new HashMap<>();

Pick your local Map of choice.  Or use Caffeine or Guava Cache if you want expiration etc.  Or use ehcache if you want overflow to disk.

N

Reply all
Reply to author
Forward
0 new messages