Giter VIP home page Giter VIP logo

microservices-spring-cloud-netflix-oss's Introduction

Microservices Spring Cloud/Netflix OSS

This is another of my microservices example demo project. This is quite similar to my other microservice example project: https://github.com/colinbut/microservices-online-webshop.

But the difference with this one is that this one uses Spring Cloud entirely to build the microservices along with of course the Netflix OSS projects. Whereas, the other example showcases a generic Microservices example system application where each 'micro' service is built differently - Polygot.

This sample project specifically demonstrates the following features using the Spring Cloud ecosystem.

  • Service Registry
  • Centralized Configuration
  • (Client Side) Load Balancing
  • Circuit Breaker pattern

Spring Cloud / Netflix OSS

Service/Feature Spring Cloud Component Netflix Component
Service Discovery Spring Cloud Eureka Eureka
Load Balancing Spring Cloud Ribbon Ribbon
Circuit Breaker Spring Cloud Hystrix Hystrix
Centralized Configuration Spring Cloud Config Server [NONE]

Running Locally

  1. Start up Config Server
  2. Start the Service Registry
  3. Start up both web-service & accounts-service

Notes

Config Server must be started first as its a centralized configuration server where other microservices (incl. the Service Registry) reads its configuration from.

Service Registry need to be started next as the functional microservices need to register to the Service Registry as 'Clients'. The Service Registry would be the 'Server'.

Both web-service and accounts-service have been configured to run on a random port assigned during Spring start up.

Config Server

config-server/mvnw spring-boot:run

Service Registry

service-registry/mvnw spring-boot:run

Web Service

web-service/mvnw spring-boot:run

Accounts Service

accounts-service/mvnw spring-boot:run

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.