Custom transports

In Chapter 6, Addressing Network Performance, we started with an introduction to TCP/IP and briefly mentioned User Datagram Protocol (UDP). We also covered Transport Layer Security (TLS) encryption and how to minimize the impact of secure connections while still reaping performance benefits.

UDP is simpler and quicker than Transmission Control Protocol (TCP), but you either need to not care about reliable delivery (multiplayer games and voice/video chat) or build your own layer to provide this. In Chapter 10, The Downsides of Performance-Enhancing Tools, we highlighted StatsD, which uses UDP to avoid blocking latency while logging to a remote central server.

There are alternatives to TLS if you aren't constrained to a browser, ...

Get ASP.NET Core 2 High Performance - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.