Hornbeam Documentation

Hornbeam is an HTTP server and application server that combines Python’s web and AI capabilities with Erlang’s infrastructure:

  • Python handles: Web apps (WSGI/ASGI), ML models, data processing
  • Erlang handles: Scaling, concurrency, distribution, fault tolerance, shared state

Getting Started

Guides

Examples

Reference

Why Hornbeam?

ChallengeTraditional PythonHornbeam
Concurrent connections~1000s (GIL)Millions (BEAM)
Distributed computingRedis/RabbitMQBuilt-in Erlang RPC
Shared stateExternal databaseETS (in-memory)
Hot reloadRestart serverLive code swap
Fault toleranceProcess crashes = downSupervisor restarts

Erlang Python Integration

Hornbeam is built on Erlang Python, which provides:

  • Bidirectional Erlang ↔ Python calls
  • Sub-interpreters for true parallelism
  • Free-threaded Python (3.13+) support
  • Automatic type conversion
  • Streaming from generators

See the Erlang Python documentation for low-level Python integration details.