Elaborate Microservice async example with FastAPI, RabbitMQ, MongoDB and Redis — part6.
9 min readApr 2, 2023
Introduction
This is part6 in the series. This part talks about the health endpoint and putting it all together, i.e. running it as a system.
Here’s a brief outline of the article parts:
- Introduction and installation of required components.
- OrderService Architecture and Design patterns.
- OrderService usage of RabbitMQ.
- PaymentService Architecture and Design patterns.
- FastAPI enhancements.
- Putting it all together (this article).
Health endpoint
The purpose of the health endpoint is to respond with the Microservice current status when it’s called by an external supervision system like Nagios, Prometheus, Datadog or Elastic to name a few.
I have chosen to report the current connection status of the Microservice external components. This is what the OpenAPI documentation for the OrderService looks like: