DriftDB

Description

Clients connect to it directly over a WebSocket. It supports a number of messaging primitives, including:

  • Publisher / subscriber channels (PubSub)
  • Key/value storage with subscriptions
  • Ordered streams

Use cases

As a general rule, DriftDB is useful any time you wish you could connect directly from one browser to another, or from a non-web-connected backend (e.g. background task) to a browser. Examples include:

  • Backend for state synchronization in real-time collaborative apps (e.g. a whiteboard or casual multiplayer game)
  • Streaming build logs in real time in a CI/CD system
  • WebRTC signaling

Demos

References