Giter Club home page Giter Club logo

springboot-microservices-online-shopping's Introduction

Springboot-microservices-online-shopping

Springboot microservices online shopping

To setup Zipkin

https://zipkin.io/pages/quickstart

  • C:\Users\rajesh> docker run -d -p 9411:9411 openzipkin/zipkin --> To download and run zipkin

  • C:\Users\rajesh> docker run -d --name zipkin -p 9411:9411 openzipkin/zipkin --> To give name to container

  • C:\Users\rajesh> docker ps --> To see running containers CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 55793af3637f openzipkin/zipkin "start-zipkin" 10 seconds ago Up 9 seconds (healthy) 9410/tcp, 0.0.0.0:9411->9411/tcp zipkin

  • C:\Users\rajesh> docker kill 55793af3637f --> To kill container using containerId

To open zipkin UI in browser:

http://localhost:9411/zipkin/

To run the docker-compose file

  • C:\Users\rajesh> docker-compose up -d -->To start docker-compose file
  • C:\Users\rajesh> docker-compose down -->To stop docker-compose file

Resilience4j configuration

  • resilience4j.circuitbreaker.instances.stock.registerHealthIndicator=true :- Registers a health indicator for the circuit breaker instance named "stock".
  • resilience4j.circuitbreaker.instances.stock.event-consumer-buffer-size=10 :- Sets the maximum number of events that the circuit breaker instance named "stock" can hold in its event buffer.
  • resilience4j.circuitbreaker.instances.stock.slidingWindowType=COUNT_BASED :- Sets the sliding window type of the circuit breaker instance named "stock" to count-based.
  • resilience4j.circuitbreaker.instances.stock.slidingWindowSize=5 :- Sets the sliding window size of the circuit breaker instance named "stock" to 5.
  • resilience4j.circuitbreaker.instances.stock.failureRateThreshold=50 :- Sets the failure rate threshold of the circuit breaker instance named "stock" to 50%.
  • resilience4j.circuitbreaker.instances.stock.waitDurationInOpenState=5s :- Sets the wait duration in the open state of the circuit breaker instance named "stock" to 5 seconds.
  • resilience4j.circuitbreaker.instances.stock.permittedNumberOfCallsInHalfOpenState=3 :- Sets the permitted number of calls in the half-open state of the circuit breaker instance named "stock" to 3.
  • resilience4j.circuitbreaker.instances.stock.automaticTransitionFromOpenToHalfOpenEnabled=true :- Enables automatic transition from open to half-open state for the circuit breaker instance named "stock".
  • resilience4j.timelimiter.instances.stock.timeout-duration=3s :- Sets the timeout duration for the time limiter instance named "stock" to 3 seconds.
  • resilience4j.retry.instances.stock.max-attempts=3 :- Sets the maximum number of retry attempts for the retry instance named "stock" to 3.
  • resilience4j.retry.instances.stock.wait-duration=5s :- Sets the wait duration between retry attempts for the retry instance named "stock" to 5 seconds.

springboot-microservices-online-shopping's People

Contributors

rajeshkawali avatar

Stargazers

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