Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erickwendel/high-reliability-js
Examples of Error Handling and reaching High Reliability with vanilla JavaScript
https://github.com/erickwendel/high-reliability-js
child-process deep-dive-javascript error-handling graceful-shutdown javascript kubernetes let-it-crash nodejs reliability zero-downtime
Last synced: 2 months ago
JSON representation
Examples of Error Handling and reaching High Reliability with vanilla JavaScript
- Host: GitHub
- URL: https://github.com/erickwendel/high-reliability-js
- Owner: ErickWendel
- Created: 2023-12-14T23:46:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T02:48:17.000Z (about 1 year ago)
- Last Synced: 2024-04-15T04:12:03.730Z (9 months ago)
- Topics: child-process, deep-dive-javascript, error-handling, graceful-shutdown, javascript, kubernetes, let-it-crash, nodejs, reliability, zero-downtime
- Language: JavaScript
- Homepage: https://bit.ly/javascript-e-confiavel-ew
- Size: 7.81 KB
- Stars: 22
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# High Reliability in JavaScript - Tutorial
Welcome, this repo is part of my [**youtube video**](https://youtu.be/iC_tKAyLeag?si=Pz2SXwOM3t9VkbVZ) about **Custom error handling + graceful shutdown + let it crash strategy in JavaScript (pt-br)**
First of all, leave your star 🌟 on this repo.
Access our [**exclusive telegram channel**](https://t.me/ErickWendelContentHub) so I'll let you know about all the content I've been producing
![JavaScript is unreliable](https://github.com/ErickWendel/high-reliability-js/assets/8060102/3685122f-b2a2-4f50-9b40-418c6d0b1be0)
## Checkout the examples
- [Understanding the issue while throwing errors from callbacks](./01-throw-context-err.js)
- [How to throw errors from async contexts](./01-throw-context-solution.js)
- [Common pattern for custom error classes in JavaScript](./02-custom-exception-err.js)
- [Handling errors as values, not exceptions (domain notification pattern)](./02-custom-exception-solution.js)
- [Kubernetes simulator (once an application crashes it spins up another)](./03.1-kubernetes-simulator.js)
- [Let it crash! Handling global errors + graceful shutdown](./03.2-server-let-it-crash.js)Try them out [online here](https://gitpod.io#snapshot/c0f01607-ecd2-4a66-81d5-13f1a9fcb0b6)
## Author
- [Erick Wendel](https://linktr.ee/erickwendel)