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

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.

主站蜘蛛池模板: 宜昌市| 大关县| 保靖县| 招远市| 桐梓县| 莱州市| 麻江县| 高尔夫| 神木县| 昌都县| 南郑县| 周宁县| 洛川县| 嘉祥县| 宝兴县| 太仆寺旗| 嘉义市| 军事| 六枝特区| 巩留县| 泽普县| 连城县| 义乌市| 鄱阳县| 玉田县| 汽车| 成都市| 胶南市| 巴林左旗| 沾益县| 长宁县| 衡水市| 山西省| 江永县| 毕节市| 涡阳县| 福州市| 沧源| 福建省| 金乡县| 南靖县|