Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
Hi Team,Like the way we are storing reservation first in booking table and then ...

Pramod Kumar

Oct 6, 2021

Hi Team, Like the way we are storing reservation first in booking table and then in the ActiveReservationService memory, Why cant we do the same for WaitingUsersService i.e have a new table for waiting service and then maintain the same in WaitingUserService memory. That way even if waiting user service crashes we can rebuild from table.

0

0

Comments
Comments
Design Gurus
Design Gurus4 years ago

Yes, this can be done. This will enable the system to recover in case of failure, as you have referred.

One disadvantage would be higher latency, as we have to add/update/delete data from the database too.

Another relevant discussion here can be around spiky traffic. ...