Skip to content

Conversation

jarpit96
Copy link
Contributor

@jarpit96 jarpit96 commented Oct 7, 2019

Changes:
Add fall backs in Aggregator Service when other microservices fail. Default error messages (Product Title and Inventory) are returned to the user.

Catch ClientProtocolException and Update Error Logs
Add fallbacks in Aggregator service when other microservices fail
Pull master from Source Repo
product.setTitle("Error: Fetching Product Title Failed"); //Fallback to error message
}

if (productInventory != null) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ProductInventoryClientImpl does not return null but 0 when exception occurs. Perhaps returning null would be the correct way, so the change should be implemented in the client..

@iluwatar
Copy link
Owner

Ping @jarpit96, some changes have been requested. Also the branch is conflicting now.

@jarpit96
Copy link
Contributor Author

Completely missed the comments, I will get on it soon. Will look at the conflicts too.

jarpit96 and others added 3 commits November 1, 2019 20:32
Sync with original repo
…erns into fix/issue549

# Conflicts:
#	aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/Aggregator.java
@iluwatar iluwatar merged commit 1d4a768 into iluwatar:master Nov 1, 2019
@iluwatar iluwatar added this to the 1.22.0 milestone Nov 1, 2019
@iluwatar
Copy link
Owner

iluwatar commented Nov 1, 2019

Thanks @jarpit96, this looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants