Multi-Tenant SaaS Architecture (Next.js Auth)

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 39

  • @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!

  • @ahnafadib8774
    @ahnafadib8774 2 месяца назад +23

    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.

  • @mahmoudkhaled9942
    @mahmoudkhaled9942 2 месяца назад +7

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

  • @maddog2622
    @maddog2622 5 дней назад +1

    Very well explained video!

  • @vincentm3135
    @vincentm3135 2 месяца назад +3

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

  • @void-deus
    @void-deus 8 дней назад +1

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

  • @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

  • @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 месяца назад +3

    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.

  • @snivels
    @snivels 2 месяца назад +5

    Fuck. Yes. The man delivered!

  • @chukwuemekaallison
    @chukwuemekaallison 2 месяца назад +1

    Thank you creating this

  • @navjotsingh2457
    @navjotsingh2457 10 дней назад +1

    Tysm

  • @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 2 дня назад

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

  • @vigilantghanaian8864
    @vigilantghanaian8864 2 месяца назад +1

    this is clean.

  • @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.

  • @rammehar5531
    @rammehar5531 2 месяца назад

    Love you brother you are doing great job, thanks

  • @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.

  • @raphauy
    @raphauy 2 месяца назад +1

    Helpful!

  • @chrismaresca1446
    @chrismaresca1446 2 месяца назад +2

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

  • @nickwoodward819
    @nickwoodward819 13 дней назад

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

  • @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