Summary
In this chapter, we defined a use case for building an application that supports operations within an OPD of a hospital. Then, we discussed the solution architecture and deployment architecture of a microservice-based OPD application that uses NATS as the messaging platform. We identified the main components of the application and defined the data structures and interactions of microservices with each other and with external consumers. After that, we implemented a fully functioning OPD application using a microservice-based approach with the Go programming language. Then, we went through the code and discussed the implementation details using code segments from the application. After that, we discussed setting up a 3-node NATS cluster. Finally, we tried out the OPD application by connecting microservices with the NATS cluster using a real-world example of a patient going through the OPD process.
We will discuss the details of outer architecture components that we skipped...