The Do's and Don'ts of Error Handling • Joe Armstrong • GOTO 2018

Channel:GOTO Conferences · Length:45:31 · Published:2018-11-02 · Views:74324

Watch on YouTube

Summary

Joe Armstrong, inventor of Erlang, gives a GOTO Chicago 2018 talk on building fault-tolerant systems. He covers what to do and avoid when handling errors, arguing for letting processes fail and recover.

Why HN recommends it

Recommended as a conceptual rather than code-heavy talk on failure recovery from Erlang's creator.

it's well worth listening to this talk, which is conceptual and not code-centric — HN, 2022

Functional programming · Distributed systems

Subtitles (excerpt)

[Music] okay so this talk is about error handling and how we build fault-tolerant systems and so what's a fault-tolerant system we'll have the thought tolerant justice system is fault tolerant if it carries on working even if things are wrong so might not do everything it's supposed to do but it won't just fall in a horrible heap on the floor and stop working okay and I've been doing this for quite a long time I was gonna say work like this is never finished it's always in progress they're always finding better ways to do this I've been doing it for about 35 years and let's don't think if we still see new ways of attacking the problem hardware can fail that is relatively uncommon Hardware attempts to be pretty reliable once it's once it's working it works quite often if it fails it fails catastrophically and you can't put it back into service software on the other hand fails an awful lot there's far more software errors and hardware failures so so if you're gonna build a fault-tolerant system you need to take account of software as rather than hardware errors and hardware errors you can you can more or less eliminate with replication you could just replicate the hardware several times and the chance is that once it's

On Hacker News

Also, if I may, recommend two videos to watch which is what got me into Elixir in the first place. 1. "The Soul of Elixir and Erlang" - [LINK] ; this fast-paced talk by Sasa Juric will highlight exactly what is special about Elixir/Erlang in terms of fault-tolerance and scalability 2. "Using the Beam to Fight COVID-19" - [LINK] ; this highlights a real-world use of Elixir and the speciality of ho… — frellus, 2022-12
Blockchains Are a Bad Idea (James Mickens) [LINK] I find almost all from GOTO 2018 very insightful. [LINK] esp ones listed below. GOTO 2018 • The Do's and Don'ts of Error Handling • Joe Armstrong [VIDEO] GOTO 2018 • Pragmatic Event-Driven Microservices • Allard Buijze [LINK] GOTO 2018 • Why Business Cases are Toxic • Chris Matts [LINK] GOTO 2018 • Unconditional Code • Michael Feathers [LINK] — raghava, 2018-12
Type checking, compile-time errors won't check if the program you wrote is correct, only that it's internally consistent. That is an entirely different thing than checking for correctness. You do need a layer of tests that actually try to prove that given some input your program actually does what it's supposed to do. That is hard to automate. Joe Armstrong(of the Erlang fame), talks about this a… — sidmitra, 2021-05

Related videos