8000 GitHub - fredwangwang/demo-temporal-go
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fredwangwang/demo-temporal-go

Repository files navigation

Demo Temporal using Go SDK

Run

  1. docker-compose up
  2. go run ./workflow/main.go to "execute" (submit) a new workflow
  3. go run ./worker/main.go to spin up the worker to actually execute the workflow and its actions
  4. http://localhost:8088 to check out the execution status

Take

The most basic understanding: an enhenced RPC framework.

As the workflow (client) only says what workflow to execute with what activities, it is up to the workers (servers) to actually execute those workflows.

Due to the fact it is so generic but handles so many common "workflow" cases, it is a power tool to boost productivity to focus on the actual business logic instead of redo the plumbing everytime a similar use case arises.

  1. Temporal gives you full visibility in the state of your Workflow and code execution.
  2. Temporal maintains the state of your Workflow, even through server outages and errors.
  3. Temporal makes it easy to timeout and retry Activity code using options that exist outside of your business logic.
  4. Temporal enables you to perform "live debugging" of your business logic while the Workflow is running.

Docs & Refs

https://docs.temporal.io/docs/go/introduction https://docs.temporal.io/docs/go/run-your-first-app-tutorial/ https://medium.com/@ijayakantha/microservices-the-saga-pattern-for-distributed-transactions-c489d0ac0247

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0