So today, well this morning at 3:32AM, we moved the main server proxy system from Apache to NGINX, with Apache back end for image serving and sub server work. This allows our main proxy to not be a problem as we grow and to take advantage of NGINX SSL cache tools. This should improve the speed, and lower errors, but because of this a large amount of the Twii base URL system and API had to be rebuilt to make it work. This will no doubt bring errors that have not been seen yet, but should overall be better for Twii and the speed of the site and app. If you have any problems just click the contact link in the left menu.
What does this do?
- We went from the system assigning each user to a server, to FULL round robin, so if a sever goes down that user is just sent to one of the other servers on the next request.
- Backend Apache for image generation and sending to proxy from the local main server now does not use SSL as it's a virtual Apache in the same server, speeding up image access requests.
- Redirect from HTTP to HTTPS in the past would result in a full page getting generated before redirecting the user to HTTPS. Now it is done via a 2nd NGINX server that on any request sends a direct blank result telling the browser to go to the HTTPS version, improving speed and lowering resource usage on proxy.