About concurrent requests

Source: Internet
Author: User
For more information about concurrent requests, see the user page.
1. a1-a10000 access at the same time/a1.htm
2. access/b1.htm/b2.htm.../b2.16.htm at the same time in b1

Explanation:
1. 10000 users simultaneously request one page
2. one user requests 10000 pages at the same time


Are these two types of servers under the same pressure? Or which one is faster?


Reply to discussion (solution)

Check what page you are. if it is a dynamic page, the server usually has a cache. for example, a PHP page needs to be compiled and cached after compilation, concurrency is equivalent to compiling only once, and the overhead of 10000 different pages is times that of 1.
There is also the page content, the page size varies with the overhead, the number of images is also different overhead, and so on many other aspects, but the basic situation is that one page is less pressure than 10000 pages.

If one user requests 10000 pages at the same time, this situation exists (it should not exist)
The overhead of both is the same for servers!

Check what page you are. if it is a dynamic page, the server usually has a cache. for example, a PHP page needs to be compiled and cached after compilation, concurrency is equivalent to compiling only once, and the overhead of 10000 different pages is times that of 1.
There is also the page content, the page size varies with the overhead, the number of images is also different overhead, and so on many other aspects, but the basic situation is that one page is less pressure than 10000 pages.

Assume that none of the two are cached, which is htm. The size of the 1 and 10000 pages is the same (the content is different)
In this case, is 1 faster than 2 (1 w users access 1 page than 1 user to access 1 W pages)

If one user requests 10000 pages at the same time, this situation exists (it should not exist)
The overhead of both is the same for servers!

Oh. That's what I understand. But some people say yes.

A user sends 10 thousand requests, which is also a session.
10 thousand users send a request, which is 10000 sessions.
The session will remain on the server for a long time (usually 30 minutes according to the settings)

What is the relationship between them?

He seems to have a high ranking in CSDN.
He believes that 1 is faster than 2 (that is, a single user's 10000 requests will be very fast. 10000 of users initiate one request at a time. Therefore, hackers use multi-user IP addresses to attack websites.

I am not very familiar with it. is it because the WEB server (such as APACHE) needs to generate 1 million IP addresses (Sessions?) during multi-IP requests ?) So it's slow?

Let me understand this first. Thank you!
10000 users request 1 request at the same time, the system resources consumed = 1 user requests 10000 at the same time, the system resources consumed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.