DN

Dev News

Signals from the builders shaping tomorrow.

User avatar

Alex Rivera

Pro member

Python-Node: Streaming and WebSocket Now Supported

Fast-moving teams are rewriting the rules of deployment by treating inference as a product layer, not just runtime plumbing.

PlatformaticPlatformatic
•Published on Dec 17, 2025
Circuit board thumbnail

@platformatic/python-node v2.0.0 introduces HTTP streaming and WebSocket support, enabling real-time bidirectional communication between Python ASGI applications and Node.js. The release implements ASGI 3.0 protocol with new handleStream() method for incremental response processing, request body streaming with backpressure, and full WebSocket support. This enables use cases like server-sent events, live dashboards, chat applications, and ML model inference while maintaining backward compatibility. The streaming architecture provides proper backpressure between languages, reduces memory footprint for large responses, and allows immediate access to headers before body completion.