#Any idea for multi api request call

3 messages · Page 1 of 1 (latest)

gilded lodge
#

hey guys I want to get some idea or suggestion for a solution, currently I am working on a api request

basically I am doing is that

i have two end points

first end point is to go to the Digital Ocean Server

from that another end point will be called to another third party server
I need to save that response in my Digital Ocean Server.

problem is that it takes too long and It usually return 504 gateway timeout

you may ask why don't you directly call that third party api???

the problem is that third party api won't allowed any call from frontend and it raise CORS error

but I can do it from the Digital Ocean Endpoint

but it takes too long

so I am seeking for any advice or idea for that!

I hope we can get interesting discussion for the problem

remote storm
#

Have you considered implementing a API Gateway?

#

In this case you'll require to have a dedicated backend to aggregate requests from both the digital ocean server and third party api