devsisters / shardcake

Sharding and location transparency for Scala
https://devsisters.github.io/shardcake/
Apache License 2.0
389 stars 30 forks source link

[Feature Request] Passivation #65

Closed AppleKid7 closed 1 year ago

AppleKid7 commented 1 year ago

After talking to a colleague who has a lot of experience with Akka clustering, it seems this feature would be well-received by those looking for Akka clustering alternatives. In Akka, passivation works with persistent entities: if an entity is not being used, it can be stopped to reduce memory consumption. Looking through the documentation, it could be done by:

I don't know if there's an implementation in the works for this, but in case there isn't but there is some interest for it, I'd be happy to take a crack at it.

dispalt commented 1 year ago

I think it exists as https://github.com/devsisters/shardcake/blob/09882f037ea7e028a25b1b9213a14eb1845a5656/vuepress/docs/docs/config.md?plain=1#L26

ghostdogpr commented 1 year ago

Yeah, @dispalt is correct, you can set the equivalent of receiveTimeout with entityMaxIdleTime