Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Microservices with Java

You're reading from   Mastering Microservices with Java Build enterprise microservices with Spring Boot 2.0, Spring Cloud, and Angular

Arrow left icon
Product type Paperback
Published in Feb 2019
Publisher Packt
ISBN-13 9781789530728
Length 446 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Sourabh Sharma Sourabh Sharma
Author Profile Icon Sourabh Sharma
Sourabh Sharma
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Section 1: Fundamentals FREE CHAPTER
2. A Solution Approach 3. Environment Setup 4. Domain-Driven Design 5. Implementing a Microservice 6. Section 2: Microservice Patterns, Security, and UI
7. Microservice Patterns - Part 1 8. Microservice Patterns - Part 2 9. Securing Microservices 10. Consuming Services Using the Angular App 11. Section 3: Inter-Process Communication
12. Inter-Process Communication Using REST 13. Inter-Process Communication Using gRPC 14. Inter-Process Communication Using Events 15. Section 4: Common Problems and Best Practices
16. Transaction Management 17. Service Orchestration 18. Troubleshooting Guide 19. Best Practices and Common Principles 20. Converting a Monolithic App to a Microservice-Based App 21. Other Books You May Enjoy

REST

Spring Boot adopts the simplest approach to building a standalone application that runs on an embedded web server. It creates an executable archive (JAR) file that contains everything, including an entry point defined by a class that contains the main() method. For making it an executable JAR file, you use Spring's support for embedding the Jetty servlet container as the HTTP runtime, instead of deploying it to an external instance for execution.

Therefore, we would create the executable JAR file in place of the WAR that needs to be deployed on external web servers, which is a part of the rest module. We'll define the domain models in the lib module and API related classes in the rest module.

We need to create separate pom.xml files for the lib and rest modules, respectively.

The pom.xml file of the lib module is as follows:

<?xml version="1.0" encoding...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime