Evaluating Next.js for CRUD-based Management Systems
Unanswered
Egyptian Mau posted this in #help-forum
Egyptian MauOP
Hello, Next.js community,
I am currently evaluating the use of Next.js for a management system project with a typical CRUD scenario. Having studied Next.js, I've found it is often recommended for prerendering static pages at build time. However, given the nature of our project, specifically the list-detail pages structure, prerendering every possible scenario doesn't seem feasible.
As the data we're managing is dynamically changing, we would need to dynamically generate pages. Also, we expect to handle a vast number of detail pages, making static generation strategies like SSG impractical due to build times.
Furthermore, with the introduction of Next.js 13, server components are becoming an intriguing feature to leverage. However, I came across this GitHub issue (https://github.com/vercel/next.js/issues/42991) indicating a potential caching problem with server components.
I wanted to hear your insights on these concerns:
1: Is Next.js still a viable choice for projects heavily focused on CRUD operations? I know things like SWR or SSR can definitely match our requirement, but just want to get the idea whether this is the secondary concern regarding of the NextJS high-level design
2: Regarding the server component caching issue, is there any official solution or recommended workaround in place?
I greatly appreciate any advice and insight you can offer.
Thank you in advance for your assistance.
I am currently evaluating the use of Next.js for a management system project with a typical CRUD scenario. Having studied Next.js, I've found it is often recommended for prerendering static pages at build time. However, given the nature of our project, specifically the list-detail pages structure, prerendering every possible scenario doesn't seem feasible.
As the data we're managing is dynamically changing, we would need to dynamically generate pages. Also, we expect to handle a vast number of detail pages, making static generation strategies like SSG impractical due to build times.
Furthermore, with the introduction of Next.js 13, server components are becoming an intriguing feature to leverage. However, I came across this GitHub issue (https://github.com/vercel/next.js/issues/42991) indicating a potential caching problem with server components.
I wanted to hear your insights on these concerns:
1: Is Next.js still a viable choice for projects heavily focused on CRUD operations? I know things like SWR or SSR can definitely match our requirement, but just want to get the idea whether this is the secondary concern regarding of the NextJS high-level design
2: Regarding the server component caching issue, is there any official solution or recommended workaround in place?
I greatly appreciate any advice and insight you can offer.
Thank you in advance for your assistance.
3 Replies
Bumble bee
1: Yes it is. Next is really a great framework to develop websites and web applications
2: However I would not recommend to use the new app router to develop web app like CRUD.
The caching behavior with server components is indeed quite problematic to develop an app that needs fresh data . But you can use the page router which works fine.
In my opinion, app router is very promising, but not ready for production projects. And there is a lack of documentation to properly explain everything cache-related.
2: However I would not recommend to use the new app router to develop web app like CRUD.
The caching behavior with server components is indeed quite problematic to develop an app that needs fresh data . But you can use the page router which works fine.
In my opinion, app router is very promising, but not ready for production projects. And there is a lack of documentation to properly explain everything cache-related.
Polar bear
I would suggest build a simple MVP with one table and check? App Router has been working really great so far and with 13.4.10, you no longer need router.refresh. BTW, you can quickly create a working CRUD MVP App with https://createappai.com (just use manul Custom Setup and use Lite App to get code for free)