I'm new to Actor model. I'm planning on implementing the Actor model for one of my projects, so I started reading about Akka.Net. From the documentation, it appears that the state of the Actor is persisted throughout the life of the Actor.
1.Where is the state stored? On the ram? If so wouldn't we run out of ram space?
2.How do I implement Actor model when I have millions of records? Say I want to implement an Actor for customers table that has a million records. How would I load up the customers?
By default all actor state is represented directly in memory. You can choose to persist it (for scenarios using eventsourcing, there's an Akka.Persistence library), but this is opt in decision.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.