Creating multi-tenant sites.
For example, the following sites include the tenant ID in the URL so that each tenant has a different URL, but I don't understand why. What are the advantages and disadvantages?
/survey/adatum
/survey/fabrikam
http://msdn.microsoft.com/ja-jp/library/ff966483.aspx
The site you are creating is
If you do not include tenant information in the URL, you will have to store tenant information in the session.
Doing so will result in a bug in which multiple tenants cannot be accessed simultaneously in the same browser.This is because there is only one tenant information to store in the session, but it is still busy with two tenants.
If you use Ajax, you may see inconsistent information as if it were legitimate data.
It's an in-house system that covers it for operations, so I don't mind, but if you don't know how to use it, you should design it so that it doesn't change as much as possible.
What comes to mind is
That's about it.
I can only think of the disadvantages below (lol).
I'd like to hear other people's opinions.
I think the advantages are the ease of remembering URLs and the ability to identify tenants.You don't have to include the tenant name in the URL, but I think it's easier to understand than the number.
The disadvantage is that this sample seems to be using ASP.NET URL routing, so I think they are not conscious of customization.On the other hand, individual customizations can take a lot of time.
© 2024 OneMinuteCode. All rights reserved.