Loading...
Estimate the scale of the system you are going to design...
Host url - www.booking.com
API design -
{
hotelId:""
roomNo:""
roomType:""
NumberofDays:""
}
3. POST /api/payment/initiate -> Creates a payemnt
{
bookingId:""
paymentAmount:""
}
Try to discuss as many failure scenarios/bottlenecks as possible.
What are some future improvements you would make? How would you mitigate the failure scenario(s) you described above?