Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1365

Understanding "caching" performance in a sharded cluster

$
0
0

I’m using Akka Cluster Sharding in an event-sourced application with ~300 million persistent entities. Obviously not all of those entities can be in memory at once, so I’m relying on automatic passivation to evict entities to make space. So basically, I have a cache of in-memory entities, and I’d like to get a better understanding of how many hits and misses I’m getting.

I dug through the code a bit and I couldn’t find anything that would notify me:

  • when a message was received for an in-memory entity (this is a hit)
  • when a message was received for an out-of-memory entity (this is a miss). This entity will need to be rehydrated from the event log.

Can you provide any advice on how I might implement such counters?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1365

Trending Articles