Tag

IO Multiplexing

1 views collected around this technical thread.

Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 12, 2025 · Backend Development

How Nginx Handles Millions of Concurrent Connections: Inside Its Master‑Worker and Event‑Driven Architecture

This article explains Nginx's core Master‑Worker process model, high‑performance event‑driven design, I/O multiplexing with epoll, and asynchronous non‑blocking I/O, showing how these techniques enable the server to sustain millions of simultaneous connections.

IO MultiplexingNginxasynchronous I/O
0 likes · 5 min read
How Nginx Handles Millions of Concurrent Connections: Inside Its Master‑Worker and Event‑Driven Architecture
IT Services Circle
IT Services Circle
May 27, 2025 · Fundamentals

Why a Thread‑Only Model Struggles to Reach Million‑Level Concurrency on a Single Machine

The article analyzes why relying solely on operating‑system threads cannot easily achieve single‑machine million‑level concurrency, examining thread stack memory misconceptions, kernel‑level context‑switch costs, and how user‑space coroutine scheduling overcomes these limits.

CoroutinesIO MultiplexingThreads
0 likes · 6 min read
Why a Thread‑Only Model Struggles to Reach Million‑Level Concurrency on a Single Machine
Raymond Ops
Raymond Ops
Apr 20, 2025 · Databases

Why Redis Uses a Single Thread and How Multithreading Boosts Performance

This article explains Redis's single‑threaded network model, the role of IO multiplexing, the multithreading features introduced in Redis 6.0, and how to configure IO threads to improve throughput and latency.

IO MultiplexingLinuxRedis
0 likes · 7 min read
Why Redis Uses a Single Thread and How Multithreading Boosts Performance
Cognitive Technology Team
Cognitive Technology Team
Mar 24, 2025 · Fundamentals

Understanding Sockets and epoll: Kernel Abstractions and High‑Concurrency Design

Socket provides a file‑descriptor based network communication abstraction in the OS, while epoll uses a red‑black‑tree and ready‑queue mechanism to deliver O(log N) scalable I/O event handling, together forming the core design that enables high‑concurrency servers to efficiently manage thousands of connections.

IO MultiplexingLinuxSocket
0 likes · 7 min read
Understanding Sockets and epoll: Kernel Abstractions and High‑Concurrency Design
Top Architecture Tech Stack
Top Architecture Tech Stack
Jan 9, 2025 · Backend Development

Understanding Netty's Asynchronous Model, IO Multiplexing, and Epoll Implementation

This article explains Netty's powerful asynchronous architecture, compares classic multithread, Reactor, select, poll, and epoll I/O multiplexing models, demonstrates JNI integration for native performance, and provides complete example code for building a high‑performance epoll‑based server in Java.

IO MultiplexingJNIJava
0 likes · 32 min read
Understanding Netty's Asynchronous Model, IO Multiplexing, and Epoll Implementation
Code Ape Tech Column
Code Ape Tech Column
Dec 4, 2024 · Backend Development

Deep Dive into Netty’s Asynchronous Model, Epoll, IO Multiplexing, and JNI with Hands‑On C Code

This article explains Netty’s asynchronous architecture, compares classic multithread, Reactor, select, poll and epoll models, clarifies level‑triggered versus edge‑triggered event handling, and provides step‑by‑step JNI and hand‑written epoll server examples in C to illustrate high‑performance backend development.

C++IO MultiplexingJNI
0 likes · 33 min read
Deep Dive into Netty’s Asynchronous Model, Epoll, IO Multiplexing, and JNI with Hands‑On C Code
Lobster Programming
Lobster Programming
Jul 7, 2024 · Backend Development

Understanding Linux poll(): Structure, Events, and How It Works

This article explains the Linux poll() system call, detailing its pollfd structure, event flags, parameters like nfds and timeout, return values, and step‑by‑step operation flow for reading and writing data, highlighting differences from select and its advantages on 32‑bit systems.

IO MultiplexingLinuxbackend
0 likes · 5 min read
Understanding Linux poll(): Structure, Events, and How It Works
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jul 2, 2024 · Databases

Understanding Redis: Single‑Threaded vs Multi‑Threaded Architecture

This article explains how Redis operates primarily with a single‑threaded model for memory and network operations, why this design is efficient, and how recent versions introduce multi‑threaded components for network I/O, persistence, and asynchronous deletion while preserving thread safety.

IO MultiplexingPersistenceRedis
0 likes · 5 min read
Understanding Redis: Single‑Threaded vs Multi‑Threaded Architecture
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 27, 2024 · Databases

Why Redis Is So Fast: Key Architectural Reasons

This article explains why Redis achieves extremely high performance, reaching up to 100,000 QPS, by leveraging its in‑memory design, I/O multiplexing, optimized data structures such as SDS, ziplist and skiplist, and a single‑threaded event loop, each detailed with examples and code.

Data StructuresIO MultiplexingIn-Memory
0 likes · 6 min read
Why Redis Is So Fast: Key Architectural Reasons
Selected Java Interview Questions
Selected Java Interview Questions
Mar 27, 2024 · Databases

Why Database Connection Pools Do Not Use IO Multiplexing in Java

The article explains that Java database connection pools rely on blocking I/O and JDBC design rather than IO multiplexing, detailing the technical, architectural, and ecosystem reasons why multiplexed DB access is uncommon despite its potential performance benefits.

Connection PoolIO MultiplexingJDBC
0 likes · 9 min read
Why Database Connection Pools Do Not Use IO Multiplexing in Java
Code Ape Tech Column
Code Ape Tech Column
Feb 17, 2024 · Backend Development

Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing: Theory, JNI Integration, and a Hand‑Written Epoll Server

