0

The scheduled tasks of cadence are stored in the database, so the problem of database polling must be involved. As the amount of data increases, how does cadence improve the query efficiency and the accuracy of delay time?

ericqzhao
  • 21
  • 2

1 Answers1

0

Cadence uses sharding to scale out. Each shard has its own timer queue. If a single DB instance cannot keep up, multiple DB hosts can be used and Cadence history service shards are distributed across all the hosts.

My talk Designing a Workflow Engine from First Principles goes into this in more detail. It talks about Temporal which is a fork of Cadence, but that part of the design is exactly the same.

Maxim Fateev
  • 6,458
  • 3
  • 20
  • 35