Excerpt: Developing Reactive Microservices With Java
Traditional enterprises running large, monolithic Java EE applications have been forced to rethink what they’ve been doing for nearly two decades. But how can microservices built upon reactive principles make a difference?
Join the DZone community and get the full member experience.Join For Free
I am very happy to announce that I finished another O'Reilly Mini-Book a couple of weeks ago. After the success of the very first edition which introduced you to the overall problem space of microservices and the amazing book by Jonas Bonér about the architecture of reactive microservice systems, it was about time to share a little more about how to implement them in Java. I am very proud to have had Jonas write the foreword for this one and that I was able to write another 50+ pages in such a short time. The book uses Lagom as a framework to walk you through the service API, persistence API, and show you how to work with Lagom-Services. I can't wait to hear your feedback and get you to try out Lagom. Here is the complete abstract and you'll find some further reading and links at the very bottom of the post. Did I mention, it is free to download? It is!
With microservices taking the software industry by storm, traditional enterprises running large, monolithic Java EE applications have been forced to rethink what they’ve been doing for nearly two decades. But, how can microservices built upon reactive principles make a difference?
In this O’Reilly report, author Markus Eisele walks Java developers through the creation of a complete reactive microservices-based system. You’ll learn that while microservices are not new, the way in which these independent services can be distributed and connected back together certainly is. The result? A system that’s easier to deploy, manage, and scale than a typical Java EE-based infrastructure.
With this report, you will:
- Get an overview of the Reactive Programming model and basic requirements for developing reactive microservices
- Learn how to create base services, expose endpoints, and then connect them with a simple, web-based user interface
- Understand how to deal with persistence, state, and clients
- Use integration technologies to start a successful migration away from legacy systems
- The detailed example in this report is based on Lagom, a new framework that helps you follow the requirements for building distributed, reactive systems. Available on GitHub as an Apache-licensed open source project, this example is freely available for download.
Markus Eisele is a Developer Advocate at Lightbend. He has worked with monolithic Java EE applications for more than 16 years, and now gives presentations at leading international tech conferences on how to evolve these applications into microservices-based architectures. Markus is the author of Modern Java EE Design Patterns (O’Reilly).
Published at DZone with permission of Markus Eisele, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.