Chapter 2. Developing a simple RESTful microservice
This chapter covers
- Introducing the Cayambe monolith
- Developing a simple RESTful application
- Packaging your simple RESTful application as a microservice
- Understanding development with Enterprise Java for microservices
This chapter will introduce you to the Cayambe monolith. The Cayambe monolith will assist as we develop Enterprise Java microservices throughout the book, with each microservice becoming a part of a new Hybrid monolith in chapter 10.
Cayambe is an e-commerce application that hasn’t been maintained for the last 15 years and needs serious modernization. It’s easy to see from the homepage in figure 2.1 that it doesn’t quite have the same look as modern websites do today.
As you can see in figure 2.2, Cayambe is an EAR deployment that consists of three WARs, a common JAR for the UIs, and a JAR containing the EJBs (Enterprise Java-Beans) and DAOs (data access objects) for interacting with the database.
Throughout the book, you’ll work toward moving Cayambe to a series of deployments, as represented in figure 2.3. Chapter 10 outlines additional details of Cayambe; in that chapter, you’ll integrate the monolith with the microservices you develop over the coming chapters.