I'm writing this API which is a backend for slack bot application which will be used by many users. In one of the API endpoints in my api I'm calling an external API to get some data so I can massage it in my API to send it to the BOT/User. But that external API call I'm making is very expensive (~5 / ~10 secs). I've noticed that when I hit my API endpoint two or more times at the same time sometimes I don't get any data. Only one of the calls becomes successful. Is there any way that I can fix this? I've been looking into worker queue but not sure if its overkill for this.
I'm using mux to do my routing.