Network Performance and Scalability
What do we have in this chapter?
Transmission Control Protocol (TCP)
User Datagram Protocol (UDP)
Asynchronous I/O Pattern
OS Networking Limitations
Optimizing Web Classes
Managing Threads and Connections
A Simple C# Web Class Performance Measurement Program Example
A Simple VB .NET Web Class Performance Measurement Program Example
Enabling the Visual Studio Editor Line Numbers
Managing HTTP Verbs
There are only a few basic principles to follow when designing high-performance applications, including resource management and using asynchronous I/O whenever possible. Also, understanding the underlying protocol reveals several possibilities for improving performance depending on the behavior of the application. These principles can be applied to any of the networking-related classes in the .NET Framework, including the Socket class and the Web classes. Additionally, understanding how the Web-related classes are built offers insight on how to maximize performance. Following these simple guidelines is straightforward and will result in better performance and more scalable applications.