Python Load Balancing.

How does python handle a situation when 5000 users send a request in the same moment to the server, and each request takes 6 seconds to process? In java , servlets would do the job automatically ( everything would be broken down into threads ). How about python?

Python explodes in flames!

Cas :slight_smile:

Python tries to catch its own tail.

Welp :expressionless: Thats unfortunate. Thanks anyways.

Oh I see, that’s why my computer caught fire when I was using python :stuck_out_tongue:

My question is under what circumstances would five thousand people be connecting to the same server all at once.

DarkCart: AAA titles, MMORPGs, corporate software, etc.

Don’t forget a server can also be DDOS’ed.

Even just [perhaps momentarily] popular websites. Pretty much whenever a small site is linked on the front page of reddit its server gets melted by the traffic.

The question you’ve posed is flawed, as is the conclusion you’ve reached regarding Java Servlets. The replies clearly reflect this. What are you really trying to do?

@jonjava What i asked in the op. Btw that isn’t really my question, my freind asked me that and i couldn’t really answer as i have no knowledge in python.

Then tell your friend his or her question is utterly meaningless, in not only one but multiple levels, and implicates general, deeper misconceptions about networking. The most on-point answer anyone can give to a question such as this is “… What?”

If your friend is trying to compare the two programming languages, Java and Python, in terms of networking suitability by posing such a question then his misconceptions overflow outside of simple networking but into general computer science and even possibly magnets (and how the fuck do they work?) - in which case the correct answer is to slap him or her in the face with a trout.

@jonjava

But ok, i will tell her that.

Oh, but it is. And so is the ritual of trout slapping.

Yeah, I laughed, too, but it’s probably FUD.

I have no indepth knowledge about python, but there are things like Zope and CerryPy, which is even used by Netflix, so its safe to assume, that python can handle heavy loads and multiple requests just fine.