Erlang + CZMQ: Scalable, Secure, Cross Language Messaging
summary
An Erlang wrapper around CZMQ (a C binding for ZeroMQ) is shown by building a tiny JSON pretty‑printer: a Python process binds a REPLY socket on TCP:5555, the Erlang side connects with a REQUEST socket via an external port and does send/receive polling to simulate blocking; it works in demo runs. The binding mirrors the CZMQ API and favors safety over raw speed: pure C reaches 1.2 million msgs/s, NIFs about half that, this external‑port binding delivers tens of thousands/sec but is stable and supports libzmq + czmq security (libsodium).
AI-written summary · about
chapters (15)
- 0:00Start
- 2:47Yes, 40+ Languages!
- 3:55Why ZeroMQ Matters
- 6:33Option 1: Modify existing application
- 8:05Option 2: Add a service
- 9:14JSON Formatting Service
- 15:15Yet More Python Code
- 18:17More Erlang Code
- 23:14Service Using ZeroMQ
- 27:56Router/Dealer
- 30:53Highlights
- 34:13czmq-port
- 37:24Receiving Messages
- 40:30Performance Libraries
- 43:21Where To Start?
related talks
49mAn Introduction to Erlang From behind the Trenches
01h 03mThinking Erlang in a connected world
45mElixir and the Internet of Things
44mElmrang Connect
03h 19mWorkshop - All Aboard The Elixir Express!
45mElixir: une potion pour mixer complexité et concurrence en temps réel
39m"Elixir-based Ruby Web Server"
31mInteroperability in Elixir: Dealing With the World Outside of the Beam
