Description: Create a load-testing script capable of simulating 1,000+ concurrent WebSocket client connections subscribing to the live liquidity pool event feeds.
Context / Motivation: WebSockets are notoriously memory-intensive. We must empirically prove that our Node.js event loop can handle high concurrency during volatile market events without dropping connections or triggering an Out-Of-Memory (OOM) crash.
Acceptance Criteria: - [ ] Utilize a load-testing tool designed for WebSockets (e.g., Artillery or custom Node worker threads).
Description: Create a load-testing script capable of simulating 1,000+ concurrent WebSocket client connections subscribing to the live liquidity pool event feeds.
Context / Motivation: WebSockets are notoriously memory-intensive. We must empirically prove that our Node.js event loop can handle high concurrency during volatile market events without dropping connections or triggering an Out-Of-Memory (OOM) crash.
Acceptance Criteria: - [ ] Utilize a load-testing tool designed for WebSockets (e.g.,
Artilleryor custom Node worker threads).Swapevent successfully reaches all 1,000 mock clients within 500ms.Technical Pointers: You may need to bypass default OS connection limits (
ulimit) locally to simulate thousands of concurrent sockets.