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 338 Views

Recommend Documents

Containerized microservices - GitHub
interface layouts that can be shared across platforms, including iOS, Android, and the ..... 10. CHAPTER 2 | MVVM. With view model first composition the app is ...

Sample Statement of Work - GitHub
CONFIDENTIAL: The contents of this document are confidential and are intended exclusively for the designated recipients. The contents of this page is defined ...

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:.

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.

Monkey Clicks Project - GitHub
Apr 24, 2014 - Support Google admonb ads. • Share on social media. This manual describe the Tree android application V1 from Monkey. Clicks projects ...

Project Zygote - GitHub
Hardware : Thread, WiFi, Zigbee, BT 4.0, Z-Wave... ○ Network : 6LoWPAN, CoAP, XMPP, MQTT, STOMP... ○ App : WoT ... Using the framework. We will use the Zygote ... Even as a developer you need to know only JS to take full advantage.

final project requirements - GitHub
In the course of the project, we expect you to complete the following tasks: 1) Gather ... The presentations should target a non-technical audience and serve the ...

Project 1 - GitHub
The analytical solution for this PDE is given by: ... 2 dr is the complementary error ... Show that the accuracy of the solution improves on a finer mesh (as ∆y ...

Project 2 - GitHub
Use the following explicit schemes: 1. Finite-Volume: FTCS for both convection and diffusion. 2. Finite-Volume: First order upwind for convection, FTCS for ...

Project 3 - GitHub
Discuss the following: 1. Plot the residual vs. number of iteration for each method. Use different relaxation factors for PSOR and LSOR. 2. What relaxation factor ...

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 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.

Image matting using comprehensive sample sets - GitHub
Mar 25, 2014 - If αz = 1 or 0, we call pixel z definite foreground or definite background, ..... In Proceedings of the 2013 IEEE Conference on Computer Vi-.

Sample use of automatic numbering - GitHub
Apr 11, 2015 - Exercise 1. This is the first exercise. Have also a look at the Theorem 1.1, the exercise 2 and the exercise 3. Theorem 1.1: Needed for the second exercise. This is a the first theorem. Look at the exercise. 1. Page 2. Exercise 2 (This

A Random User Sample App - GitHub
Alloy has two in-build adapters: ○ sql for a SQLite database on the Android and iOS platform. ○ properties for storing data locally in the Titanium SDK context.

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.

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.

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

Sample Certificate - Project Management Maturity in Organizations ...
Sample Certificate - Project Management Maturity in Organizations - an Overview.pdf. Sample Certificate - Project Management Maturity in Organizations - an ...

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.

The summary of Tibbo Project System - GitHub
To achieve an economical basic unit price, we kept the onboard circuitry to the necessary minimum. For example, there is no built-in power supply – the boards directly accept only regulated +5V power. Real- world power processing (12V, 24V, PoE, et

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 ...
KNOWLES. DOWNLOAD EBOOK : MICROSERVICES: DISCOVER AND MANAGE. MICROSERVICES ARCHITECTURE BY JAKE KNOWLES PDF. Page 1 of 7 ...