What Theo Won't Tell You About Next.js
Video Statistics and Information
Channel: Dev Agrawal
Views: 43,578
Rating: undefined out of 5
Keywords:
Id: Rrz2q5uCHdE
Channel Id: undefined
Length: 8min 36sec (516 seconds)
Published: Sun Oct 16 2022
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
You can use Next JS to develop the front-end but also the back-end of an application.
Many people recommend decoupling the front-end and back-end. Although this is a good practice in large companies. It is not worth it in small and medium projects where you have less human resources.
I prefer to build the MVP using next js as a full stack framework. Then refactor everything if necessary later if the application is hugely successful since manpower (money) will not be an issue.
Early optimization is a bad thing.
In almost all web application projects, the main problem to scale is the database, not the web servers. So you can run as many web servers as you want, but you can't do that for your database because it requires a single master for writing.
Thus next js or express or whatever is not the real problem. Your focus should be on optimizing the database queries and optimizing the database modelling.
Get rid of that god awful music in your videos. It's super distracting.
I'd recommend client/server relationship but NextJs has a few examples on their site of client/server combined into one package.
For production applications this would be a hard no but if your just developing hobby projects or demos it's fine.