logo

Real-Time Data Streaming

VortexDB allows you to subscribe to changes in your data in real-time. This is useful for building reactive applications that need to display up-to-date information.

Change Feeds

Change Feeds Diagram

VortexDB provides a change feed API that allows you to subscribe to changes in your data. You can use this API to build real-time applications, such as chat applications and live dashboards.

How Change Feeds Work

Event Type Payload Latency
Insert New document <5ms
Update Delta changes <5ms
Delete Document ID <5ms

Change feeds capture all data modifications (inserts, updates, deletes) as a continuous stream of events. Applications can subscribe to these events and react to them in real-time.

Use Cases for Change Feeds

  • Real-time Analytics: Analyze data as it changes to gain immediate insights.
  • Event Sourcing: Build event-driven architectures where data changes are treated as events.
  • Data Synchronization: Keep multiple systems synchronized with the latest data.
  • Auditing and Compliance: Maintain a complete history of all data modifications.

WebSocket Integration

VortexDB includes a built-in WebSocket server that makes it easy to stream data to your client-side applications.

Benefits of WebSocket Integration

  • Low Latency: Real-time data updates without polling.
  • Bidirectional Communication: Allows both server-to-client and client-to-server communication.
  • Reduced Overhead: More efficient than traditional HTTP requests for continuous data streams.

Example Use Cases

  • Live Dashboards: Display real-time metrics and visualizations.
  • Collaborative Applications: Enable multiple users to work on the same data simultaneously.
  • Gaming: Provide real-time updates for game states and player actions.
On this page