Giter Site home page Giter Site logo

cevheri / springboot-microservices-example Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 8.0 607 KB

Spring Boot Microservices Application API Gateway, Service Registry, Circuit Breaker, Hystrix Dashboard, and Other Microservices

Java 92.91% Shell 7.09%
java spring-boot apigateway service-registry h2-database eureka-client eureka-server circuit-breaker eureka hystrix

springboot-microservices-example's Introduction

Java Spring-Boot Microservices Example

Light-weight sample for Microservices learning


  • Spring Boot version: 2.5.0
  • Dependencies:
    • spring-cloud-starter-netflix-eureka-server

Spring Boot version: 2.3.11.RELEASE

  • Dependencies:
    • spring-cloud-starter-gateway
    • spring-cloud-starter-netflix-hystrix
    • spring-cloud-starter-netflix-eureka-client
    • spring-cloud-starter-config

  • Spring Boot version: 2.5.0
  • GitHub repository -> application.yml
  • Dependencies:
    • spring-cloud-config-server
    • spring-cloud-starter-netflix-eureka-client
  • Zookeeper (not yet)

  • Spring Boot version: 2.3.11.RELEASE
  • Dependencies:
    • spring-cloud-starter-config
    • spring-cloud-starter-netflix-hystrix-dashboard
    • spring-cloud-starter-netflix-eureka-client

Other Microservices

  • Spring Boot version: 2.5.0
  • Person, Department, Task Management Services
  • Dependencies:
    • spring-cloud-starter-config
    • spring-cloud-starter-netflix-eureka-client
    • spring-cloud-starter-bootstrap
    • com.h2database.h2
    • org.projectlombok.lombok
    • spring-boot-starter-data-jpa
    • spring-boot-starter-web

Launch all service

$ docker-compose -f docker-compose/app.yml up -d

Zipkin

Docker The Docker Zipkin project is able to build docker images, provide scripts, and a docker-compose.yml for launching pre-built images. The quickest start is to run the latest image directly:

docker run -d -p 9411:9411 openzipkin/zipkin


Project Links:

Maven and Docker Build -> jib

$ cd service-registry && ./mvnw -Pprod clean verify jib:dockerBuild && cd ..
$ cd config-server && ./mvnw -Pprod clean verify jib:dockerBuild && cd ..
$ cd api-gateway && ./mvnw -Pprod clean verify jib:dockerBuild && cd ..
$ cd hystrix-dashboard && ./mvnw -Pprod clean verify jib:dockerBuild && cd ..
$ cd department-service && ./mvnw -Pprod clean verify jib:dockerBuild && cd ..
$ cd person-service && ./mvnw -Pprod clean verify jib:dockerBuild && cd ..
$ cd task-service && ./mvnw -Pprod clean verify jib:dockerBuild && cd ..

Run docker-compose

$ docker-compose -f docker-compose/app.yml up -d

Stop docker-compose

$ docker-compose -f docker-compose/app.yml down

Screenshots

All Microservices UP

References:

springboot-microservices-example's People

Contributors

cevheri avatar

Stargazers

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