0

I have a webserver www.example.com that takes user input and calculates results on a remote server <form action="www2.example.com/action.cgi">

Now the user is on the second server. How do I keep the user on the main server (or make www2 invisible to the user)?

One possibility is to do an Ajax query in the background, but that would mean results are transferred from www2 to www and then to the user, which adds delay and bandwidth costs.

What are some possibilities to accomplish this?

Also, if, in future, we have multiple remote servers www2, www3, etc. what would be the best way to accomplish this?

Thanks so much!

  • 1
    In general what you seem to want to avoid is exactly what people usually do; have a web site front-end contact one or more back-end servers to do processing and then return the results. Bandwidth is between front and backend is usually not charged and added latency negligible for typical web purposes – Bob Dec 08 '20 at 22:37
  • Every web site above a certain level of traffic already does this. – Michael Hampton Dec 08 '20 at 22:38
  • Google is, of course, different, and we can probably not implement what they do, but when I search on Google, they do whatever magic on the backend and return the results on google.com – user4444173 Dec 08 '20 at 22:58

0 Answers0