catch database changes with nextjs
Answered
Dutch posted this in #help-forum
DutchOP
Hey all,
im building a website with the functionality that users can create something like "posts" which are put in a database, and the user must of course be able to see everyone elses posts aswell. so when someone makes a new post, I want to be notified about that without having to reload the website and build it again.
I dont know anything about web dev or nextjs, so before I commit to nextjs for this project I just want to make sure that nextjs is a good fit for this?
basically, can I somehow continually check thje database for changes / have the database notify me the browser client so I can display the new posts aswell?
I know this is a really noob question, I just dont wanna be locked in a framework only to find out later it was a bad idea in the first place :)
im building a website with the functionality that users can create something like "posts" which are put in a database, and the user must of course be able to see everyone elses posts aswell. so when someone makes a new post, I want to be notified about that without having to reload the website and build it again.
I dont know anything about web dev or nextjs, so before I commit to nextjs for this project I just want to make sure that nextjs is a good fit for this?
basically, can I somehow continually check thje database for changes / have the database notify me the browser client so I can display the new posts aswell?
I know this is a really noob question, I just dont wanna be locked in a framework only to find out later it was a bad idea in the first place :)
Answered by Madeiran sardinella
Hi, Next shouldn't be a problem. I think that you could use sockets or push notifications to handle updates from server to client
2 Replies
Madeiran sardinella
Hi, Next shouldn't be a problem. I think that you could use sockets or push notifications to handle updates from server to client
Answer
DutchOP
I see, thanks :)