GithubHelp home page GithubHelp logo

microservice-example's Introduction

Microservice Example based on Spring Cloud

This is an example project to demonstrate building micro-services using Spring Boot and Spring Cloud. The project demonstrates the following concepts :-

  • Microservice development using Spring Boot
  • Microservice discovery using Netflix Eureka (Spring Cloud)
  • API Gateway for orchestration between microservices
  • Routing using Netflix Zuul (Spring Cloud)
  • SSL communication between all the services
  • API documentation using Swagger
  • Correlation between microservices using Spring Cloud Sleuth
  • Containerisation of microservices using Docker (WIP)

How to run

Please visit the individual projects for instructions to run the components.

  1. discovery
  2. edge
  3. All other individual micro-services (book, employee etc.)
  4. api-gateway

Architecture diagram

Microservice Architecture

Security between services

HTTPS has been configured for the full service stack. The supported SSL version is TLS 1.2.

  • Edge Server -> API Gateway - One way SSL
  • API Gateway -> Microservices - Two way SSL (mutual authentication)
  • Services -> Discovery Server - One way SSL

Technology choices

The following technology choices have been made.

  • Edge Server - Netflix Zuul
  • Discovery Server - Netflix Eureka
  • API Gateway/Microservices - Spring Boot
  • Datastore - MongoDB

How to run using Docker - WIP

  • Clone the project
  • Build the parent project using : mvn clean install
  • Go to the docker folder under this project and run the command : docker compose up
  • Open http://localhost:8761/ in your browser to see the services registered to Eureka

microservice-example's People

Contributors

sambamitra avatar samba-mitra avatar

Watchers

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