MICRO-SERVICES SAMPLE PROJECT

Components Document & Tools Usage



VIJAYENDRA MUDIGAL http://vijayendra.mudigal.com/

TABLE OF CONTENTS API Gateway ........................................................................................................................ 3 Service Registration and Discovery ........................................................................... 3 Monitoring AND Vizualization ..................................................................................... 5 Centralized Logging using elk ...................................................................................... 6





2



API GATEWAY Netflix Zuul acts as the API Gateway for accessing the micro services behind the gateway. It also acts as the load balancer and the reverse proxy server which routes the request to the respective service. Microservice’s stay behind reverse proxy server and needs to be consumed via api gateway. The Docker profile of the api-gateway micro service runs on port 8080 and can be accessed by http://localhost:8080 . Configuration done in API Gateway for Routing: zuul: ignoredServices: '*' routes: one: path: /service-one/** serviceId: Service-One two: path: /service-two/** serviceId: Service-Two three: path: /service-three/** serviceId: Service-Three

SERVICE REGISTRATION AND DISCOVERY Registration and discovery is taken care by the HashiCorp’s Consul. Every micro service that has to be routed from api-gateway has to register itself to Consul so that it could be discovered by the API Gateway. Once the service is registered to the consul, consul checks for the health of the service by sending a heartbeat for the health check path and health check interval that has been registered with Consul.

3

Configuration done in micro services to register to Consul: management: contextPath: /manage spring: application.name: service-one cloud: consul: host: consul port: 8500 discovery: hostName: service-one instanceId:${spring.application.name}:${spring.application.i nstance_id:${random.value}} healthCheckPath: ${management.contextPath}/health healthCheckInterval: 15s

Tools: Consul Management console: http://localhost:8500/ui/



4

MONITORING AND VIZUALIZATION Monitoring, visualisation & management of the container in docker is done by weave scope. Tools: Weavescope Management Console: http://localhost:4040/



5

CENTRALIZED LOGGING USING ELK Our services use Logback to create application logs and send the log data to the logging server (Logstash). Logstash formats the data and send it to the indexing server (Elasticsearch). The data stored in elasticsearch server can be beautifully visualized using Kibana. Tools: Elasticsearch: http://localhost:9200/_search?pretty Kibana: http://localhost:5601/



6

micro-services sample project - GitHub

Netflix Zuul acts as the API Gateway for accessing the micro services behind the gateway. It also acts as the load balancer and the reverse proxy server which routes the request to the respective service. Microservice's stay behind reverse proxy server and needs to be consumed via api gateway. The Docker profile of the ...

702KB Sizes 4 Downloads 92 Views

Recommend Documents

Project 4.3 - Project Proposal - GitHub
Nov 5, 2013 - software will find the optimal meet time for all users. This component is similar to the ... enjoy each others company! Existing Approaches:.

Project 4 - GitHub
Project 4. Vorticity-Stream F\rnction Method. Due: Mon., Dec. 6, 2010 at 6:00 pm. Consider the incompressible laminar flow in the plane channel shown below.

sample-project-synopsis.pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. sample-project-synopsis.pdf. sample-project-synopsis.pdf. Open.

Sample Language for Reporting and Confidentially ... - GitHub
misconduct policy.1 Schools must also consult applicable state laws (such as .... order to provide a safe, non-discriminatory environment for all students. ... the College encourages victims to talk to someone, the College provides an online [or.

QR Reader Java Project - GitHub
QR Reader Java Project. Date: 4 July ... Open eclipse and click on File -> import -> General -> Existing projects into workspace as shown in fig. 2. ... Similarly fix problem of JRE system library if in ... ProjectFlow.pdf show complete flow of proje

Project Plan Samples Sample 1 Author's Name Project Proposal ...
find it within the HTML source code and copy it to the place where you need it.] ... 2. Project Scope + Deliverables. 2.1 Scaling Plan. 2.2 Partnerships. 3.

project feasibility study sample pdf
Page 1 of 1. File: Project feasibility study sample pdf. Download now. Click here if your download doesn't start automatically. Page 1 of 1. project feasibility study sample pdf. project feasibility study sample pdf. Open. Extract. Open with. Sign In

man-120\project-management-certification-sample-questions.pdf ...
man-120\project-management-certification-sample-questions.pdf. man-120\project-management-certification-sample-questions.pdf. Open. Extract. Open with.

Hello World This is just a sample PDF. - GitHub
Page 1. Hello World. This is just a sample PDF.

pdf-2530\microservices-discover-and-manage-microservices ...
Try one of the apps below to open or edit this item. pdf-2530\microservices-discover-and-manage-microservices-architecture-by-jake-knowles.pdf.