All Projects → piomin → Sample Spring Microservices

piomin / Sample Spring Microservices

Many samples in different branches that shows how to create microservices with Spring Boot, Spring Cloud, Zipkin, Zuul, Eureka, Hystrix, Kubernetes, Elastic Stack and many more tools

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Sample Spring Microservices

Springcloud Learning
Spring Cloud基础教程,持续连载更新中
Stars: ✭ 6,839 (+1758.42%)
Mutual labels:  eureka, spring-boot, spring-cloud, ribbon, zuul, zipkin, hystrix
Spring Petclinic Microservices
Distributed version of Spring Petclinic built with Spring Cloud
Stars: ✭ 814 (+121.2%)
Mutual labels:  microservices, eureka, spring-cloud, ribbon, zuul, zipkin, hystrix
tictactoe-microservices-example
An example of Spring Cloud Microservices application based on books (see Links section)
Stars: ✭ 23 (-93.75%)
Mutual labels:  spring-cloud, zuul, hystrix, ribbon, eureka, zipkin
Mini Platform
Mini-Platform致力于更简洁易用的轻量级微服务治理平台。
Stars: ✭ 45 (-87.77%)
Mutual labels:  microservices, eureka, spring-boot, spring-cloud, ribbon, zuul
Bookstoreapp Distributed Application
Ecommerce project is being developed using Spring Boot Microservices and Spring Cloud (Backend) and React (Frontend). Splitting the Ecommerce functionality into various individual microservices so that they can be distributed, scale really well and make use of resources efficiently.
Stars: ✭ 63 (-82.88%)
Mutual labels:  microservices, eureka, spring-boot, spring-cloud, zuul, zipkin
Sample Spring Microservices New
Demo for Spring Boot 2 and Spring Cloud microservices with distributed configuration (Spring Cloud Config), service discovery (Eureka), API gateway (Spring Cloud Gateway, Zuul), Swagger2 API documentation, logs correlation using Spring Cloud Sleuth and many more
Stars: ✭ 559 (+51.9%)
Mutual labels:  microservices, eureka, spring-cloud, ribbon, zuul, spring-cloud-netflix
Spring Cloud Microservices Development
Spring Cloud Microservices Development.《Spring Cloud 微服务架构开发实战》
Stars: ✭ 106 (-71.2%)
Mutual labels:  logstash, spring-boot, spring-cloud, zuul, spring-cloud-netflix, kibana
Spring Boot Cloud
基于 Spring Boot、Spring Cloud、Spring Oauth2 和 Spring Cloud Netflix 等框架构建的微服务项目
Stars: ✭ 2,044 (+455.43%)
Mutual labels:  eureka, spring-cloud, ribbon, zuul, zipkin, hystrix
Spring Cloud
SpringCloud微服务架构,提供快速上手脚手架,快速构建高可用注册中心,高可用配置中心,加入Hystrix断路器,gateway服务官网,权限认证、服务降级、限流,加入应用监控
Stars: ✭ 130 (-64.67%)
Mutual labels:  eureka, spring-boot, spring-cloud, ribbon, zuul, hystrix
Springcloudlearning
《史上最简单的Spring Cloud教程源码》
Stars: ✭ 16,218 (+4307.07%)
Mutual labels:  eureka, spring-boot, spring-cloud, ribbon, zuul, hystrix
Microservices Example
Example of a microservices architecture on the modern stack of Java technologies
Stars: ✭ 66 (-82.07%)
Mutual labels:  microservices, eureka, spring-boot, spring-cloud, spring-cloud-netflix, hystrix
Spring Cloud Examples
Spring Cloud 学习案例,服务发现、服务治理、链路追踪、服务监控等
Stars: ✭ 5,829 (+1483.97%)
Mutual labels:  eureka, spring-boot, spring-cloud, zuul, hystrix
spring-microservices
Example of a microservice architecture using Spring Cloud
Stars: ✭ 76 (-79.35%)
Mutual labels:  spring-cloud, zuul, hystrix, ribbon, eureka
Spring Samples For All
spring、spring-boot、spring-cloud 常用整合用例
Stars: ✭ 401 (+8.97%)
Mutual labels:  eureka, ribbon, zuul, zipkin, hystrix
Java Spring Cloud
Distributed tracing for Spring Boot, Cloud and other Spring projects
Stars: ✭ 326 (-11.41%)
Mutual labels:  microservices, spring-boot, spring-cloud, zuul, hystrix
Microservice Scaffold
基于Spring Cloud(Greenwich.SR2)搭建的微服务脚手架(适用于在线系统),已集成注册中心(Nacos Config)、配置中心(Nacos Discovery)、认证授权(Oauth 2 + JWT)、日志处理(ELK + Kafka)、限流熔断(AliBaba Sentinel)、应用指标监控(Prometheus + Grafana)、调用链监控(Pinpoint)、以及Spring Boot Admin。
Stars: ✭ 211 (-42.66%)
Mutual labels:  logstash, spring-boot, spring-cloud, zuul, kibana
Simplemall
基于SpringCloud的微服务架构实战案例项目,以一个简单的购物流程为示例,融合spring cloud 相关组件,如spring-cloud-netflix、swagger等
Stars: ✭ 687 (+86.68%)
Mutual labels:  eureka, spring-boot, spring-cloud, zuul, hystrix
Spring Cloud Learning
☁️适合刚接触微服务架构的初学者了解和学习微服务,主要集成了注册中心、服务网关、配置中心、熔断机制、应用监控。
Stars: ✭ 37 (-89.95%)
Mutual labels:  eureka, spring-boot, spring-cloud, ribbon, zuul
Spring Boot Microservice Eureka Zuul Docker
Spring-Boot rest microservices using Eureka, Zuul, Docker. Monitoring with logstash, logback, elasticsearch, kibana
Stars: ✭ 45 (-87.77%)
Mutual labels:  eureka, logstash, spring-boot, zuul, kibana
Fxshop
基于SpringBoot+SpringCloud微服务的商城项目(demo版 不可用于生产)
Stars: ✭ 82 (-77.72%)
Mutual labels:  eureka, spring-boot, spring-cloud, ribbon, hystrix

