The article explains the publish‑subscribe (pub/sub) messaging model, its time, space, and synchronization decoupling features, typical real‑time scenarios such as chat and log processing, and details how Redis implements pub/sub through channels and pattern subscriptions, including command syntax and internal data structures.
This article details the overall architecture of an instant‑messaging client, covering protocol encapsulation, task flow, various timer implementations, state management, reconnection logic, login process, asynchronous handling, and local caching strategies for reliable communication.
This article introduces Node.js’s core characteristics—event‑driven, non‑blocking I/O, lightweight and efficient—while posing key questions about its underlying mechanisms, asynchronous callbacks, synchronous alternatives, event handling, performance limits, and scenarios where Node.js may not be suitable.
setTimeout schedules code to run after a delay by handing the callback to the browser’s Web APIs, which later places it in the task queue; once the call stack is empty, the event loop processes the queued callback, illustrating the asynchronous execution flow in JavaScript.
This article explains how to create an asynchronous MySQL proxy server using the Swoole extension, detailing connection pooling, idle/busy management, request queuing, and providing a complete PHP implementation that reduces MySQL load and network overhead for PHP applications.
This article explains how to achieve asynchronous MySQL queries in PHP by leveraging mysqlnd's async functions and PHP generators, compares synchronous and asynchronous execution times, provides a complete coroutine‑based example, and discusses performance considerations and limitations.
This article explains the differences between long and short TCP/IP connections, outlines three major communication models (server/client, connection type, and send/receive mode), describes synchronous and asynchronous transmission, and reviews various message formats and read/write strategies to help developers design robust network programs.
This article shares five practical pitfalls encountered while building a pure‑async Redis client with Netty, covering thread‑model changes, pooled ByteBuf allocation across threads, ByteBuf expansion, connection timeout handling, and flow‑control in asynchronous writes, and offers concrete code‑based solutions.
This article outlines eBay's practical scalability best practices—including functional partitioning, horizontal sharding, avoiding distributed transactions, asynchronous design, virtualization, and judicious caching—to help large‑scale web systems achieve reliable, cost‑effective growth.
The article explains how applying asynchronous programming and the actor model to browser‑client interactions—using Ajax polling, read‑write separation, and non‑blocking request patterns—can improve throughput, avoid timeouts, and enable independent optimization of read and write services in high‑concurrency web applications.
This article clarifies Unix I/O models by distinguishing synchronous and asynchronous operations, explaining blocking versus non‑blocking behavior, and summarizing the five classic I/O models with practical insights drawn from Richard Stevens' authoritative definitions.