Giter Site home page Giter Site logo

ritreshgirdhar / microservices-springcloud Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 118 KB

This repo will help you in implementing micro-services using spring cloud - Netflix oss stack.

Java 90.56% Dockerfile 9.44%
microservices spring-boot zuul-server zipkin-server zipkin-sleuth spring-cloud config-server docker-image docker-compose sleuth

microservices-springcloud's Introduction

Microservices-SpringCloud

Here i am giving you demo of ideal microservice architecture with running sample code.

Components

* Edge Services - Gateway -> ZUUL
* Service Registry -> ServiceRegistry -> Eureka
* Configuration -> Config -> Cloud Configuration.
* Rest Apis -> MS1,MS2 -> Spring rest apis

Gateway

# Currently , i am using ZUUL , once Spring cloud gateway get stable we move to that.
# Gateway pointing to ServiceRegistry to discover the new microService in the environment
# Gateway also point to Config to get the dynamic routing

Service Registry

# Independent Service , i am using eureka here to manage registry.

Config

# Independent Service 
# The thing which are missing in this currently , git monitoring webhook will deploy it soon.
# Currently config reading from ~/tmp/config git directory 

MS1

# Simple MicroService with 2 api /v1/ & /message
# Registered with Eureka
# pointing to cloud for fetching configuration
# Zipkin enable for tracing, in log you can check track id & span id

MS2

# Simple MicroService with 1 api /v1/
# Registered with Eureka
# pointing to cloud for fetching configuration
# Zipkin enable for tracing, in log you can check track id & span id

Trace & Monitoring

# In each microservice sleuth is enable which help in tracing the request
# and Zipkin Server is running on one instance and all microservice & gateway pointing to zipkin base url.

I have enable docker for easy deployment and maintainence. You can find the above docker images : https://hub.docker.com/u/ritreshgirdhar/ https://store.docker.com/community/images/ritreshgirdhar/serviceregistry https://store.docker.com/community/images/ritreshgirdhar/config https://store.docker.com/community/images/ritreshgirdhar/ms1 https://store.docker.com/community/images/ritreshgirdhar/ms2 https://store.docker.com/community/images/ritreshgirdhar/ms3 https://store.docker.com/community/images/ritreshgirdhar/gateway

#Running Demo, (pardon if the below servers are down, as i am using them for another pocs.)

microservices-springcloud's People

Contributors

ritreshgirdhar avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.