|
|
|
|
|
by withinboredom
563 days ago
|
|
> When do you snapshot ? In Durable PHP (an actor system for PHP), it tries to achieve at-most-once processing guarantee (though more often than not, it is exactly-once). 1. commit the current state 2. send outgoing messages 3. ack the original event If we fail before 1, we simply retry If we fail between 1-3, we simply rewind and retry |
|
I found that surprisingly hard in most applications - and I think that's is a limitation of the actor model _in practice_, that is often overlook because it's only an implementation detail that does not really exists _in theory_.