Multi-Tenant SaaS Architecture (Next.js Auth)

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024

ความคิดเห็น • 32

  • @ahnafadib8774
    @ahnafadib8774 หลายเดือนก่อน +20

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

    • @emmanueleban1096
      @emmanueleban1096 หลายเดือนก่อน +1

      SAME

    • @codingsense
      @codingsense หลายเดือนก่อน +1

      Same

    • @chrisrh
      @chrisrh หลายเดือนก่อน +1

      SAAMEEEE

    • @LucasBonafe
      @LucasBonafe หลายเดือนก่อน

      Same!

    • @ogaanshahadunida
      @ogaanshahadunida หลายเดือนก่อน

      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 หลายเดือนก่อน +6

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

  • @irfantayyib
    @irfantayyib หลายเดือนก่อน +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!

  • @down__lo7359
    @down__lo7359 หลายเดือนก่อน +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

    • @aberbaCodes
      @aberbaCodes หลายเดือนก่อน +1

      MY WORST FEAR!!

  • @snivels
    @snivels หลายเดือนก่อน +5

    Fuck. Yes. The man delivered!

  • @vincentm3135
    @vincentm3135 หลายเดือนก่อน +3

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

    • @ByteGrad
      @ByteGrad  หลายเดือนก่อน

      Interesting idea

    • @comotu-cc1io
      @comotu-cc1io 12 วันที่ผ่านมา

      which extension?

  • @regilearn2138
    @regilearn2138 หลายเดือนก่อน +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.

  • @ardianhotii
    @ardianhotii หลายเดือนก่อน

    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

  • @chukwuemekaallison
    @chukwuemekaallison หลายเดือนก่อน +1

    Thank you creating this

  • @vigilantghanaian8864
    @vigilantghanaian8864 หลายเดือนก่อน +1

    this is clean.

  • @olusanyaolamide9764
    @olusanyaolamide9764 หลายเดือนก่อน

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

  • @solomonndifereke1448
    @solomonndifereke1448 หลายเดือนก่อน +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 หลายเดือนก่อน

      It depends. Offering migration service is ethical business.

  • @rammehar5531
    @rammehar5531 หลายเดือนก่อน

    Love you brother you are doing great job, thanks

  • @raphauy
    @raphauy หลายเดือนก่อน +1

    Helpful!

  • @chrismaresca1446
    @chrismaresca1446 หลายเดือนก่อน +2

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

    • @pontuslindstrom1052
      @pontuslindstrom1052 หลายเดือนก่อน +1

      Pass the organisation-id as url param

  • @bambanx
    @bambanx 14 วันที่ผ่านมา

    On multi tenant they share same db? Thanks

  • @filipesommer8253
    @filipesommer8253 หลายเดือนก่อน +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 หลายเดือนก่อน +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 หลายเดือนก่อน

      @@konan6191 Interesting! Thanks for the insights

    • @codesius
      @codesius หลายเดือนก่อน

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

  • @realwetter_yt
    @realwetter_yt หลายเดือนก่อน

    are you dutch?

    • @lukem121
      @lukem121 หลายเดือนก่อน +1

      He's from Poland