Chapter 6: A Practical Example of Microservices with NATS
At this point, we have a strong understanding of the microservice architecture and the NATS messaging technology. In this chapter, we are going to use our knowledge to build a real-world application using a microservice architecture with NATS as the inter-service communication mechanism. We will use the reference architecture of microservices that we discussed in the previous chapter to implement an application for a healthcare service provider such as a hospital.
The following topics will be covered in this chapter:
- Understanding the use case of a hospital outpatient department (OPD)
- Defining the solution architecture
- Implementing microservices
- Setting up the NATS servers cluster
- Trying out the sample application
By completing this chapter, you will have learned how to implement microservices that communicate with each other using the NATS protocol. In addition to that, you will also learn...