First, we'll add the new module billing-service in the parent pom.xml file and create the Billing microservice the way other microservices are created in Chapter 5, Deployment and Testing. Most of the reactive code we have written for the Booking microservice will be reused for a Billing microservice, such as Avro schema and pom.xml entries.
We'll add the Avro schema in Billing microservice in same way we have added it in Booking microservice. Since schema namespace (package name) would be the same booking package in Billing microservice, we need to add value com.packtpub.mmj.booking in the scanBasePackages property of @SpringBootApplication annotation in BillingApp.java. It would allow the spring context to scan booking ...