Do I really need two servers for my web app?

0
11
Asked By CuriousCoder92 On

I'm working on a web app that has its frontend and backend developed separately. The frontend is using Next.js, while the backend is built with Node.js and Express, and we're utilizing Firebase for the database. The app is designed as a global marketplace and we're planning a mobile version in the future. Given this setup, do you think it's necessary to use separate servers to handle a bandwidth of 50,000 monthly active users?

5 Answers

Answered By ScalabilityGuru72 On

Once your app requires scalability, generally you might end up needing separate servers. But if you want to start gradually, consider running everything on a single machine with a good plan for when to scale. Just keep an eye on performance and adapt as your user base grows. You can break things apart later if the need arises!

Answered By WebWizard95 On

To clarify, if your frontend is mainly handling static content, you might not really need a separate server just for that. You could serve static files alongside your backend and just focus on making those connections work well. It also helps when building your mobile app later on since it can easily interface with the existing backend.

Answered By TechieTom123 On

You don't necessarily need two separate servers. Whether you can run both the frontend and backend on the same server depends on how your app is structured. Some approaches like using server-side rendering can minimize the need for multiple servers. Plus, with Firebase, you typically shouldn’t run into bandwidth problems unless you're really pushing limits. Think about using Docker for a more flexible setup if you want to keep things separate without the hardware investment.

FutureDev23 -

Got it! We're worried about future capacity but looking at your point, I see how that might work.

Answered By CodingQueen88 On

You can actually run both the frontend and backend on the same server if resource availability is good. The idea of separating them usually helps with development and management rather than scaling. Still, if bandwidth is a concern, you might eventually hit some limits regardless of how you set this up. Just keep monitoring your I/O performance to see what works best for you.

Answered By DevDude456 On

Honestly, I think separating servers isn't necessary, especially with your current user base. For a basic site, you could probably manage with just one server without much trouble. It's better to wait before making any drastic changes until you really see a reason.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.