Urgent.News

What's breaking now, across thousands of outlets.

Tech

Server-Sent Events (SSE) Backpressure Breaks: Memory Leaks and Socket Starvation in High-Throughput LLM Pipelines

Streaming LLM completions over Server-Sent Events (SSE) looks trivial in sandbox demos, but unhandled backpressure under real-world network conditions can destroy backend application servers. When slow clients fail to consume token chunks as fast as upstream model APIs generate them, unbounded Node.js internal stream buffers trigger memory leaks and OOM process crashes. Here is an architectural…

Server-Sent Events (SSE) are a popular method for streaming data from a server to a client, but handling backpressure can be challenging. When a client's network connection is slow, the upstream model provider may generate tokens much faster than the client can consume them. This mismatch can lead to memory leaks and even cause the server to crash due to out-of-memory errors.

The source material delves into the mechanics of unhandled backpressure in event streams and provides a production-ready backpressure-aware SSE pipeline to mitigate these issues.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Backyard Sweep: a ten-minute walk to find mosquito breeding spots, and what my own photos taught me

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass What I Built Mosquitoes breed in standing water, and the water usually sits in things we stop seeing: an old…

  • Backyard Sweep app identifies mosquito breeding spots in 10-minute home walk
  • Photographs of water-holding containers flagged by YOLOv8 detector
  • Tips for eliminating breeding sites provided by the free app

Who rules the rules in cyberspace

In cyberspace, where digital “state of nature” indicates a presence of hackers, trolls, cyber threats, and misinformation, English philosopher Thomas Hobbes would argue for a strong central authority…

Pocket rockhound buddy that works anywhere

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass What I Built I love to explore nature, and while I'm familiar with the minerals, fossils, and stones around my…

  • Offline tool identifies rocks, fossils, and minerals
  • Guides users through physical tests like scratching and weighing
  • Generates specimen label with hardness and origin

European Law for .NET Developers: What the GDPR Means for Your Code

Hey lovely readers, The GDPR has been around since 2018, and most of us have heard of it. But when I ask developers what it actually means for the code they write, they often don't know.

  • GDPR protects EU personal data in code, including names, email addresses, and IP addresses.
  • Special categories of data, like health and genetic data, have stricter processing rules.
  • Violations of GDPR can result in fines up to 20 million euros or 4% of global revenue.

Generating a Zod schema from an API response sample, and what a sample can’t tell you

Disclosure: I built the converter used in this post. The Zod code below is useful without it. TypeScript types disappear at runtime. const user: User = await res.json() checks nothing.

  • Single API response sample may not capture all schema variations
  • Generated Zod schema handles union types from multiple order schemas
  • Sample confirms data types but may not represent all possible formats

More from Saturday 10 October →