Microservices, like any other application, can have bugs. You can make a mistake when writing new code, or by adding extra features to an application. In this chapter, we will explore the available tools to test and debug your microservices.
We will start by creating unit and integration tests for an application. We will also examine the testing capabilities of the actix crate.
After this, we will study debugging with the LLDB Debugger, and also examine logging as a debugging technique, since not every bug can be caught with a traditional debugger. Furthermore, if you use a product in production, you can't attach a debugger to it.
We will cover the following topics in this chapter:Â
-
Testing microservices
-
Debugging microservices