flâneur — a map of the web's best reading

What is a Temporal Activity? | Temporal Documentation

docs.temporal.io · 301 words · saved by 1 readers

In day-to-day conversation, the term Activity denotes an Activity Definition, Activity Type, or Activity Execution. Temporal documentation aims to be explicit and differentiate between them. An Activity is a normal function or method that executes a single, well-defined action (either short or long running), such as calling another service, transcoding a media file, or sending an email message. Activity code can be non-deterministic. We recommend that it be idempotent. Workflow code orchestrates the execution of Activities, persisting the results. If an Activity Function Execution fails, any future execution starts from initial state (except Heartbeats). Activity Functions are executed by Worker Processes. When the Activity Function returns, the Worker sends the results back to the Temporal Service as part of the ActivityTaskCompleted Event. The Event is added to the Workflow Execution's Event History. For other Activity-related Events, see Activity Events. An Activity Definition is th

This guide provides a comprehensive overview of Temporal Activities including Activity Definition , Activity Type , Activity Execution , Local Activity , and Standalone Activity . An Activity is a normal function or method that executes a single, well-defined action (either short or long running), such as calling another service, transcoding a media file, or sending an email message. Activity code can be non-deterministic. We recommend that it be idempotent . Activities are the most common Temporal primitive and encompass small units of work such as: Single write operations, like updating user

Explore this link on the map →

related reading