Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Latest commit

 

History

History
42 lines (27 loc) · 1.25 KB

elektra_web_pubsub.md

File metadata and controls

42 lines (27 loc) · 1.25 KB

Pub/Sub Communication

Problem

To develop a Web UI, we need to be able to remotely configure Elektra via a network socket.

The idea is to use a Pub/Sub concept to synchronize actions which describe changes in the Elektra state.

Constraints

  • We need to be able to synchronize all changes in Elektra with the Web UI.
  • This needs to be done via a network socket due to limitations of the Web.
  • That means we need to run an Elektra daemon (elektrad) to be able to connect to Elektra at any time.

Assumptions

Considered Alternatives

Decision

REST Api is used.

Rationale

nanomsg sounds interesting, but isn't as popular as ZeroMQ, which is why there are no browser JS bindings available (only Node.js, which cannot be easily used for the Web UI).

Implications

Related Decisions

Notes