0

I have a server that accesses an external API not from our company via HTTP GET. It can only be accessed from the IP address of the registered server A.

I now need some of the information from that API on a second server B. However, using PHP+Curl it does take quite long to send a request from server A to server B that then forwards it to the API and all the way back.

How can I speed things up?

System: Ubuntu 10.10 / server A and B are with the same hosting company / PHP is used with MySQL / programming something in C would be an option

1 Answer 1

1

You should use a web server on Server A to act as a reverse proxy for the external API (With access only from Server B) and they access the API as if it was accessible on Server A.

There is a tutorial on how to configure reverse proxies in apache on Apache Tutor.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.