How osteensco/switchboard works
Switchboard is a serverless, durable workflow orchestration framework with a Python runtime SDK and a Go CLI. The principal workflow is triggered by a message, resumes from persisted state, dispatches individual or parallel tasks, and advances when task responses return through the invocation queue. The README also documents deployment templates and CLI resource management, logging, and troubleshooting. The sampled SDK supports AWS and custom database/queue interfaces; other cloud implementations are incomplete or unsampled, so those links are not asserted.
Main entry points: db.py Database interface · workflow.py Workflow engine · cmd Developer CLI · executor.py Task executor
Components 20
Workflow runtime
- Invocation queue
- Executor queue
Python SDK
- Workflow trigger
sdk/py/src/switchboard/response.py - Workflow engine
sdk/py/src/switchboard/workflow.py - Execution schemas
sdk/py/src/switchboard/schemas.py - Runtime enums
sdk/py/src/switchboard/enums.py - Task executor
sdk/py/src/switchboard/executor.py - Task response
sdk/py/src/switchboard/response.py - Queue dispatch
sdk/py/src/switchboard/invocation.py - Structured logging
sdk/py/src/switchboard/logging_config.py
State and cloud
- Workflow state store
- Database interface
sdk/py/src/switchboard/db.py - Cloud adapters
sdk/py/src/switchboard/cloud.py
CLI and infrastructure
- Developer CLI
cli/src/cmd - Deployment management
cli/src/core/deployer.go - Project scaffolding
cli/src/core/scaffolder.go - Logs and monitoring
cli/src/core - AWS infrastructure templates
cli/src/assets/templates/aws
Other components
- Workflow owner
- User task functions
Connections 25
- Workflow owner → Workflow trigger: starts run
README.md - Workflow trigger → Invocation queue: sends message
sdk/py/src/switchboard/response.py - Invocation queue → Workflow engine: invokes
README.md - Workflow engine → Database interface: reads and writes
sdk/py/src/switchboard/workflow.py - Database interface → Workflow state store: persists state
sdk/py/src/switchboard/db.py - Database interface → Cloud adapters: connects through
sdk/py/src/switchboard/db.py - Workflow engine → Executor queue: enqueues tasks
sdk/py/src/switchboard/workflow.py - Executor queue → Task executor: dispatches
README.md - Task executor → User task functions: calls task
sdk/py/src/switchboard/executor.py - Task executor → Task response: creates response
sdk/py/src/switchboard/executor.py - User task functions → Task response: reports completion
README.md - Task response → Queue dispatch: sends response
sdk/py/src/switchboard/response.py - Queue dispatch → Database interface: discovers endpoint
sdk/py/src/switchboard/invocation.py - Queue dispatch → Cloud adapters: pushes message
sdk/py/src/switchboard/invocation.py - Workflow engine → Execution schemas: uses state models
sdk/py/src/switchboard/workflow.py - Database interface → Execution schemas: serializes state
sdk/py/src/switchboard/db.py - Database interface → Runtime enums: selects resources
sdk/py/src/switchboard/db.py - Workflow engine → Runtime enums: tracks step status
sdk/py/src/switchboard/workflow.py - Workflow engine → Structured logging: logs execution
sdk/py/src/switchboard/workflow.py - Database interface → Structured logging: logs storage activity
sdk/py/src/switchboard/db.py - Workflow owner → Developer CLI: manages workflows
README.md - Developer CLI → Deployment management: deployment support
- Developer CLI → Project scaffolding: project setup
- Developer CLI → Logs and monitoring: observability support
- Deployment management → AWS infrastructure templates: uses templates