Git Product home page Git Product logo

daffodil's Introduction

High-level Overview

Microservices

  • Customer: The goal of this microservice is to handle all Customer registration requests.
  • Fraud: The goal of this microservice is to handle and perform all fraud checks i.e. if a customer is fraudulent or not.
  • Notification: The goal of this microservice is to send an async notification to user's smartphone or any other device when the user has registered successfully via third-party providers like Firebase or Twilio.

API Gateway

api-gateway microservice uses spring-cloud-starter-gateway dependency to mark this service as API Gateway microservice. APIGatewayApplication class is annotated with @EnableDiscoveryClient to tell Spring that it will use Eureka Service Discovery to get complete URIs of running instances. The application.yml file contains Routes of other microservices.

Service Discovery

eureka-server uses spring-cloud-starter-netflix-eureka-server to register instance as server while other microservices customer, fraud uses spring-cloud-starter-netflix-eureka-client to register themselves as clients.

Load Balancing

The customer microservice uses round-robin DNS load balancing algorithm to perform routing to x instance of fraud microservice. CustomerConfig class contains restTemplate() method which is annotated with @LoadBalanced to perform load balancing.

Eureka Server connection pool

Distributed Tracing

Zipkin & Sleuth

drawing

ย 

drawing

Uses spring-cloud-starter-sleuth and spring-cloud-sleuth-zipkin across all microservices. Zipkin server runs via a Java jar on same machine. Zipkin can also be configured inside docker-compose.yml to run in Docker container. The default port of Zipkin server is 9411.

daffodil's People

Contributors

dependabot[bot] avatar sshehrozali avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

afnanamin

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.