routewatch/internal
sneak e14c89e4f1 Implement backpressure mechanism to prevent memory exhaustion
- Add semaphore to limit concurrent message handlers to 100
- Drop messages when at capacity instead of creating unbounded goroutines
- Track and log dropped messages (every 1000 drops)
- Remove nested goroutine spawning in handler loop
- Add metrics for dropped messages and active handlers

This prevents the memory usage from growing unboundedly when the
database can't keep up with the incoming BGP message stream. Messages
are dropped gracefully rather than causing OOM errors.
2025-07-27 22:51:02 +02:00
..
database Increase slow query threshold to 100ms 2025-07-27 22:45:28 +02:00
metrics Initial commit: RouteWatch BGP stream monitor 2025-07-27 21:18:57 +02:00
ristypes Initial commit: RouteWatch BGP stream monitor 2025-07-27 21:18:57 +02:00
routewatch Remove BGP keepalive logging and add peer tracking 2025-07-27 21:54:58 +02:00
server Add SQL query logging and performance improvements 2025-07-27 22:34:48 +02:00
streamer Implement backpressure mechanism to prevent memory exhaustion 2025-07-27 22:51:02 +02:00
templates Add SQL query logging and performance improvements 2025-07-27 22:34:48 +02:00