How taonic/my-samples-go works
This repository is a collection of independently runnable Temporal Go SDK examples, not one integrated application. The common user workflow is to choose and run a sample, which connects to Temporal to demonstrate a workflow pattern, operational capability, or integration. The graph groups the examples by purpose and retains the README’s major capabilities that have corresponding paths in the supplied tree. Some source files were not sampled; their internal call relationships are omitted unless the index or README supports them.
Main entry points: starter/main.go Mutex starter · starter/main.go Event stream starter · channels/main.go Workflow channels · workflow.go Concurrent cancellation
Components 34
Workflow patterns
- Workflow channels
channels/main.go - Concurrent cancellation
concurrent_cancel/workflow.go - FIFO signals
fifo_signals/main.go - Distributed mutex queue
mutex_queue/mutex_workflow.go - Mutex starter
mutex_queue/starter/main.go - Event stream workflow
event_stream/workflow.go - Event stream starter
event_stream/starter/main.go - Proxied activities
proxied_activities/workflows.go - QPS sampling
qps-sampling/qps_workflow.go - Hello workflows
qps-sampling/hello_workflow.go
Workflow operations
- Concurrent workflow benchmark
bench_concurrent_workflow/main.go - CPU-intensive activities
cpu_intensive/main.go - Activity concurrency limits
max_concurrent_activities/main.go - Deadlock prevention
deadlock/main.go - Deadlock detection
deadlock_detection/main.go - List workflows
list_workflows/main.go - Query schedules
list_schedules_with_query/main.go - Schedules by workflows
query_schedules_by_workflows/main.go - Schedule update throughput
schedule_update_rps/main.go - Worker health check
healthcheck/main.go
Integrations and telemetry
- Temporal Cloud usage
cloud-api/getusage/main.go - mTLS history retrieval
gethistorymtls/helloworld.go - OpenTelemetry tracing
opentelemetry/opentelemetry.go - OTLP metrics
otlpmetrics/metrics.go - Prometheus metrics
lib/prom.go
History and concurrency
- Read event history
read_event_history/main.go - Parse exported history
parse_export_protobuf/main.go - Versioned replay markers
replay_with_version_and_marker/main.go - Race context
race_context/main.go - Race-safe queries
race-query/main.go - Race timer activity
race_timer_activity/main.go - Timeout interceptor
timeout_interceptor/main.go
Other components
- Sample user
- Temporal service
Connections 48
- Sample user → Workflow channels: runs sample
README.md - Sample user → Concurrent cancellation: runs sample
README.md - Sample user → FIFO signals: runs sample
README.md - Sample user → Mutex starter: runs sample
README.md - Sample user → Event stream starter: runs sample
README.md - Sample user → Proxied activities: runs sample
README.md - Sample user → QPS sampling: runs sample
README.md - Sample user → Concurrent workflow benchmark: runs sample
README.md - Sample user → CPU-intensive activities: runs sample
README.md - Sample user → Activity concurrency limits: runs sample
README.md - Sample user → Deadlock prevention: runs sample
README.md - Sample user → Deadlock detection: runs sample
README.md - Sample user → List workflows: runs sample
README.md - Sample user → Query schedules: runs sample
README.md - Sample user → Schedules by workflows: runs sample
README.md - Sample user → Schedule update throughput: runs sample
README.md - Sample user → Temporal Cloud usage: runs sample
README.md - Sample user → mTLS history retrieval: runs sample
README.md - Sample user → OpenTelemetry tracing: runs sample
README.md - Sample user → OTLP metrics: runs sample
README.md - Sample user → Read event history: runs sample
README.md - Sample user → Parse exported history: runs sample
README.md - Sample user → Versioned replay markers: runs sample
README.md - Sample user → Race context: runs sample
README.md - Sample user → Race-safe queries: runs sample
README.md - Sample user → Race timer activity: runs sample
README.md - Sample user → Timeout interceptor: runs sample
README.md - Sample user → Worker health check: runs sample
README.md - Mutex starter → Distributed mutex queue: starts workflow
mutex_queue/starter/main.go - Event stream starter → Event stream workflow: starts workflow
event_stream/starter/main.go - QPS sampling → Hello workflows: starts workflows
- Concurrent workflow benchmark → Temporal service: starts executions
bench_concurrent_workflow/main.go - Workflow channels → Temporal service: uses SDK
- Concurrent cancellation → Temporal service: uses SDK
- FIFO signals → Temporal service: uses SDK
- Mutex starter → Temporal service: starts executions
mutex_queue/starter/main.go - Event stream starter → Temporal service: starts execution
event_stream/starter/main.go - List workflows → Temporal service: lists executions
list_workflows/main.go - Query schedules → Temporal service: queries schedules
list_schedules_with_query/main.go - Schedules by workflows → Temporal service: queries schedules
query_schedules_by_workflows/main.go - Schedule update throughput → Temporal service: updates schedules
schedule_update_rps/main.go - Temporal Cloud usage → Temporal service: uses Cloud API
- mTLS history retrieval → Temporal service: retrieves history
- OpenTelemetry tracing → Temporal service: traces workflows
- OTLP metrics → Temporal service: exports metrics
- Prometheus metrics → Temporal service: exports metrics
- Read event history → Temporal service: reads history
- Parse exported history → Temporal service: decodes export
parse_export_protobuf/main.go