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

Asynchronous programming and networking

GUIs are a great example of asynchronous programming. Once you open a web or a desktop application, it simply sits there, idle, waiting for user input.

This state is often called the event or main event loop. It is simply waiting for external stimuli, such as a key press, a mouse button click, new data from the network, or even a simple timer.

Each of these stimuli is associated with an event handler that gets called when one of these events happen, hence the asynchronous nature of GUI systems.

This is a style of programming that we have been used to for many years, but as business and user needs grow, these applications grow in complexity as well, and better abstractions are needed to handle the dependencies between all the components of an application.

Another great example that deals with managing complexity around network traffic is Netflix, which uses CES to provide a reactive API for their backend services.

主站蜘蛛池模板: 康平县| 尚义县| 屏东市| 龙山县| 吐鲁番市| 柳江县| 布尔津县| 大丰市| 宝兴县| 临猗县| 吉林市| 敖汉旗| 丹阳市| 灵寿县| 辽源市| 南开区| 宁晋县| 舟曲县| 陆良县| 德安县| 徐汇区| 昂仁县| 凭祥市| 西峡县| 阿拉善右旗| 十堰市| 辛集市| 崇仁县| 图木舒克市| 新兴县| 神池县| 自贡市| 牡丹江市| 错那县| 阿拉尔市| 建始县| 杂多县| 汽车| 柘荣县| 云浮市| 贵州省|