Mastering Microservices with Java
By Sourabh Sharma
Publisher: Packt Publishing
Final Release Date: June 2016
Pages: 258

Master the art of implementing microservices in your production environment with ease

About This Book

  • Build, deploy, and test microservices from scratch with ease
  • Design and implement sample projects using domain-driven design
  • Confidently resolve the issues faced during development and deployment

Who This Book Is For

If you are a Java developer who is familiar with the microservices architecture and now wants to take a deeper dive into effectively implementing microservices at an enterprise level, then this book is for you. A reasonable knowledge level and understanding of core microservice elements and applications is expected.

What You Will Learn

  • Use domain-driven design to design and implement microservices
  • Secure microservices using Spring Security
  • Deploy and test microservices
  • Troubleshoot and debug the issues faced during development
  • Consume microservices using a JavaScript web application
  • Learning best practices and common principals about microservices

In Detail

With the introduction of the cloud, enterprise application development moved from monolithic applications to small lightweight process-driven components called microservices. Microservices are the next big thing in designing scalable, easy-to-maintain applications. It not only makes app development easier, but also offers great flexibility to utilize various resources optimally.

If you want to build an enterprise-ready implementation of the microservices architecture, then this is the book for you! Starting off by understanding the core concepts and framework, you will then focus on the high-level design of large software projects. You will gradually move on to setting up the development environment and configuring it before implementing continuous integration to deploy your microservice architecture. Using Spring security, you will secure microservices and test it effectively using REST Java clients and other tools. Finally, we'll show you the best practices and common principals of microservice design and you'll learn to troubleshoot and debug the issues faced during development.

By the end of the book, you will know how to build smaller, lighter, and faster services that can be implemented easily in a production environment.

Style and approach

This book starts from the basics, including environment setup and provides easy-to-follow steps to implement the sample project using microservices. It gives you the complete lifecycle of enterprise app development from designing and developing to deploying, testing, and security. Each topic is explained and placed in context, and for the more inquisitive, there are more details of the concepts used.

Product Details
Recommended for You
Customer Reviews


by PowerReviews
oreillyMastering Microservices with Java

(based on 1 review)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 1 customer

Displaying review 1

Back to top


It didn't work for me

By Almir Campos

from San Diego, CA, USA

About Me Developer

Verified Reviewer


  • Exciting On The Beginning
  • Good Technical Info


  • Code Didn't Work
  • Confusing Approach
  • Difficult to understand
  • Problems On The Code

Best Uses

  • Expert
  • Intermediate

Comments about oreilly Mastering Microservices with Java:

I was expecting a hands-on book from the beginning to the end of the book, and a source code that actually works. However, it didn't work that way.

On one hand, some conceptual explanations become too abstract; on the other hand, the practical examples are confusing. So, when I tried to create a link between them there were some big gaps or it required a lot of effort to figure out that relationship.

I was kind of excited until the end of the chapter 4. However, the chapter 5 was especially painful. My first approach was trying to study using the same method as the previous ones. It didn't work, too. So, I changed the approach: running the code, and trying use the code as the main resource instead of the text.

That also didn't work, because of two reasons: first, there were a lot of "error" and "fail" when I tried to build and run it, but there were no "Troubleshooting" section on the book. Actually, after some effort (which includes a lot of searches on google, "restarts from beginning") I was able to make the eureka-service and restaurant-service work (only one instance). By the way, one of the downloaded code on the chapter 5 have "chapter6" on the pom.xml.

Second, the explanations about the command to build and run the system were extremely confusing for me. The main problem was that the author didn't make clear where was the code he was explaining (which microservice? why the explained code was commented on the downloaded source code?). For example, something like : "you have to add the below code to your pom.xml file (...)". Which pom.file? You have a lot of them. In other situations, he gives a command line but don't say in which system and directory you have to go to run it. Try and error, again.

Ok, but maybe it was the computer I was using, with so may attempts, messy configurations, etc. So, I restarted the chapter 5 in another computer, using all the lessons learned from the experience described above. Unfortunately, I got the same results. The total effort on the chapter 5 was something around 12h-14h.

At this point I gave up and decide to search another source to "put things together" about microservices with Java.

I saw that the other reviews were very positive and I truly hope that other people find their way with this book. As I said on the title, it didn't work for me. Hopefully it will work for you.

Displaying review 1

Back to top

Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Ebook:  $35.99
Formats:  ePub, Mobi, PDF