Multi-Tenant SaaS Architecture (Next.js Auth)

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 39

  • @ahnafadib8774
    @ahnafadib8774 2 місяці тому +24

    No wayyyy I am literally trying to build a multi-tenant app right now and you just posted this.

    • @emmanueleban1096
      @emmanueleban1096 2 місяці тому +1

      SAME

    • @codingsense
      @codingsense 2 місяці тому +1

      Same

    • @chrisrh
      @chrisrh 2 місяці тому +1

      SAAMEEEE

    • @LucasBonafe
      @LucasBonafe 2 місяці тому

      Same!

    • @ogaanshahadunida
      @ogaanshahadunida 2 місяці тому

      Even me I was trying to build that, I saw a lot of people on this road now, what if we helped each other. let's connect each other.

  • @irfantayyib
    @irfantayyib 2 місяці тому +1

    Keep going 🎉🎉 please do not stop making such detailed videos with practical and theoretical knowledge. It doesnt matter how long the video is if it has important informtion throughout!

  • @mahmoudkhaled9942
    @mahmoudkhaled9942 2 місяці тому +7

    You should index the "expense" table by the tenantId.

  • @maddog2622
    @maddog2622 13 днів тому +1

    Very well explained video!

  • @snivels
    @snivels 2 місяці тому +5

    Fuck. Yes. The man delivered!

  • @chukwuemekaallison
    @chukwuemekaallison 2 місяці тому +1

    Thank you creating this

  • @void-deus
    @void-deus 16 днів тому +1

    Gracias , me suscribo , tu contenido esta muy entretenido, sigue asi!

  • @vincentm3135
    @vincentm3135 2 місяці тому +3

    I handle this with prisma extensions and add the tenantId to every query. Much better since it’s centralized

  • @ardianhotii
    @ardianhotii 2 місяці тому

    Thank you for sharing this, actually I started an app for my self a while ago with that platform that vercel provides but I didn't know how to do the auth correctly, can you please do a video like buliding a real example app and show it with 2-3 different users in different subdomains it would be awesome . Love your videos. Keep going

  • @regilearn2138
    @regilearn2138 2 місяці тому +4

    would appreciate if you can do a video on how to do micro service on backend and micro frontend with module federation on frontend using MERN or PERN stack.

  • @navjotsingh2457
    @navjotsingh2457 18 днів тому +1

    Tysm

  • @down__lo7359
    @down__lo7359 2 місяці тому +3

    forgetting to filter by tenant id is real and eventually will happen in any project of size. it's a danger that needs to be mitigated by using a top level safety mechanism that prevents any query from executing if the tenant identifier is missing

  • @rammehar5531
    @rammehar5531 2 місяці тому

    Love you brother you are doing great job, thanks

  • @vigilantghanaian8864
    @vigilantghanaian8864 2 місяці тому +1

    this is clean.

  • @olusanyaolamide9764
    @olusanyaolamide9764 2 місяці тому

    Thank you Brad, please can you dona video on how to do admin page in NextJs, roles and permission stuffs like that

  • @VLADICA94KG
    @VLADICA94KG 10 днів тому

    How do you enforce user to choose with which organization they signup on the starting page?

  • @raphauy
    @raphauy 2 місяці тому +1

    Helpful!

  • @solomonndifereke1448
    @solomonndifereke1448 2 місяці тому +1

    What of a case where you are building a Saas document management system and you're also considering the idea of allowing individual business have the ability of migrating or moving all their documents from your platform if they want to to somewhere else? Will you still use a single DB for every business?

    • @juliusgrisette
      @juliusgrisette 2 місяці тому

      It depends. Offering migration service is ethical business.

  • @nickwoodward819
    @nickwoodward819 21 день тому

    @4:00 - can you offer byo custom url?

  • @filipesommer8253
    @filipesommer8253 2 місяці тому +1

    Great video! Not to be the picky guy, but don't you mean authorization* is critial so you don't see other people's data?

    • @konan6191
      @konan6191 2 місяці тому +1

      not really, the authentication process involves only returning the data that belongs to a user or is somehow related to the user. whereby authorization in multi-tenant refers to permissions and roles. within the data that belongs to the user. ie. superadmin roles, admin roles, and basic user roles in an organisation

    • @filipesommer8253
      @filipesommer8253 2 місяці тому

      @@konan6191 Interesting! Thanks for the insights

    • @codesius
      @codesius 2 місяці тому

      @@filipesommer8253 I would argue that you're correct. Authentication is the login and identifying the user as the account holder. Authorisation is the permissions and roles assigned to the account. That includes making sure they are authorised to view the data they're trying to access.

  • @chrismaresca1446
    @chrismaresca1446 2 місяці тому +2

    How do you handle caching in a multi-tenancy app for dynamic data?

  • @bambanx
    @bambanx Місяць тому

    On multi tenant they share same db? Thanks

  • @realwetter_yt
    @realwetter_yt 2 місяці тому +1

    are you dutch?

    • @lukem121
      @lukem121 2 місяці тому +1

      He's from Poland