Best of WebSocket2025

  1. 1
    Article
    Avatar of platformaticPlatformatic·24w

    Python-Node: Streaming and WebSocket Now Supported

    @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.

  2. 2
    Article
    Avatar of cloudflareCloudflare·35w

    Cap'n Web: a new RPC system for browsers and web servers

    Cap'n Web is a new open-source RPC protocol built in TypeScript that brings object-capability features to web development. Unlike traditional RPC systems, it requires no schemas or boilerplate, supports bidirectional calling, function passing by reference, and promise pipelining. The protocol works over HTTP, WebSocket, and postMessage, compresses to under 10kB, and enables complex interactions like authentication patterns and array operations in single network round trips. It aims to solve GraphQL's waterfall problem while maintaining familiar JavaScript programming patterns.

  3. 3
    Video
    Avatar of bytebytegoByteByteGo·35w

    FAANG System Design Interview: Design A Chat System (WhatsApp, Facebook Messenger, Discord, Slack)

    A comprehensive guide to designing a scalable chat system like WhatsApp or Discord. Covers core architecture decisions including HTTP for sending messages and WebSocket for receiving, the inbox pattern for offline message delivery, service discovery for routing between chat servers, fan-out patterns for group messaging, and presence tracking with heartbeats. Discusses scaling challenges from thousands to millions of users, including connection bottlenecks, database sharding, and multi-region deployment.

  4. 4
    Article
    Avatar of bunBun·47w

    Bun v1.2.18

    Bun v1.2.18 introduces significant improvements including ReadableStream convenience methods (text(), json(), bytes(), blob()), WebSocket client compression with permessage-deflate, reduced memory usage for large uploads, faster native addon performance, and enhanced Node.js compatibility. The release fixes 52 issues, updates SQLite to 3.50.2, adds Math.sumPrecise support, and includes numerous bug fixes for networking, file system operations, and bundling functionality.