July 2017
Beginner to intermediate
340 pages
7h 43m
English
In this chapter, we've looked at how a service can interact with other services ;synchronously, by using a Requests session, and ;asynchronously, by using Celery workers or more advanced messaging patterns based on RabbitMQ.
We've also looked at ways to test a service in isolation by mocking other services, but without mocking the message brokers themselves.
Testing each service in isolation is useful, but when something goes wrong, it's hard to know what happened, in particular, if the bug happens in a series of asynchronous calls.
In that case, tracking what's going with a centralized logging system helps a lot. The next chapter will explain how we can tool our microservices to follow their activities.