官术网_书友最值得收藏!

Concurrent web requests

In the context of concurrent programming, we can see that the process of making a request to a web server and obtaining the returned response is independent from the same procedure for a different web server. This is to say that we could apply concurrency and parallelism to our ping test application to speed up our execution.

In the concurrent ping test applications that we are designing, multiple HTTP requests will be made to the server simultaneously and corresponding responses will be sent back to our program, as shown in the following figure. As discussed before, concurrency and parallelism have significant applications in web development, and most servers nowadays have the ability to handle a large amount of requests at the same time:

Parallel HTTP requests
主站蜘蛛池模板: 获嘉县| 旺苍县| 富顺县| 嫩江县| 德昌县| 枣庄市| 天气| 华阴市| 定结县| 连江县| 湛江市| 和田县| 界首市| 汕尾市| 红原县| 永嘉县| 金秀| 晋中市| 忻州市| 松阳县| 得荣县| 南皮县| 绍兴县| 西丰县| 余江县| 东丰县| 成安县| 伊春市| 泰宁县| 广灵县| 丘北县| 洛隆县| 临沧市| 增城市| 广昌县| 微山县| 万安县| 长治县| 西昌市| 广德县| 霍城县|