Writing tests

Tests allow us to detect errors at the very early stages of development. They require significant investment in terms of time and effort, but in return they save a lot of time that could be later spent in debugging the application, which is always much harder. There are different kinds of tests that can help to detect different problems in the application.

Load tests

If your application has to deal with multiple concurrent users, it is likely that with the increase in the number of users, you will experience problems that cannot be revealed in normal conditions. Simulating a large user load and further log analysis, or studying profiling results is always a good idea and a powerful tool to detect potential pitfalls.

In Chapter 8,

Get Mastering C# Concurrency 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.