finds.dev

mojombo/ernie

Ernie is an Erlang/Ruby BERT-RPC Server.

View on GitHub

★ 470ErlangMITupdated Dec 2011

// the take

Ernie is a BERT-RPC server from 2009, written by Tom Preston-Werner, that wraps Erlang's concurrency model around external handler processes (primarily Ruby). The core idea: native Erlang modules run in-process as lightweight OTP processes; external modules run as pooled OS processes managed by an asset pool supervisor. Built for GitHub's internal RPC needs.

The shadowing mechanism is genuinely useful — you can hot-swap individual functions from Ruby to Erlang without touching client code, and predicate shadowing for argument-based routing is a clean design. The OTP supervision tree is correct: separate supervisors for the server, access logger, and asset pool, which means a crashed handler doesn't take down the acceptor. Priority queue separation (high/low) at the connection level is a practical feature for systems where some calls are latency-sensitive. BERT as the wire format is a reasonable choice — it's Erlang's native term format, so native handlers pay zero serialization cost.

Abandoned since 2011 — the last commit is 15 years old, Erlang OTP has changed significantly, and the Ruby gem ecosystem it depends on has moved on entirely. The external worker pool is fixed-size (set in config), with no dynamic scaling — you're either over-provisioning or under-provisioning workers for variable load. No TLS support on the wire; BERT-RPC over plaintext TCP only, which means this is LAN/trusted-network only. The config format is raw Erlang terms, which is fine for Erlang developers but adds friction for anyone who isn't already in that ecosystem.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
470
Forks
49
Language
Erlang
License
MIT
Last commit
7 Dec 2011

// nearby

If ernie isn't quite it.

All repos →