This directory contains sample applications demonstrating orchestration patterns using the Durable Task JavaScript/TypeScript SDK with Azure Durable Task Scheduler. The SDK is available in preview. These samples use JavaScript.
-
Pull and run the emulator:
docker pull mcr.microsoft.com/dts/dts-emulator:latest docker run -p 8080:8080 -p 8082:8082 mcr.microsoft.com/dts/dts-emulator:latest
-
The sample defaults to these local settings when
ENDPOINTandTASKHUBaren't set:- Endpoint:
http://localhost:8080 - Task hub:
default
- Endpoint:
- function-chaining: Sequential activity pipeline workflow, with local emulator and
azddeployment support. - fan-out-fan-in: Parallel processing and aggregation workflow, with both local emulator and
azddeployment support.
cd fan-out-fan-in
npm install
npm run workerIn another terminal:
cd fan-out-fan-in
npm run clientOpen http://localhost:8082 and select the default task hub.