# After ten years keeping Klarna's payments alive, he wrote the BEAM book

Original title: Why I wrote the BEAM book (2025)

> Hacker News story 50427107 · language: en · submitted 2026-11-09
> Web version: https://zeli.app/story/50427107
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 204 · by [zenincognito](<https://news.ycombinator.com/user?id=zenincognito>) · 💬 48
[original](<https://happihacking.com/blog/posts/2025/why_I_wrote_theBEAMBook/>) · [HN discussion](<https://news.ycombinator.com/item?id=50427107>)

## Summary

The author spent over a decade running Klarna's core system on the BEAM, where a 15-millisecond pause could stall millions of peak-shopping payments. He started the book in 2012, survived two cancelled publishing deals, and finally shipped a paperback in 2025. It covers schedulers, process memory, garbage collection, tagging schemes, the compiler, tracing, and performance tuning — the manual he wished he'd had when things went wrong.

## Key quote

> Two cancelled publishing deals look bad on a résumé, but an unfinished idea looks worse.

## HN discussion (48 comments)

### [ErikStenman](<https://news.ycombinator.com/item?id=50455113>)

> The second edition is out now.
>
> https://happihacking.com/resources/the-beam-book/

### [dimamik](<https://news.ycombinator.com/item?id=50454830>)

> I've been building with Elixir for the last 5 years, and comparing to Python or NodeJS - it's a breath of fresh air. Such decent developer experience, so easy to understand how your system works because of actors and well-defined primitives. If you haven't - you definitely should give it a try!
>
> In an AI era I feel like the tiny amount of Elixir code in comparison with other languages, but all that code having higher signal to noise ration vastly contributed to how good LLM-written Elixir code is. Especially in a well-maintainted codebase that relies on a decent db schema and Oban.

### [neya](<https://news.ycombinator.com/item?id=50449210>)

> Oh wow, I never knew Klarna uses BEAM. I always thought BEAM is vastly underrated and it's even hard for me to convince clients of showing how powerful it (Elixir/BEAM) really is, especially when they're already on something like NodeJS. This will be a nice reference to use in conversations with future prospects.

### [pjm331](<https://news.ycombinator.com/item?id=50454356>)

> just picked up a copy
>
> I'd been looking for an excuse to build something in Elixir pretty much since the language was released, and in just the past year and a half I've had the good fortune of getting to use it to build an in house AI agent orchestration system and it's been an absolute pleasure

### [oivaksef](<https://news.ycombinator.com/item?id=50450259>)

> There will be winners in this new AI age, and they will be the ones that are technically better, rather than the most popular or convenient for software engineers

---

## Cite

- Page: https://zeli.app/story/50427107
- Date: 2026-11-09
- Source: happihacking.com (https://happihacking.com/blog/posts/2025/why_I_wrote_theBEAMBook/)
- Hacker News: https://news.ycombinator.com/item?id=50427107

## Other languages

- zh: https://zeli.app/zh/story/50427107 · markdown: https://zeli.app/zh/story/50427107.md
- ja: https://zeli.app/ja/story/50427107 · markdown: https://zeli.app/ja/story/50427107.md
- ko: https://zeli.app/ko/story/50427107 · markdown: https://zeli.app/ko/story/50427107.md
- de: https://zeli.app/de/story/50427107 · markdown: https://zeli.app/de/story/50427107.md
- es: https://zeli.app/es/story/50427107 · markdown: https://zeli.app/es/story/50427107.md
- ru: https://zeli.app/ru/story/50427107 · markdown: https://zeli.app/ru/story/50427107.md
