Network Resilience
Comprehensive Resilience Features
1. Persistent Message Storage
// When a node sends an event (internal implementation using NATS)
function sendEvent(targetNode, event) {
// FIRST: Publish to JetStream stream with the event's ID as message ID
// This happens automatically
// THEN: Deliver to recipient
// If successful, the recipient acknowledges
// If unsuccessful, the event remains in JetStream for later delivery
}2. Delivery Guarantees
3. Automatic Reconnection
4. Flow Control and Backpressure
5. Multi-Region Resilience
6. Causal Event Recovery
Resilience Across Environment Boundaries
Server Environments
Browser Environments
Edge/IoT Environments
Application Integration
Key-Value Store for Persistent State
Comprehensive Network Failure Handling
Process Crashes
Network Partitions
Regional Outages
Temporary Disconnections
Long-Term Outages
Benefits of NATS-Powered Resilience
Last updated