Skip to main content

What is a History Service?

The History Service is responsible for persisting Workflow Execution state and determining what to do next to progress the Workflow Execution by using History Shards.

History Service

The total number of History Services can be between 1 and the total number of History Shards. An individual History Service can support a large number of History Shards. Temporal recommends starting at a ratio of 1 History Service for every 500 History Shards.

Although the total number of History Shards remains static for the life of the Cluster, the number of History Services can change.

The History Service talks to the Matching Service and the database.

  • It uses grpcPort 7234 to host the service handler.
  • It uses port 6934 for membership-related communication.

Ports are configurable in the Cluster configuration.