Erlang-inspired Go framework with message-passing actors, supervision, clustering, and optional Observer monitoring UI.
Overview
Ergo is a Go framework for building distributed, event-driven systems using isolated actor processes that communicate by messages instead of shared mutable state. It draws on Erlang/OTP ideas: supervision trees, network-transparent addressing, and pub/sub across nodes, while shipping with no external runtime dependencies.
Actors handle mailboxes sequentially with multiple priority queues, support synchronous and asynchronous messaging, and can run locally or remotely through a custom Ergo Data Format wire protocol with pooling, compression, and versioning. Supervisors apply OTP-style restart strategies. Meta processes bridge TCP, UDP, HTTP, WebSocket, and SSE without blocking actor mailboxes.
Cluster features include embedded or etcd-backed discovery, distributed events with token authorization, remote spawning, leader election, and interoperability with Erlang nodes on the same distribution protocol. Observability adds an optional Observer web application for processes, networks, logs, and profiles, plus tracing export and Prometheus-friendly metrics via Radar.
The ergo CLI scaffolds applications, actors, supervisors, and messages. Observer can expose MCP so compatible AI clients inspect cluster state. Kubernetes health probes, mTLS, and benchmarked multi-million messages per second locally are documented for production-style deployments.
Key features
- Isolated actors with prioritized mailboxes
- Supervision trees and restart policies
- Network-transparent remote messaging
- Distributed pub/sub across nodes
- TCP, UDP, and WebSocket meta processes
- Observer web UI and MCP inspection
- Erlang distribution interoperability
- CLI scaffolding and Kubernetes health hooks
Use cases
- Real-time WebSocket backends
- IoT device actors per endpoint
- Multi-agent systems with supervision
- Event-driven financial workflows
- Cluster-wide pub/sub fanout