News for hackers. Stuff that matters.
Re:Ask HN: Good examples of fault-tolerant Erlang code? by ihuk on Friday December 29, 2023 @07:04AM (#38804094)
You don't achieve fault tolerance solely by using Erlang. Erlang does not inherently 'achieve fault tolerance.' Instead, you make your system fault-tolerant through deliberate engineering. While Erlang provides tools and design guidelines, the responsibility for achieving fault tolerance ultimately lies with you. Source: I implemented and operated a large Erlang system for approximately 3 years.
Re:Ask HN: Good examples of fault-tolerant Erlang code? by LoganDark on Friday December 29, 2023 @07:06AM (#38804103)
This is exactly why they're asking for example projects...
Re:Ask HN: Good examples of fault-tolerant Erlang code? by BlueHotDog2 on Friday December 29, 2023 @07:08AM (#38804113)
that's always true. i think the author is interested in code examples of such. and unlike many other frameworks/tools, erlang provides a great pit-of-success for implementing fault tolerance - e.g if you follow common/best practices - you'll achieve a fairly good fault tolerance.
Re:Ask HN: Good examples of fault-tolerant Erlang code? by lixy on Friday December 29, 2023 @01:32PM (#38808488)
The big benefit in my experience was that I could have a program with real users, that did have errors (from me being new to Elixir and not knowing better) and still not experiencing downtime.

Instead, CPU or Memory would increase over time, hit the VM limit, kill and restart.

So later when I noticed this, I could debug and fix it without simultaneously fighting a prod incident.