Long Polling Over WebSockets

Originally published at Inferable Blog &#xA; Like many teams building real-time systems with Node.js and TypeScript, we&rsquo;ve been exploring ways to handle real-time updates at scale. Our system handles hundreds of worker nodes constantly polling our PostgreSQL-backed control plane for new jobs (tool calls issued by agents), while agents themselves continuously pull for execution and chat state…