Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

[ABANDONED] Demo combining phystrix with asynchronous programming for fault tolerant software.

Notifications You must be signed in to change notification settings

qandidate-labs/phystrix-async-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phystrix-async-demo

Combining phystrix with asynchronous programming for fault tolerant software.

About

This repository shows the proof of concept related to the following blog posts:

Proof of concept

In this proof of concept there are three "services":

  • Catalogue service, which holds information about the products.
  • Inventory service, which holds information about how many items of a products are available.
  • Public shop api service, which queries the two other services and combines their responses.

The public api service queries the two other services asynchronously. If the inventory service takes to long to respond the public api service will fall back to telling the frontend that there are -1 items.

Running the demo

Install the dependencies with composer:

$ composer install

Start the services:

$ bin/run_all.sh

In a new terminal, start querying the main service:

$ bin/get_catalogue_inventory_status.sh

Finally, edit inventory-status/index.php and enable the sleep(1); statement to introduce latency in the service to see phystrix taking over, and to fix the latency in the service to see phystrix recovering.

About

[ABANDONED] Demo combining phystrix with asynchronous programming for fault tolerant software.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published