Chapter 10. Architecting a microservice hybrid

 

This chapter covers

  • Running the Cayambe monolith
  • Integrating microservices into Cayambe with a hybrid approach
  • Modifying Cayambe to integrate your microservices
  • Running the integrated Cayambe in a hybrid cloud

This chapter starts by showing you the old Cayambe and how to get it running locally. Then, after covering some theory on using the hybrid approach to integrating your microservices, you’ll revisit the architecture you’re looking to achieve for the new Cayambe. Next, you’ll dive into implementing the hybrid approach, with the microservices you’ve developed throughout the book so far. Finally, you’ll take your revitalized Cayambe monolith, along with the required microservices, and get them all running in the cloud.

10.1. The Cayambe monolith

Figure 10.1 provides a reminder of the Cayambe homepage from a user’s perspective.

Figure 10.1. Cayambe homepage

Cayambe (https://sourceforge.net/projects/cayambe/) is described as a “J2EE E-Commerce Solution using Java Servlets & JSP & EJB.” It was built on JDK 1.2 and uses Apache Struts v1. The existing code, which was last updated 15 years ago and can be found at http://cayambe.cvs.sourceforge.net/viewvc/cayambe/, was downloaded and imported to the code repository for this book under /cayambe.

10.2. Running the Cayambe monolith

10.3. Cayambe hybrid—monolith with microservices

10.4. Deploying everything to a hybrid cloud

Summary