[Vuejs]-Should i use a proxy middleware on production?

0👍

Yes, but only if you’re handling the scaling case.

Keep in mind that JavaScript is single-threaded. While NodeJS is quite efficient, at some point it is likely that user’s requests will begin to timeout since the single thread isn’t able to service all the requests. When that happens, you may end up needing to re-design your application.

Take a look at pm2 as well as cluster mode if you haven’t already. As long as your proxy middleware is configured to work in tandem with this, you should be fine.

Leave a comment