The Backend Engineering Show with Hussein Nasser cover image

why it is very hard to cancel an HTTP request

The Backend Engineering Show with Hussein Nasser

00:00

Can I Close a TCP Connection?

To close a TCP connection between the client and whatever the front end, the edge that is that that you sent that a quest to doesn't mean anything. If you have a backend like let your random API gateway back in that doesn't have the concept of cancellation, you just can't do it. But if you uniquely identify each request and then you issue a request to cancel an existing running request, given the request ID, that will be treated as just another request. And then you have the same logic that we talked about in the beginning, where you have a cancellation event.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app