Elaborate Microservice async example with FastAPI, RabbitMQ, MongoDB and Redis — part6.

Anders Wiklund
9 min readApr 2, 2023
Image created by author

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:

  1. Introduction and installation of required components.
  2. OrderService Architecture and Design patterns.
  3. OrderService usage of RabbitMQ.
  4. PaymentService Architecture and Design patterns.
  5. FastAPI enhancements.
  6. 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:

Image created by the author

--

--