I want to use nginx as a reverse proxy for Google App Engine application to support naked domain as described here. If I use this scheme, will all the traffic go through the server that hosts nginx or client will connect to App Engine directly? Can it be a bottleneck for performance and availability?


Using that method, all your traffic would run through the NGINX server so that would be a bottleneck, and you'd have to make sure it had enough capacity to work well. It would also cause some latency (Approximately 2x latency on every request, because your client would have the latency connecting to NGINX then NGINX would have the latency of connecting to AppEngine)

| improve this answer | |
  • What about using the reverse proxy along with varnish + memcache as an inline cache? You'd probably save some money on GAE CPU time. ::raises eyebrows:: – Evan Plaice Jan 3 '13 at 21:26

There is no need for setting up reverse-proxy for both Flexible and As well as Standard Environment.

  • App Engine instances in the Standard environment 1 do not have public static IP addresses, and are completely protected by the main Google Front-end server. Requests to your application first hit the Google Front-end, then the front-end performs the SSL security checks according to your uploaded certificate [2], and then forwards the request to your App Engine instances using their internal IPs. Therefore no reverse-proxy is required.

  • If you are using the App Engine Flexible environment [3], you are able to have static IPs for your instances as they use Compute Engine VMs [4]. But, App Engine automatically loads Nginx proxy in front of every App Engine Flexible instance pre-configured, so you do not have to set this up at all. All you have to do is follow the guide to uploading your SSL cert [5], and requests will be vetted by the Google Front-end just like the Standard environment above. Therefore no added reverse-proxy is required.

Full answer can be found here issue

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.