Menu

1 / 3

A DTE relay that stores nothing

DEV Community: javascript·VX·3 days ago
#axROpFP0
#devtojavascript#devto#dev#socket#relay
Reading 0:00
15s threshold

The relay behind vx DTE keeps no

message, sets no timer and writes no storage row. A quiet run of four

sockets sends 60 frames through it in ten heartbeats.

One route, one socket each

Each side opens one websocket and joins on it, with its CI OIDC token.

There is no other route. A refused join gets its socket closed, with

the reason in the last frame and in the close.

The two ends make sure a message lands

The relay pushes a message down the receiver's socket, or drops it. Each

side numbers what it sends and sends it again until the other acks it.

The receiver takes each number once, in order.

A closed socket is a lost worker

1 orchestrator, 3 idle workers · 88-96 frames before, 24 up and 36 down after ( #4309 )

When a socket closes, the relay drops its worker at once. A worker that

goes quiet on an open socket is asked after 1.5 heartbeats.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.