Event driven networking for Swift
summary
SwiftNIO (Netty for Swift) is a low‑level, nonblocking I/O framework that claims to let one thread multiplex hundreds of thousands of concurrent connections by using per‑thread event loops, copy‑on‑write byte buffers, and a channel pipeline of handlers (examples: SSL handler, backpressure handler, echo handler). The talk shows a working encrypted echo server, explains bootstraps, promises for async operations, and notes the project is open source on GitHub and already prompted an ARC optimization in the Swift compiler.
AI-written summary · about
chapters (12)
- 0:00Start
- 1:0910 does not happen as frequently as you may think
- 2:13Thread and Connection relationship in both worlds
- 4:25Threads are not free
- 10:30SwiftNIO Building Blocks
- 12:50Event Loop
- 14:31Channel Pipeline
- 16:15ChannelHandler
- 16:35ChannelOutboundHandler
- 18:07ChannelnboundHandler example
- 18:46Bootstrapping a Server
- 19:42SwiftNIO and the Swift ecosystem
related talks
05mSwift Superpowers #2
21mSwift NIO, Vapor, and Server Concurrency
23mIntroduction to AsyncHTTPClient
40mThe Knights Who Say NIO: SwiftNIO in Depth
01h 01mStructured Networking
45mNetty, Meet THE IO Framework for the JVM
18mBuilding Networking Libraries with Span and Concurrency
57mStructured Networking in C++
