- Cloud-Native Applications in Java
- Ajay Mahajan Munish Kumar Gupta Shyam Sundar
- 95字
- 2021-06-24 19:07:14
Design
Design takes a deeper dive into the interface and implementation decisions of the service. The product service will have a simple interface that takes a product ID and returns a Java object. If the product is not found in the repository, you can decide to return an exception or an empty product. The access is logged and metrics on how many times the service was accessed and how long it took are recorded. These are the design decisions.
We will discuss architecture and design principles specific to cloud development in detail in later chapters.