devsisters / shardcake

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

Allow override of maxSessionIdleTime per entity #47

Closed csar closed 1 year ago

csar commented 1 year ago

Either by config or on registerEntity.

I have many entities that don't need to live long, they are called once and then will lie dormant for quite a long time. On the other hand there are some that are called with a long call timeout because it has to deal with slow interfaces, but increasing globally the idleTimeout for that uses a lot of memory to hold the short-lived ones.

I have solution already, quite simple to do