Examine the booking scenario to understand different exception-handling approaches.
In the service sequence diagram below, there are three lines marked with a cross mark. These are potential areas where exceptions could occur.
There is a synchronous communication between Booking and Fare. What if the fare service is not available? If the Fare service is not available, throwing an error back to the user may cause revenue loss. An alternate thought is to trust the fare which is coming as part of the incoming request. When we serve search, the search results will have the fare as well. When the user selects a flight and submits, ...