Logging in Workflow

  1. Workflows run in a sandboxed environment and cannot do any I/O.
  2. Workflow code might get replayed at any time, generating duplicate log messages.

Can anybody explain these two statements in detail? These are from the temporal documentation.

As they currently stand, these are quite open-ended questions, which would be difficult to cover here.

I therefore suggest you first get a look at our Temporal 101 in TypeScript course. Pay particular attention at what is the Workflow Execution History, and how that is used by the Temporal platform to guarantee durable execution, through replays. The course also explains the notion of execution determinism, why it is required, and how the workflow sandbox helps designing deterministic workflows.

If you still have questions after that, please try narrowing your questions.