Interactive application
Cadence is performant and scalable enough to support interactive applications. It can be used to track UI session state and at the same time execute background operations. For example, while placing an order a customer might need to go through several screens while a background task evaluates the customer for fraudulent activity.
Samples
Runnable interactive-application samples:
| Sample | Description | Code |
|---|---|---|
| Query workflow state | Exposes in-progress workflow state to synchronous queries | Go · Java |
| Consistent query | Strongly consistent reads of workflow state | Go |
| Signal and response | UI-style interaction: send a signal, then read the workflow's response | Java |
| Human-in-the-loop agent | Agent workflow that pauses for human approval and answers queries about pending interruptions | Python |