- Mastering Concurrency in Python
- Quan Nguyen
- 130字
- 2021-06-10 19:24:08
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
推薦閱讀
- C/C++算法從菜鳥到達人
- PHP+MySQL網站開發技術項目式教程(第2版)
- INSTANT CakePHP Starter
- 教孩子學編程:C++入門圖解
- STM32F0實戰:基于HAL庫開發
- 微信小程序項目開發實戰
- Visual Basic程序設計實驗指導(第二版)
- Mastering ArcGIS Enterprise Administration
- Python函數式編程(第2版)
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發技術
- Python趣味創意編程
- Unity 5 Game Optimization
- Python實戰指南:手把手教你掌握300個精彩案例
- Hands-On GUI Application Development in Go
- React Native -Building Mobile Apps with JavaScript