Skip to content

temporal-sa/temporal-orchestrate-lambda-functions

Repository files navigation

Temporal Sample: Orchestrate Lamdba Functions

A Temporal Version of AWS Step Functions: Lambda orchestration example

Timeline Image A Temporal UI timeline view of a workflow execution

Deploy AWS Lambda microservices and APIs (Optional)

To deploy the demo's Lambda microservices and APIs on your own URL, refer to the deployment readme.

(This step is optional because these services are already publicly hosted at the API_ADDRESS in .env_example)

Configuration

  • Copy the .env_example file to .env.development and change settings to match your temporal installation.
  • Omit CERT_PATH, KEY_PATH, ADDRESS, NAMESPACE to use a local Temporal Server

Run a Temporal Server (Guide)

  • brew install temporal
  • temporal server start-dev (Temporal Server web UI: localhost:8233)

Install Dependencies

  • npm install

Run a Developer environment

  • npm run start

Run workers (required to execute workflows)

  • npm run worker

Start a workflow

  • Go to the debug interface: http://localhost:3000
  • The workflow will make a stock trading recommendation based on price then wait for an 'approve' signal.

(Advanced) Debug/replay Workflow histories with the Temporal VSCode Extension

  • Open the project root as a VSCode project
  • Run the replayer on a downloaded workflow JSON file

Releases

No releases published

Packages

No packages published