Is My NextJS Web App Considered a Monolith or Distributed Monolith?

0
1
Asked By CuriousCoder42 On

I'm working on a web app using NextJS with server-side rendering and I've integrated Supabase for authentication and database management. All of my code is in one repository. Since I'm making API calls to Supabase, it feels like I shouldn't classify it as a single monolith. But does that mean I have a distributed monolith? Additionally, how exactly could a web app with a database be classified as a monolith? Wouldn't the database need to be housed within the web app for that to happen? I'm feeling a bit confused about this!

1 Answer

Answered By DevDude89 On

In general terms, a monolith is when all your code is deployed as one unit. If your database is just a service that's not separated from the web app, then it can still be considered a monolith. You’re right in thinking that a distributed monolith might apply here since you’re connecting to Supabase, but since it’s all in one repo, it gives off that monolithic vibe. Just remember, breaking a small app into microservices isn't usually ideal; save that for when you have multiple teams.

CodeMasterX -

So, it's like the connection to the database acts as a microservice, but the whole app is still just one unit, right?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.