Fire and forget endpoint

I am hitting an endpiont in my API ~ 1000 Times I like a second. In localhost I am getting an ECONNRESET error after like 150 request then after a while again 150 request pass. I am using axios to make theses calls. So on localhost I could imagine that a nextjs server can’t handle that many request. Production is using serviertes function so there shouldn’t be any issues there. I am worried for the invoking part. Is there any solution where I can just invoke a post request to an endpoint without creating a promise ( I guess that the axios client is trying to hold onto these even though I am not awaiting it) I tried to abort the request right after calling it. But then it throws and since I don’t await it an unhandled Exeption Appreciate some input 😄
0 Replies
No replies yetBe the first to reply to this messageJoin