spring-cloud-microservice-example

An example project that demonstrates an end-to-end cloud native application using Spring Cloud for building a practical microservices architecture.

  • 所有者: kbastani/spring-cloud-microservice-example
  • 平台:
  • 許可證: GNU General Public License v3.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Spring Cloud Example Project

An example project that demonstrates an end-to-end cloud-native platform using Spring Cloud for building a practical microservices architecture.

Tutorial available here: Building Microservices with Spring Cloud and Docker

Demonstrated concepts:

  • Integration testing using Docker
  • Polyglot persistence
  • Microservice architecture
  • Service discovery
  • API gateway

Docker

Each service is built and deployed using Docker. End-to-end integration testing can be done on a developer's machine using Docker compose.

Polyglot Persistence

One of the core concepts of this example project is how polyglot persistence can be approached in practice. Microservices in the project use their own database, while integrating with the data from other services through REST or a message bus.

  • Neo4j (graph)
  • MongoDB (document)
  • MySQL (relational)

Movie Recommendations

This example project focuses on movies and recommendations.

Data Services

http://i.imgur.com/NXLHvjR.png

Domain Data

http://i.imgur.com/VlwSw2q.png

Microservice architecture

This example project demonstrates how to build a new application using microservices, as opposed to a monolith-first strategy. Since each microservice in the project is a module of a single parent project, developers have the advantage of being able to run and develop with each microservice running on their local machine. Adding a new microservice is easy, as the discovery microservice will automatically discover new services running on the cluster.

Service discovery

This project contains two discovery services, one on Netflix Eureka, and the other uses Consul from Hashicorp. Having multiple discovery services provides the opportunity to use one (Consul) as a DNS provider for the cluster, and the other (Eureka) as a proxy-based API gateway.

API gateway

Each microservice will coordinate with Eureka to retrieve API routes for the entire cluster. Using this strategy each microservice in a cluster can be load balanced and exposed through one API gateway. Each service will automatically discover and route API requests to the service that owns the route. This proxying technique is equally helpful when developing user interfaces, as the full API of the platform is available through its own host as a proxy.

License

This project is an open source product licensed under GPLv3.

主要指標

概覽
名稱與所有者kbastani/spring-cloud-microservice-example
主編程語言Java
編程語言Java (語言數: 2)
平台
許可證GNU General Public License v3.0
所有者活动
創建於2015-05-20 02:00:45
推送於2020-07-09 17:08:51
最后一次提交2019-03-07 17:02:53
發布數0
用户参与
星數192
關注者數9
派生數143
提交數31
已啟用問題?
問題數55
打開的問題數22
拉請求數7
打開的拉請求數5
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?