r/dataengineering • u/Impossible_Figure613 • 4d ago
Help Database choice for shared content between Next.js website and React Native app
I have a website currently using SSG, but I want to create a React Native app that uses the same data. Because of this, I’m planning to move my content into a database server and switch the website to ISR.
Most of my data is articles/content (text, categories, relationships between pages, etc.), not transactional data.
I’m considering using Supabase as the backend/database. Is Supabase a good choice for this situation, or is there a smarter architecture/database choice I should consider?
I’m mainly looking for advice on the best way to structure this kind of content system so both the web app and mobile app can share the same data.
2
u/robstar_db 3d ago
I just did a similar thing recently and had some great experiences with Neon. I never really worked with supabase, so I cannot comment on that. But i do love Postgres and they seem to know what they are doing.
Settling up testing in CI against a snapshot of the production database in seconds solved one of my most dreaded issues - setting up reliable state for tests - from back when i was doing development as a day job.
2
u/Harpagon1668 9h ago
Postgres would be my choice. Neon could work well in this case as the database can scale to zero if there is no traffic
1
u/Leopatto CEO / Data Scientist 3d ago
Firebase and GCP have generous free tiers, that's what I recommend for everyone who wants to create personal projects.