Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Basics

Demonstrates the fundamentals of using the Azure Managed Durable Task Scheduler (DTS) with the JavaScript SDK, including connection strings and DefaultAzureCredential authentication.

Features Covered

Feature API
Connection string auth createAzureManagedClient(connectionString)
DefaultAzureCredential createAzureManagedClient(endpoint, taskHub, credential)
Activity sequence ctx.callActivity() in a loop
Fan-out/fan-in whenAll() with parallel callActivity()
Azure logger createAzureLogger()

Prerequisites

  • Node.js ≥ 22
  • Docker (for the DTS Emulator)

Setup

# From the repository root
cd examples/azure-managed
docker compose up -d          # start DTS emulator
cp .env.emulator .env         # configure for local emulator
cd ../..
npm install && npm run build

Run

npm run example -- ./examples/azure-managed/basics/index.ts

Running Against Azure

See the parent README for instructions on running against a real Azure Managed DTS resource.