https://github.com/jellydn/tempora-saga-demo
Saga pattern demo
https://github.com/jellydn/tempora-saga-demo
biomejs bun saga-pattern temporal typescript
Last synced: 4 months ago
JSON representation
Saga pattern demo
- Host: GitHub
- URL: https://github.com/jellydn/tempora-saga-demo
- Owner: jellydn
- Created: 2024-04-28T14:29:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-28T15:05:27.000Z (4 months ago)
- Last Synced: 2025-06-28T16:23:54.644Z (4 months ago)
- Topics: biomejs, bun, saga-pattern, temporal, typescript
- Language: TypeScript
- Homepage:
- Size: 411 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Welcome to saga pattern demo 👋
> Saga pattern demo with Temporal
[](https://www.youtube.com/watch?v=V3dBUizAo3w)
## Pre-requisites
- [Temporal CLI](https://temporal.io)
- [Bun](https://bun.sh) or [Node.js](https://nodejs.org/en/download/)
## Install
```sh
bun install
```
## Usage
```sh
bun run dev
```
## Saga Pattern

## Development
### To begin development, install the Temporal CLI:
Mac: `brew install temporal`
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest
### Start Temporal Server:
```
temporal server start:dev
```
### Start the Temporal Web UI:
Open browser to http://localhost:8233 to see the Temporal Web UI.
## Then, in the project directory, using two other shells, run these commands:
```sh
bun run start:worker
bun run start:workflow
```
[](https://gyazo.com/bba64c9034d3187d366160537e8501f7)
[Here is an example output with `bun run dev`.](https://app.warp.dev/block/wjvnUWFaLj41XulMLsH2J7)
More detail on [saga](./saga.md).
## Resources
- [Saga pattern made easy](https://pages.temporal.io/rs/250-WIU-007/images/tech-guide-saga-pattern-made-easy.pdf)
- [Saga pattern - Azure Design Patterns | Microsoft Learn](https://learn.microsoft.com/en-us/azure/architecture/reference-architectures/saga/saga)
- [Pattern: Saga](https://microservices.io/patterns/data/saga.html)
- [The Saga Pattern - ByteByteGo Newsletter](https://blog.bytebytego.com/p/the-saga-pattern)
## Author
👤 **Dung Huynh**
- Website: https://productsway.com/
- Twitter: [@jellydn](https://twitter.com/jellydn)
- Github: [@jellydn](https://github.com/jellydn)
## Show your support
Give a ⭐️ if this project helped you!
[](https://ko-fi.com/dunghd)
[](https://paypal.me/dunghd)
[](https://www.buymeacoffee.com/dunghd)