N2O is an embeddable message protocol loop library for WebSocket, HTTP, MQTT and TCP servers. It provides basic features, such as process management, virtual nodes ring for request processing, sessions, frame encoding, and unified API for external mq and caching services.
N2O was created to bring clarity and sanity to software development. The distribution model is per file basis with ISC license.
The core modules provide OTP start and N2O entry point.
MQTT version is implemented as RPC over MQ pattern. N2O service worker started as ring of virtual nodes each runs N2O loop.
mad app zero review
cd review
mad dep com pla rep
open http://127.0.0.1:8000
N2O Loop is directly connected and ran inside context of WebSocket handler.
Usually in Erlang we use syn
or gproc
OTP message buses.
As such buses are optional in MQTT setup we include bus drivers in WebSocket package.
mad app nitro sample
cd sample
mad dep com pla rep
open https://127.0.0.1:8001/app/index.htm
N2O ships with 3 optional protocols.
Formatters, Sessions, etc. Optional.