Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
631 views
in Technique[技术] by (71.8m points)

jakarta ee - Explanation of Tenant Load Balancer in SaaS maturity model level 4

I've already done some research about SaaS maturity level based on Gianpaolo SaaS maturity model.

Right now I got confused about SaaS maturity level 4. It said, it has a "Tenant load balancer" that dynamically calls a new application instance to serve load balancing for a SaaS application.

I want to know what this "Tenant load balancer" really means. How do we implement this "Tenant load balancer" in the real world or in an application server?

Can anyone give me some good explanation and an example, like an implementation in Java EE technology?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

One way to implement Tenant Load Balancer:

  1. Create multiple instances of the application - say A,B,C. Each with its own database.
  2. Create one meta-database - this database has info on accounts, logins, etc.
  3. Login interface is single. ie everyone logs on to same web interface.
  4. When a user signsup, allocate him to one of the app instances (A,B or C).
  5. When user logs in, authenticate against the meta-database and then redirect to specific instance.

So for example:

  1. Login site is setup at www.example.com
  2. App instances are available at a.example.com, b.example.com, c.example.com
  3. To signup, user goes to www.example.com
  4. To login, user goes to www.example.com
  5. After successful login, user is directed to a.example.com or whatever his instance is.

This is how Salesforce.com does it. They have different instances for different regions and allocate clients these.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...