When using koa or express for an API server that a client side browser app will make calls to, what are the benefits of putting koa/express behind nginx?Let's assume there's just one koa/express server (so load balancing between multiple of them isn't necessary).I would be serving all static files either from a CDN or from nginx, so koa/express wouldn't be serving anything static, it would just be serving the dynamic JSON responses to API calls.If I want to serve the API over HTTP2, does koa/express need to support HTTP2, or is it fine that just nginx supports it (similar to how nginx does SSL termination so your koa/express server doesn't need to handle SSL at all)?Are there even any benefits to serving the API over HTTP2, or does HTTP2 have extra benefits only when serving static files?
Submitted March 07, 2018 at 10:38AM by nowboarding
No comments:
Post a Comment