Home > Back-end >  Java web login queue function for the great god give an idea how to achieve
Java web login queue function for the great god give an idea how to achieve

Time:10-16

Now can set the maximum number of login is the background, demand is the user login queue, if online more than limit the into front page need to be able to real-time display in front of the queue, how many people seek great god speak the implementation approach

CodePudding user response:

Why login limit, occurrence surge?

CodePudding user response:

If I could use redis is,
Manually set the maximum number of login, and then logged in the need of joint to maintain a "has the login number number,
If more than limit an amount, the current logged in user, push the queue
As to how to get the current user "" there are many people in the queue in front of, also can't answer,


A purely personal view, learning together,

CodePudding user response:

For a web system, online number the index itself has a problem, what is online? Such as * * minutes action is online, define the first, and then implemented using redis can,

But personally think now online number is inferior to limit the number of concurrent some business, more meaningful, if some people logged in after what thing don't also calculate online is not a waste of resources,

We can often find this system, because the system has anti crawler mechanism, often find someone in order to maintain the login activity using wizard button refresh the page regularly, in fact did nothing,

CodePudding user response:

I think you can spray demand of people, under the limit number of login to the web system is too difficult, if you want to do the current limit, the mainstream approach is limited for the request flow, rather than to the person.

Feel that demand was purely amateur.
  • Related