User page
1. a1-a10000 simultaneous access to/a1.htm
2. b1 simultaneous access to/b1.htm/b2.htm .../b10000.htm
Explain:
1, 10,000 users request 1 pages at a time
2, 1 users request 10,000 pages at a time
Do these 2 kinds of pressure on the server are the same? Or which is faster?
Reply to discussion (solution)
See what you are page, if it is a dynamic page, usually the server is a cache, such as 1 PHP pages, it is necessary to compile, compile good after the cache, the concurrency is equivalent to compile only once, and you 10,000 different pages this place cost is 1 1W times.
There is to look at your page content, the page size of different costs are different, the picture is also different costs, and so on many other aspects, but the basic situation is 1 pages than 10,000 pages of pressure points.
If 1 users request 10,000 pages at the same time this situation is present (should not exist)
The cost of both is the same for the server!
See what you are page, if it is a dynamic page, usually the server is a cache, such as 1 PHP pages, it is necessary to compile, compile good after the cache, the concurrency is equivalent to compile only once, and you 10,000 different pages this place cost is 1 1W times.
There is to look at your page content, the page size of different costs are different, the picture is also different costs, and so on many other aspects, but the basic situation is 1 pages than 10,000 pages of pressure points.
Suppose: None of the 2 are cached and are HTM. The size of the 1 pages and 10,000 pages is the same (the content is different)
So that's 1:2 fast? (1W user access to 1 pages than 1 users accessing 1W pages)
If 1 users request 10,000 pages at the same time this situation is present (should not exist)
The cost of both is the same for the server!
Oh. I understand that as well. But some people say yes.
A user sends 10,000 requests and also 1 sessions.
10,000 users send a request, which is 10,000 session.
Session will remain on the server for a long time (typically 30 minutes depending on the setting)
What does it matter?
He has a high rank in csdn.
He was thinking that 1:2 fast (that is, a single user 10,000 requests will be quick.) 10000 users at the same time 1 requests will be very slow, so hackers are using multi-User IP attacks to request the site.
I am not very good, is it a multi-IP request, the Web server (such as Apache) to generate 1W IP (session?). So it's slow?
Let me first understand that. Thank you!
10000 user requests at the same time 1 times, consumes system resources = 1 users simultaneously request 10,000 times, consumes the system resources