This article explains Netty’s reactor‑based asynchronous architecture, compares classic multithread, select, poll and epoll I/O multiplexing models, demonstrates Java‑C interaction via JNI, and provides a complete hand‑written epoll server implementation with detailed code and performance insights.

C++IO MultiplexingJNI
0 likes · 36 min read
Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing: Theory, JNI Integration, and a Hand‑Written Epoll Server
Architect
Architect
Jul 11, 2023 · Backend Development

Why Database Connection Pools Do Not Use IO Multiplexing

The article explains that database connection pools remain based on blocking I/O because JDBC was designed for BIO, managing session state per connection, and the ecosystem lacks a unified non‑blocking driver, making IO multiplexing technically possible but practically complex and rarely needed.

Connection PoolIO MultiplexingJDBC
0 likes · 9 min read
Why Database Connection Pools Do Not Use IO Multiplexing
Java Architect Essentials
Java Architect Essentials
Jun 30, 2023 · Backend Development

Why Database Connection Pools Do Not Use IO Multiplexing in Java

Although IO multiplexing can improve performance, Java applications typically use traditional connection pools like c3p0 or Tomcat because JDBC is built on blocking I/O, DB sessions require separate connections, and integrating NIO would complicate program architecture, making connection pools the pragmatic, mature solution.

Connection PoolIO MultiplexingJDBC
0 likes · 9 min read
Why Database Connection Pools Do Not Use IO Multiplexing in Java
Selected Java Interview Questions
Selected Java Interview Questions
May 29, 2023 · Backend Development

Understanding Blocking, Non‑Blocking, and I/O Multiplexing Models in Unix Network Programming

This article introduces the basic concepts of I/O and explains three Unix network programming models—blocking I/O, non‑blocking I/O, and I/O multiplexing—detailing their workflows, advantages, disadvantages, and practical analogies for better comprehension.

IOIO MultiplexingNon‑Blocking IO
0 likes · 10 min read
Understanding Blocking, Non‑Blocking, and I/O Multiplexing Models in Unix Network Programming
Code Ape Tech Column
Code Ape Tech Column
Dec 22, 2022 · Backend Development

Why Database Connection Pools Do Not Use IO Multiplexing (Java Interview Question)

The article explains why Java applications typically use traditional database connection pools instead of IO multiplexing, covering JDBC’s blocking design, session management, ecosystem maturity, and the complexity of integrating non‑blocking I/O with existing frameworks, while noting that a non‑blocking implementation is technically feasible.

Connection PoolIO MultiplexingJDBC
0 likes · 9 min read
Why Database Connection Pools Do Not Use IO Multiplexing (Java Interview Question)
Top Architect
Top Architect
Oct 25, 2022 · Backend Development

Understanding Netty's Asynchronous Model, Linux I/O Multiplexing (select, poll, epoll) and JNI Integration

This article explains Netty's high‑performance asynchronous architecture, compares classic multithread, Reactor, select, poll and epoll I/O multiplexing models, describes level‑triggered versus edge‑triggered event handling, and provides a step‑by‑step JNI example and a hand‑written epoll server implementation in C.

IO MultiplexingJNIJava
0 likes · 34 min read
Understanding Netty's Asynchronous Model, Linux I/O Multiplexing (select, poll, epoll) and JNI Integration
Architect's Guide
Architect's Guide
Oct 21, 2022 · Backend Development

Understanding Netty's Asynchronous Model and Linux epoll: From the Stone Sword Analogy to High‑Performance IO

This article explains how Netty implements a powerful asynchronous, event‑driven architecture using the Reactor pattern, compares classic multithread, select, poll and epoll I/O multiplexing models, demonstrates JNI integration with Java, and provides a complete, annotated epoll server example with level‑triggered and edge‑triggered handling for high‑concurrency backend development.

IO MultiplexingJNINetty
0 likes · 32 min read
Understanding Netty's Asynchronous Model and Linux epoll: From the Stone Sword Analogy to High‑Performance IO
Code Ape Tech Column
Code Ape Tech Column
Sep 9, 2022 · Backend Development

Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing – From Theory to a Hand‑Written Server

This article explains Netty’s reactor‑based asynchronous architecture, compares classic multithread, select, poll and epoll models, demonstrates JNI integration with C code, and provides a complete hand‑written epoll server example to illustrate high‑performance backend networking in Java.

C++IO MultiplexingJNI
0 likes · 34 min read
Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing – From Theory to a Hand‑Written Server
IT Architects Alliance
IT Architects Alliance
Aug 30, 2022 · Backend Development

Understanding Netty’s Asynchronous Model, Linux epoll, and JNI: Theory, Code Walkthrough, and Hand‑written Server Implementation

This article explains Netty’s high‑performance asynchronous architecture, the evolution of I/O multiplexing models from select to poll and epoll, demonstrates Java‑C integration via JNI with detailed code examples, and provides a complete hand‑written epoll server in C for achieving million‑connection concurrency.

C++IO MultiplexingJNI
0 likes · 32 min read
Understanding Netty’s Asynchronous Model, Linux epoll, and JNI: Theory, Code Walkthrough, and Hand‑written Server Implementation
Top Architect
Top Architect
Aug 30, 2022 · Backend Development

Understanding IO Multiplexing: select, poll, and epoll in Linux with Code Examples

This article provides an in‑depth explanation of Linux I/O multiplexing models—including select, poll, and epoll—detailing their mechanisms, advantages, limitations, and practical C code examples, while also covering edge‑triggered vs level‑triggered behavior and offering a complete epoll server implementation.

IO MultiplexingLinuxedge trigger
0 likes · 26 min read
Understanding IO Multiplexing: select, poll, and epoll in Linux with Code Examples