我有多租户SaaS应用程序,在启动时我设置了这样的路线:
https://my.com/customer1/mobile
https://my.com/customer1/integration
https://my.com/customer2/mobile
https://my.com/customer2/integration
https://my.com/customer3/mobile
https://my.com/customer3/integration
https://my.com/customer4/mobile
https://my.com/customer4/integration
当我添加新客户时,我必须回收池,以便路由重建。我不确定这是否是我正在做的最好的方法......
我只能制作2条路线
https://my.com/mobile
https://my.com/integration
然后在HTTP标头中传递AccountId以及我的身份验证信息。会更干净吗?您如何看待性能,减少路线应该是有益的,对吗?