Next.js Discord

Discord Forum

How to deal with catching system in social media app ?

Unanswered
Nova Scotia Duck Tolling Retriev… posted this in #help-forum
Open in Discord
Avatar
Nova Scotia Duck Tolling RetrieverOP
I am creating a social media that have functions similar to famous social media apps like insta and tiktok , but I am having issues with planning for the data catching in the app, in my app fetching the user data shouldn't be cached because it stores the liked and saved posts for each user so if the old liked posts was catched the app will not detect the new liked posts by the user and this will cause a lot of issues, also the posts that appear to the user shouldn't be catched too because the user should see the latest posts each time the user load the route and for the profile page I can't catch the data because the user might get a new follower or likes or simply upload a new post and it will not show that correctly if the data was catched and there's more and more ...
Idk maybe I may have understood the catching system in the wrong way, but I saw a lot of people struggling with that for much simpler systems and I didn't find any good solution or idea about that, does anyone know a good way to build the catching system for these systems efficiently ?
note : my web app was a react code and I am migrating to next.js code now for the SEO feature in Next.js

0 Replies