Coder Social home page Coder Social logo

jesperancinha / from-paris-to-berlin-circuit-breaker Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 5.37 MB

This project is an investigation of Hystrix in the Kotlin language

License: Apache License 2.0

Kotlin 45.18% Makefile 11.15% Shell 9.97% JavaScript 1.56% TypeScript 25.82% HTML 4.87% Less 0.49% Dockerfile 0.94%

from-paris-to-berlin-circuit-breaker's Introduction

from-paris-to-berlin-circuit-breaker


Twitter URL Generic badge

CircleCI from-paris-to-berlin-circuit-breaker e2e-from-paris-to-berlin-circuit-breaker

Codacy Badge codebeat badge Known Vulnerabilities

Codacy Badge codecov Coverage Status

GitHub language count GitHub top language GitHub top language


Technologies used

Please check the TechStack.md file for details.

Introduction

The idea of this project is to take passengers from Paris to Berlin. However, in our simulation, the weather is bad and so the lines will be failing. The role of kystrix here is to avoid a massive traffic flow to blocked roads and instead to get the cars somewhere else.

The idea of Kystrix is the same as Hystrix. These are circuit-breakers responsible to stop the flow of requests to certain endpoints and make them fail or redirect to somewhere else.

Hystrix is, however, no longer in development, and instead we have Resilience4J.

This means that although we can hope that Kystrix gets more standardized, it appears to be that Resilience4J is the way to go at this time.

Stable releases

Project Layout

  1. From Paris to Berlin Data - Common Data Library used in all executable projects
  2. From Paris to Brlin City Generator - Generates a City JSON which can be fed to the main application
  3. From Paris to Berlin Kystrix Demo - A simplified Kystrix demo independently of Spring
  4. From Paris to Berlin Resilience4J Runnable Demo - Creating Circuit Breakers using programmatic Resilience4J independently of Spring
  5. From Paris to Berlin Resilience4J Spring Demo - Creating Circuit Breakers using programmatic Resilience4J using Spring
  6. From Paris to Berlin Resilience4J AOP Spring Demo - Creating Circuit Breakers using AOP(Aspect Oriented Programming) and declarative Resilience4J
  7. From Paris to Berlin Web - Front end application to support the Paris to Berlin Game

Java Setup

sdk install java 17-open
sdk use java 17-open

How to run locally

Docker-Compose
  1. Start Image
make dcup-full-action
  1. Start Demo
make demo-docker
  1. Go to localhost:9000

Swagger UI

Local
  1. from-paris-to-berlin-resilience4j-aop-spring-app
  2. from-paris-to-berlin-ws-service
Via Docker
  1. from-paris-to-berlin-resilience4j-aop-spring-app
  2. from-paris-to-berlin-ws-service

Coverage report Graphs

References

About me

GitHub followers

from-paris-to-berlin-circuit-breaker's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar jesperancinha avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

prasobhpk

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.