Microservices with Spring Cloud Demo Project Twitter

In this project I'm demonstrating you the most interesting features of Spring Cloud Project for building microservice-based architecture. Most of examples are based on Spring Boot 1.5.

Getting Started

Currently you may find here some examples of microservices implementation using different projects from Spring Cloud. All the examples are divided into the branches and described in a separated articles on my blog. Here's a full list of available examples:

  1. Introduction to Spring Cloud components like discovery with Eureka, load balancing with Ribbon, REST client Feign, API gataway with Zuul. The example is available in the branch master. A detailed description can be found here: Part 1: Creating microservice using Spring Cloud, Eureka and Zuul
  2. Introduction to Spring Cloud components used for microservices monitoring like Spring Cloud Sleuth and Zipkin. Integration with Logstash for sending logs to ELK. The example is available in the branch logstash. A detailed description can be found here: Part 2: Creating microservices – monitoring with Spring Cloud Sleuth, ELK and Zipkin
  3. Introduction to load balancing with Ribbon and Feign declarative HTTP client, circuit braker and fallback with Hystrix. The example is available in the branch hystrix. A detailed description can be found here: Part 3: Creating Microservices: Circuit Breaker, Fallback and Load Balancing with Spring Cloud
  4. Using tool Spring Boot Admin for managing and monitoring microservices-based system. The example is available in the branch admin. A detailed description can be found here: Monitoring Microservices With Spring Boot Admin
  5. Deploying and running Spring Boot microservices on Kubernetes including inter-service communication using Feign client and integration with database Mongo. The example is available in the branch kubernetes. A detailed description can be found here: Microservices with Kubernetes and Docker

Usage

In the most cases you need to have Maven, JDK8+ and Docker for running third-party software like Zipkin or Logstash. In the fifth example with Kubernetes you will have to run Minikube on your local machine. The best way to run the sample applications is with IDEs like IntelliJ IDEA or Eclipse.

How to Run

docker-compose up

If you want to change anything on any service(s), you need to build the service(s) you changed and then :

docker-compose build docker-compose up

How to Run

docker-compose down

Architecture

Our sample microservices-based system consists of the following modules:

  • gateway-service - a module that Spring Cloud Netflix Zuul for running Spring Boot application that acts as a proxy/gateway in our architecture.
  • config-service - a module that uses Spring Cloud Config Server for running configuration server in the native mode. The configuration files are placed on the classpath.
  • discovery-service - a module that depending on the example it uses Spring Cloud Netflix Eureka as an embedded discovery server.
  • account-service - a module containing the first of our sample microservices that allows to perform CRUD operation on in-memory repository of accounts
  • customer-service - a module containing the second of our sample microservices that allows to perform CRUD operation on in-memory repository of customers. It communicates with account-service.
  • zipkin-service - a module that runs embedded Zipkin instance.

The following picture illustrates the architecture described above.


In case of Kubernetes deployment we use only some of Spring Cloud components like Spring Cloud Feign or Sleuth without discovery or config server.

For similar examples of microservice applications with Spring Boot 2 you may refer to the repository https://github.com/piomin/sample-spring-microservices-new

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].