educative.io

If a service doesn't respond, nothing is blocked in reactive programming. How does that work?

Let’s say reactive system gets a request to process and event loop picked up the request to process and at some point of time a database call is made. At this time the request event was suspended and let’s say the database didn’t respond or the call failed, so what happens to the original request? My understanding is that the request was suspended, so to me it looks like the event is in oblivion state now. In classical system, the call could have timed out and we would have responded with some error or exception or such. However, in this reactive scenario, I am lost. Please educate me :slight_smile: thanks

@Keerti_Sekhar_Sahoo Hi, so we don’t have a single server at the backend. We have multiple replica databases. So if one database failed to respond, the request will be responded to by the other one.