https://github.com/temporalio/edu-errstrat-go-code
Exercises for Crafting an Error Handling Strategy (Go) training
https://github.com/temporalio/edu-errstrat-go-code
Last synced: 4 months ago
JSON representation
Exercises for Crafting an Error Handling Strategy (Go) training
- Host: GitHub
- URL: https://github.com/temporalio/edu-errstrat-go-code
- Owner: temporalio
- License: mit
- Created: 2024-04-29T17:59:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-28T14:55:30.000Z (about 1 year ago)
- Last Synced: 2025-06-08T20:06:30.324Z (about 1 year ago)
- Language: Go
- Size: 249 KB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code Repository for Crafting an Error Handling Strategy (Go)
This repository provides code used for exercises and demonstrations
included in the Go version of the
[Crafting an Error Handling Strategy](https://learn.temporal.io/courses/errstrat/)
training course.
It's important to remember that the example code used in this course was designed to support learning a specific aspect of Temporal, not to serve as a ready-to-use template for implementing a production system.
For the exercises, make sure to run `temporal server start-dev --ui-port 8080 --db-filename clusterdata.db` in one terminal to start the Temporal server. For more details on this command, please refer to the `Setting up a Local Development Environment` chapter in the course. Note: If you're using the Codespaces environment to run this exercise, you can skip this step.
## Hands-On Exercises
| Directory Name | Exercise |
| :------------------------------------ | :---------------------------------------------------------- |
| `exercises/handling-errors` | [Exercise 1](exercises/handling-errors/README.md) |
| `exercises/non-retryable-error-types` | [Exercise 2](exercises/non-retryable-error-types/README.md) |
| `exercises/rollback-with-saga` | [Exercise 3](exercises/rollback-with-saga/README.md) |
## Instructor-Led Demonstrations
| Directory Name | Description |
| :------------------------ | :-------------------------------------------------------------------- |
| `demos/error-propagation` | [Cross-Language Error Propagation](demos/error-propagation/README.md) |
## Reference
The following links provide additional information that you may find helpful as you work through this course.
* [General Temporal Documentation](https://docs.temporal.io/)
* [Temporal Go SDK Documentation](https://pkg.go.dev/go.temporal.io/sdk)
* [Go Language Documentation](https://go.dev/doc/)
## Exercise Environment for this Course
You can launch an exercise environment for this course using GitHub Codespaces by
following [this](codespaces.md) walkthrough.
Alternatively, you can perform these exercises directly on your computer. Refer to the instructions about setting up a local development environment, which you'll find in the "About this Course" chapter.