Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)