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
Spring 5.0 Microservices

You're reading from   Spring 5.0 Microservices Scalable systems with Reactive Streams and Spring Boot

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher
ISBN-13 9781787127685
Length 414 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Rajesh R V Rajesh R V
Author Profile Icon Rajesh R V
Rajesh R V
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Demystifying Microservices FREE CHAPTER 2. Related Architecture Styles and Use Cases 3. Building Microservices with Spring Boot 4. Applying Microservices Concepts 5. Microservices Capability Model 6. Microservices Evolution – A Case Study 7. Scale Microservices with Spring Cloud Components 8. Logging and Monitoring Microservices 9. Containerizing Microservices with Docker 10. Scaling Dockerized Microservices with Mesos and Marathon 11. Microservice Development Life Cycle

Running BrownField services on EC2


In this section, we will set up BrownField microservices on the EC2 instances created. In this case, the build is set up in the local desktop machine and the binaries will be deployed into AWS. Follow these steps to set up services on the EC2 instance:

  1. Change all IP addresses in *.properties to reflect the IP address of the EC2 instance.
  2. Change the Java files mentioned earlier under chapter9.book and chapter9.website to reflect the IP addresses.
  1. On the local machine, recompile all projects and create Docker images for all microservices. Push all of them to the Docker Hub registry.
  2. Set up Java 8 on the EC2 instance.
  3. Execute the following commands in sequence:
sudo docker run --net=host rabbitmq:3
      sudo docker run -p 8090:8090 rajeshrv/search:1.0
      sudo docker run -p 8001:8001 rajeshrv/website:1.0
  1. Validate whether all services are working by opening the URL of the website and execute search. Note that we will be using the public IP of the EC2 instance in...
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 $19.99/month. Cancel anytime