VenVig
VenVig

Reputation: 915

Does all persistent actors reside in-memory?

I have an order represented by a persistent Order Actor in Akka (say persisted in Cassandra)

I have numerous orders in my system.

At any point of time, does all the Order Actors reside in-memory ? or would some** of the order actors be retrieved from cassandra, as needed ? How does it internally work ?

*those order Entities that are rarely needed

Upvotes: 0

Views: 104

Answers (1)

ghostdogpr
ghostdogpr

Reputation: 631

It really depends on your code. A persistent actor state is recovered when the actor is started and will stay in memory until you stop the actor.

It’s up to you to stop the actors you don’t need if you want to release the memory they’re consuming.

Upvotes: 2

Related Questions