All Projects → UbaidurRehman1 → Cloud-Native-App-Spring-Boot

UbaidurRehman1 / Cloud-Native-App-Spring-Boot

Licence: MIT license
A Cloud Native App with Spring Coud Security with KeyCloak Auth Server, API Gateway Server, Naming Server, Config Server and Distributed Tracing and ELK Stack hosted in K8s

Programming Languages

java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Cloud-Native-App-Spring-Boot

course-spring-microservices
Code examples built for the purpose of video course: Microservices With Spring Boot And Spring Cloud
Stars: ✭ 74 (+289.47%)
Mutual labels:  spring-cloud, spring-cloud-config, spring-cloud-gateway, openfeign
Springcloud
基于SpringCloud2.1的微服务开发脚手架,整合了spring-security-oauth2、nacos、feign、sentinel、springcloud-gateway等。服务治理方面引入elasticsearch、skywalking、springboot-admin、zipkin等,让项目开发快速进入业务开发,而不需过多时间花费在架构搭建上。持续更新中
Stars: ✭ 6,997 (+36726.32%)
Mutual labels:  spring-security, zipkin-sleuth, spring-cloud-gateway, feign-client
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+288305.26%)
Mutual labels:  rabbitmq, spring-cloud, spring-security
robert
基于SpringCloud的企业级微服务多租户系统、多语言的脚手架, 代码组件化、高内聚低耦合,代码简介,注释丰富容易上手,该项目包括用于开发分布式应用程序服务的必要组件,支持多应用程序访问,并使开发人员可以轻松地使用Spring Cloud编程模型来开发分布式应用程序服务。
Stars: ✭ 45 (+136.84%)
Mutual labels:  rabbitmq, spring-cloud, spring-security-oauth2
sample-spring-cloud-gateway
sample spring cloud application with embedded api gateway on spring cloud gateway with or without service discovery with eureka
Stars: ✭ 25 (+31.58%)
Mutual labels:  spring-cloud, eureka-client, spring-cloud-gateway
sample-axon-kafka
Sample CQRS and event sourced application developed on top of axon framework.(Kafka is used for distributing the events)
Stars: ✭ 31 (+63.16%)
Mutual labels:  spring-cloud, eureka-server, eureka-client
His
HIS英文全称 hospital information system(医院信息系统http://59.110.234.89:9999/swagger-ui.html ),医疗信息就诊系统,系统主要功能按照数据流量、流向及处理过程分为临床诊疗、药品管理、财务管理、患者管理。诊疗活动由各工作站配合完成,并将临床信息进行整理、处理、汇总、统计、分析等。本系统包括以下工作站:门诊医生工作站、药房医生工作站、医技医生工作站、收费员工作站、对帐员工作站、管理员工作站。需求为东软提供的云医院。
Stars: ✭ 359 (+1789.47%)
Mutual labels:  rabbitmq, spring-cloud, spring-security
Simplemall
基于SpringCloud的微服务架构实战案例项目,以一个简单的购物流程为示例,融合spring cloud 相关组件,如spring-cloud-netflix、swagger等
Stars: ✭ 687 (+3515.79%)
Mutual labels:  rabbitmq, spring-cloud, spring-security
CoSky
High-performance, low-cost microservice governance platform. Service Discovery and Configuration Service | 高性能、低成本微服务治理平台
Stars: ✭ 57 (+200%)
Mutual labels:  spring-cloud, cloud-native, spring-cloud-config
MeetU
Application that build on Elasticsearch and Spring Boot Microservices (Synchronous Service)
Stars: ✭ 22 (+15.79%)
Mutual labels:  spring-cloud, elk-stack
sample-spring-cloud-stream
sample microservices communicating asynchronously using spring cloud stream, rabbitmq
Stars: ✭ 22 (+15.79%)
Mutual labels:  rabbitmq, spring-cloud
sample-message-driven-microservices
sample spring cloud application that integrates with rabbitmq through spring cloud stream framework as shows how to setup message-driven microservices basing on publish-subscribe model, consumer groups
Stars: ✭ 28 (+47.37%)
Mutual labels:  rabbitmq, spring-cloud
SpringBoot-Examples
Spring boot 2.X version tutorial,Integrate various middleware to facilitate quick reference and use
Stars: ✭ 23 (+21.05%)
Mutual labels:  spring-security, openfeign
spring-cloud-boilerplate
The discovery & gateway boilerplate based on spring-cloud with spring security.
Stars: ✭ 12 (-36.84%)
Mutual labels:  spring-cloud, spring-security
okta-spring-boot-authz-server-example
Spring Security OAuth 2.0 Guide
Stars: ✭ 60 (+215.79%)
Mutual labels:  spring-security, spring-security-oauth2
Spring
Personal notes of preparation to Spring 5 Professional Certification
Stars: ✭ 35 (+84.21%)
Mutual labels:  spring-cloud, spring-security
springboot-vue.js-bbs
Spring Boot, Vue.js
Stars: ✭ 43 (+126.32%)
Mutual labels:  spring-security, spring-security-oauth2
Spring-Boot-2
Spring Boot 2.x examples
Stars: ✭ 33 (+73.68%)
Mutual labels:  rabbitmq, spring-security
spring-interview-questions
500+ Spring-Boot Interview Questions
Stars: ✭ 269 (+1315.79%)
Mutual labels:  spring-cloud, spring-security
oauth-boot
spring-boot and spring oauth2
Stars: ✭ 111 (+484.21%)
Mutual labels:  spring-security, spring-security-oauth2

Abstract

  • This repo represents a basic currency conversion cloud native-app which convert currency from given country code to targeted country code.
  • I am using the following stack for this cloud native app.
    • Microservice Architecture with API-GATEWAY along with Discovery Server
    • Spring Security with OAuth2 and KeyCloak Server
    • ELK Stack
    • Distributed Tracing
  • Following are the Tools and technologies which I am using:
    • Java 17
    • Spring Boot 2.6.4
    • Spring Cloud 2021.0.1 (Security, Config Server, Service Discovery and Distributed Tracing)
    • KeyCloak Server (Authorization Server) 16.1.1
    • Zipkin Version 2.23.16 (Distribute Tracing)
    • Rabbit MQ Version 3.9.13-management(Message Broker)
    • ELK Stack Version 7.17.1

Requirements

  • Add the line 127.0.0.1 auth-server in the last of your hosts file.
    • For Linux/Unix based system, its location is at: /etc/hosts
    • For Windows, its location is at: c:\Windows\System32\Drivers\etc\hosts
  • Docker 20.xx.x or later

How to Run: Watch Video

  • git clone https://github.com/UbaidurRehman1/Cloud-Native-App-Spring-Boot
  • cd Cloud-Native-App-Spring-Boot/envcn
  • ./run-multi-stage.sh (it will run all tools which our services needs such as keycloak server, discovery server, databases, zipkin, rabbitmq and elk-stack)
  • cd ..
  • ./run-multi-stage.sh (it will up the microservices)
  • Access Web Client UI
  • Access Swagger Client UI

Run in Kubernetes

About

  • This App basically converts a currency from given country code to targeted country code by following the cloud native approach.
  • api-gateway provides a gateway for end clients (web browsers, mobiles) to interact the resource servers (micro-services)
  • An Actor (React Client, React Native Client) can interact with the micro-services through the api-gateway
  • Micro Service Architecture
  • In above diagram, We can see:
    • An End Client can access the resource servers through the api-gatewy
    • There are five resource servers:
      1. currency-conversion service abstract the functions of getting exchange rate from currency-exchange service and converting this exchange rate by the help of math service.
      2. currency-exchange service return the exchange rate between two currencies.
      3. math service convert the currency to another currency using the exchange rate.
      4. country service return all countries
      5. user service is related about user information
    • An api-gateway exposes its URLs to Clients
    • Keycloak Server (For OAuth2 Authentication and Authorization)
    • Discovery Server (For services discovery)
    • Distributed Tracing Stack, for request tracing in micro-service architecture
    • ELK Stack, for Centralized Logging
    • Config Server to get distributed app configurations (hosted in github/public-repo) for each micro-service

Swagger UI

Auth Flow

Distributed Tracing

Kibana Dashboard (For Centralized Logging)

Micro-Services

Servers

Config Repo

Note

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