Multi-Tenant applications: How to do it in the correct way!

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

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

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

    Very well explained. Simplicity at at its best.

    • @sa-es-ir
      @sa-es-ir  3 หลายเดือนก่อน

      Happy you like the video

  • @ArjunRR-cz8hb
    @ArjunRR-cz8hb 14 วันที่ผ่านมา +1

    Hi , I have requirement using Cosmos Db.All tenants share same dbnsme and connection string
    Which is better to have
    1.Single Dbcontext Change the container name on dynamic based on tenant provider
    2. Spreate Dbcontex for each tenant..

    • @sa-es-ir
      @sa-es-ir  10 วันที่ผ่านมา

      I'll go for the first approach, the important thing here having a single connection to cosmosdb, it is exactly like calling a third-party API, you'll create a HttpClient with a base address (here is the connecitonString) and call different endpoints (here is the containername).

    • @ArjunRR-cz8hb
      @ArjunRR-cz8hb 10 วันที่ผ่านมา

      @sa-es-ir Thank you for the details..
      But I have one query, I have created a project with 1st approach
      1., In a single AppDbcontext Onmodelcreating calling only once
      2. When I send a request for another tenant Onmodelcreating is not getting called..
      3.Using AddDbContextFactory in Di container
      Please let me know to resolve this

    • @sa-es-ir
      @sa-es-ir  9 วันที่ผ่านมา

      @@ArjunRR-cz8hb Do you have a code like mine in this video? if yes then please provide a github repo then I can see the code and talking about the actual problem.

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

    Very nice one; it looks very useful. Also, it would be good to explain different custom tenant strategies, as we often need them for SaaS products where need ensuring that each tenant's data is securely isolated from others...

    • @sa-es-ir
      @sa-es-ir  9 หลายเดือนก่อน

      Thanks Admir and great suggestion, an good option would be jwt token claims its more secure but we need to make sure to config indentity provider for supporting tenantId.
      Any other options you have in mind?

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

      @@sa-es-ir - Well depends of many vectors... :-) I believe database structures could address multi-tenant requirements, such as distinctive schemas within a shared database or isolated databases for each customer, choosing the optimal approach depends on needs. A crucial consideration is scalability - as clients increase, the solution must flexibly support surging data volumes and tenants without hampered speeds. This may necessitate scaling out the database horizontally across extra resources, establishing proficient indexing of information for rapid access, and refining questions for swift handling. Similarly vital is maintaining solitude of each tenant's information through logical or physical isolation. The design selected will likely represent a balanced composite of performance during growth, convenience, and privacy based on a project's unique demands and comfort with complexity.

    • @sa-es-ir
      @sa-es-ir  9 หลายเดือนก่อน

      @@admirmujkic5859 well explained and I think in case of scaling out you still have the same tenant so that no matter how many instances you have, just query on tenantId.
      The entry point for each area is tenantId so we need to transfer it in a secure way.

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

    Please make a series about Multi Tenant

    • @sa-es-ir
      @sa-es-ir  5 หลายเดือนก่อน

      I put it in the list, stay tuned

  • @10Totti
    @10Totti 9 หลายเดือนก่อน

    Nice tutorial thanks!

    • @sa-es-ir
      @sa-es-ir  9 หลายเดือนก่อน

      Thank you for yuor support🌷

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

    hey mate, where can I learn c# from scratch?

    • @sa-es-ir
      @sa-es-ir  9 หลายเดือนก่อน

      It's very good place to go: th-cam.com/play/PLdo4fOcmZ0oULFjxrOagaERVAMbmG20Xe.html&si=liJ8VtdbILvkqjmR

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

    Great video

    • @sa-es-ir
      @sa-es-ir  9 หลายเดือนก่อน

      Very glad you like it

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

    Thanks

    • @sa-es-ir
      @sa-es-ir  5 หลายเดือนก่อน

      Welcome