Messages between services, without another system
Pass messages between services with KiviDB: streams with consumer groups for work that must not be lost, and Pub/Sub for live fan-out.
Streams keep an ordered log that groups of consumers work through and acknowledge. Pub/Sub delivers a message to everyone listening right now. Both are part of the server.
Where KiviDB sits
Producers → KiviDB (a stream that keeps its history) → Consumers (a group shares the work)
Choose by what must not be lost
- Streams An ordered log. Consumer groups share the work, every message is acknowledged, and unacknowledged ones can be claimed by another worker.
- Pub/Sub PUBLISH reaches every subscriber connected at that moment. Nothing is stored, which is right for live updates and wrong for work.
- Lists LPUSH and BRPOP make a simple queue when one consumer and no acknowledgement are enough.
What KiviDB Cloud adds
- Replicas and failover On the Pro plan a replica takes over when the primary is lost, and the hostname your application uses stays the same.
- Durability An append-only log on paid plans, snapshots on demand, and scheduled snapshots you can switch on.
- Access control A firewall per database, closed until you open it, database users with their own permissions, and private connectivity.
Other use cases
- Caching: Keep hot data in memory in front of a slower store.
- Session store: Sessions that every application server can read.
- Rate limiting: Count and cap requests per user, key or address.
Connect your services with a stream
Create a free database and run the producer and the worker above.