Giter Site home page Giter Site logo

hystrixdemo-1's Introduction

Hystrix Samples

Start the applications in the following order:

  • Run Eureka - not technically required, but avoids other applications from throwing errors on the console on not finding Eureka, the endpoint is at http://localhost:8761

    cd sample-eureka
    mvn spring-boot:run
  • Start Hystrix Dashboard Application. This will be used for displaying the Hystrix command metrics, the endpoint is available at http://localhost:8080

    cd sample-hystrix-dashboard
    mvn spring-boot:run
  • Start sample service, the endpoints is available at http://localhost:8889

    cd service1
    ./gradlew runApp
  • Start client application, the endpoint is available at http://localhost:8888

    cd aggregate
    ./gradlew runApp

Endpoints

The following endpoints should be available demonstrating different Hystrix features, look at the Hystrix Dashboard at http://localhost:8080/hystrix.dashboard and use the Hystrix stream available at http://localhost:8888/hystrix.stream

  1. http://localhost:8888/hello?greeting=World - Simple Hello World Hystrix Command

  2. http://localhost:8888/helloObservable?greeting=World - Hello World Command using HystrixObservableCommand.

  3. http://localhost:8888/fallback - Sample Fallback Example

  4. http://localhost:8888/message?message=Hello&delay_by=0&throw_exception=false - Endpoint which makes a remote request behind a Hystrix command, play around with delay_by and throw_exception parameters.

  5. http://localhost:8888/messageSemaphore?message=Hello&delay_by=0&throw_exception=false - Endpoint which makes a remote request behind a Hystrix command but using Semaphore based isolation strategy, play around with delay_by and throw_exception parameters.

  6. http://localhost:8888/messageCached?message=Hello&delay_by=500&throw_exception=false - Hystrix Command with Caching

  7. http://localhost:8888/sampleCollapser?id=1 - Hystrix Request Collapsing

hystrixdemo-1's People

Contributors

bijukunjummen avatar

Watchers

 avatar

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.