Re:XML Is the Future
by charcircuit on Monday June 26, 2023 @12:21AM
(#36475703)
>nextjs server side data fetching is an amazing feature that deserves it's place in future of web development
It was a thing in the past too. It's how almost all a CGI and PHP sites worked.
And jsp and asp and literally everything before ajax
Re:XML Is the Future
by senttoschool on Monday June 26, 2023 @12:33AM
(#36475750)
1. If you have a server, it’s trivial to setup a connection pool. For example, most Postres clients like Knex or Prisma sets a connection pool for you on your server. There’s no need to setup an external connection pool. It’s good that Supabase does it for you but most managed Postres databases don’t.
2. That has nothing to do with serverless or servers.
(1) pooling becomes the solution very early. You get massive speed benefits by keeping a connection open. Hitting connection limits is too easy without it. I feel like a push towards pooling is fine because it has great benefits for scale, speed and reliability. Services like Supabase have connection pooled postgres by default even in their free tier.
(2) nextjs server side data fetching is an amazing feature that deserves it's place in future of web development (the react team agrees since they've added server components). Grabbing data before reaching the client is amazing. If you have a centralized db all the more reason to grab as much as you can in one trip.
Other than that I can agree. I think the advice should generally be to not ever recommend a framework too early or without including its use case.
Current recommendations for the different tiers:
Static: GitHub/cloudflare pages
Server: render.com
Scaled: vercel