Enki Multimedia

Enki Multimedia / Web & Real-time

Web & Real-time

We build web and real-time applications for our customers: pages and APIs, the calls they make to other services, live updates, audio and video from the browser.

We write them in Erlang. Each connection runs in its own lightweight process, so a failure stays contained and is restarted while the rest keep running, and one server holds many connections at once. We also write and maintain the libraries underneath, so you work with people who know the stack from the inside.

Serve a page

Livery, our web framework for Erlang, receives the request over HTTP/1.1, HTTP/2 or HTTP/3, and your code sends back a page or data.

Livery

Call other services

Hackney, an HTTP client library, is what an Erlang application uses to request data from another service. It works over HTTP/1.1 or HTTP/2, with HTTP/3 as an experimental option, and reuses its connections.

Hackney

Stream live updates

WebTransport lets a browser and a server exchange data as it arrives. A dashboard keeps a session open and receives each update as it happens.

erlang-webtransport

Receive live media

WebRTC lets a browser send live audio or video. Here a browser sends live camera video to an Erlang application.

erlang_webrtc

The stack, layer by layer

Livery handles incoming web requests. Hackney sends requests to other services. The diagram shows HTTP/1.1 and HTTP/2 over TCP, HTTP/3 over QUIC, and a separate path for live media with WebRTC. Every coral-marked box is code we write and maintain; select it to read the source.

Web and real-time, in Python and Erlang
Python

Application

Your Python web application

Runtime

CPython

Gunicorn support

ErlangHTTP and WebRTC

Sessions

erlang-webtransportWebTransport over HTTP/2 and HTTP/3
ICE and data channels, in erlang_webrtc

Transport

TCP and TLS
UDP, shared by QUIC and WebRTC

Runtime

Erlang/OTP
The same Livery handler can answer a browser over HTTP/2 or HTTP/3. Hackney uses erlang_h2, erlang_quic and erlang-webtransport, with its own HTTP/1.1 code.
WebTransportsessions, in the HTTP stack

For example: a dashboard receives live updates over a WebTransport session.

erlang-webtransport

WebRTClive media, in the stack above

For example: a browser sends live camera video to an Erlang peer.

The browser video example

The Erlang HTTP stack in detail

Gunicorn supportProjects

Building something that runs in a browser?

Tell us what has to appear on the screen and where the data comes from.

Work with Enkisales@enki-multimedia.eu