locked
Multi tanent Architecture in MVC RRS feed

  • Question

  • User1020816627 posted

    I've tried to implement this solution but I've faced connection issues as different users were trying to connect at the same time to different databases. How would you suggest to avoid this type of issue?

    Tuesday, June 14, 2016 2:08 PM

All replies

  • User2036436350 posted
    Hi andmat,

    Could you kindly state the issue you are facing? May be an error log or an error image or even abit more detail in your own words about the error?
    This will help us provide you a better and much more accurate responce.
    Regards,
    Praneeth
    Tuesday, June 14, 2016 5:08 PM
  • User1020816627 posted

    Hi Praneeth,

    at that time I tried to implement DI with Ninject and chose the singleton pattern for the user profile object I instantiated on the very first request. That didn't work very well as users beloging to different tenants tried to access the web application since the connection string saved in the user profile object was not the right one for each request. Maybe I got it wrong and should have tried to use transient scope to check the user profile on each request but it was years ago and I don't remember it quite well...

    Hope this can give you some more details.

    Cheers

    Wednesday, June 15, 2016 7:20 AM