.NET Core Networking stack and Performance
summary
Architecture walkthrough of the .NET Core networking stack: sockets, SSLStream, DNS, WinHTTP and libcurl handlers, and Kestrel on libuv; claim of a new managed HTTP handler that sits directly on sockets to bring consistency across Windows/Linux and avoid libcurl/WinHTTP divergence. Microbenchmarks on Linux hit about 1 GB/s throughput for large payloads, experiments swapping libuv→sockets show up to ~20% wins, but SSL still shows a 22% SSL gap versus Go despite 2.0 doubling prior throughput.
AI-written summary · about
chapters (24)
- 0:00Introduction and welcome
- 0:34Networking stack overview
- 2:00Legacy .NET Framework stack
- 5:14UWP networking architecture
- 6:43.NET Core networking today
- 9:08Future of .NET Core networking
- 10:33Technical roadmap and goals
- 14:49Performance measurement strategies
- 21:28Benchmarking environment
- 23:12Micro-benchmark results
- 25:16SSL performance analysis
- 26:22Kestrel server improvements
- 27:46Managed HTTP client handler
- 29:11SSL stream performance focus
- 31:22Industry benchmark insights
- 32:25Performance beyond metrics
- 34:54Performance design lessons
- 38:47BCL performance overview
- 41:13Community contributions impact
- 43:39Span<T> and safety features
- 45:01BCL design trade-offs
- 47:51API complexity considerations
- 48:54Summary and key takeaways
- 49:58Q&A session
