I have a POST API in Nodejs(Express), The API takes a lot of time to send back response(Heavy data processing).
When I cancel the request midway through Postman or close the page. (The API keeps processing the data in the node server, even though the response will not be collected by client.) How do I stop the internal API processing as well when the request is closed ?(Client stops the API)