Say I am using akka persistance and I am backing things like Users.
If there is a nighly job that requires scanning all users, and any user that has expired to mark their object as expired.
In a more traditional setup using sql, you would just do:
update u
set u.is_expired=1
from users u
where u.expired_at >= getdate()
Now if you did that, your akka persistance would be out of synch and you would have to somehow broadcast to all actors to reload.
Or you would have to send a broadcast to all actors to check if you have expired.
If you have millions of users, what realistic options do you have? If this was a database stored procedure this type of query could be done in a matter of seconds.
Trying to understand how this would be done with akka and akka-persistance.