restatedev / restate

Restate is the platform for building resilient applications that tolerate all infrastructure faults w/o the need for a PhD.
https://docs.restate.dev
Other
1.61k stars 35 forks source link

Rethink where to generate absolute timestamps (service endpoint vs. runtime) #247

Open tillrohrmann opened 1 year ago

tillrohrmann commented 1 year ago

We should rethink where we generate absolute timestamps for time based operations (e.g. sleeps, delayed calls). At the moment, the SDK generates a journal entry with an absolute timestamp when the operation should be executed. An alternative could be to store the relative duration and let the runtime convert it into an absolute timestamp when receiving the command from the service endpoint.

Generating the absolute timestamp on the runtime

Pros:

Cons:

slinkydeveloper commented 1 year ago

In the context of this decision we should also include/reason about: