- 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語言程序設計案例教程
- Designing Machine Learning Systems with Python
- Visual FoxPro 程序設計
- Mastering matplotlib
- ASP.NET動態網頁設計教程(第三版)
- C++面向對象程序設計習題解答與上機指導(第三版)
- Android玩家必備
- Getting Started with React Native
- C語言程序設計簡明教程:Qt實戰
- Java程序設計與項目案例教程
- Python數據可視化之美:專業圖表繪制指南(全彩)
- SwiftUI極簡開發
- 深度實踐KVM:核心技術、管理運維、性能優化與項目實施
- Using Yocto Project with BeagleBone Black
- 體驗之道:從需求到實踐的用戶體驗實戰