Fully Functional I/O Reactor in Bare C
Introduction: An I/O reactor (single-threaded event loop) is a pattern for writing high-load software used in many popular solutions: Node.js, Tor, Transmission, Chromium, Memcached, etc. In this article, we will explore the underpinnings of the I/O reactor and the principle of its operation, implement it in less than 200 lines of code, and make a simple HTTP server handle over 40 million requests per minute. Preface […]
