Skip to content

temporal-sa/temporal-order-saga

Repository files navigation

Order Saga Sample

Demo Video

Configuration

The sample is configured by default to connect to a local Temporal Server running on localhost:7233.

To instead connect to Temporal Cloud, set the following environment variables, replacing them with your own Temporal Cloud credentials:

TEMPORAL_ADDRESS=testnamespace.sdvdw.tmprl.cloud:7233
TEMPORAL_NAMESPACE=testnamespace.sdvdw
TEMPORAL_CERT_PATH="/path/to/file.pem"
TEMPORAL_KEY_PATH="/path/to/file.key"

Run a Workflow

Start a worker:

./gradlew -q execute -PmainClass=io.temporal.samples.ordersaga.Worker
./gradlew -q execute -PmainClass=io.temporal.samples.ordersaga.Caller

How to trigger Saga compensations

  • Uncomment the exceptions in OrderActivitiesImpl to see how the Saga handles failures

About

Saga pattern example

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.txt
Unknown
license-header.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages