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

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.

主站蜘蛛池模板: 龙南县| 临桂县| 孝昌县| 玛沁县| 玉龙| 通渭县| 呼图壁县| 南充市| 宜昌市| 敦化市| 塔河县| 芜湖县| 营山县| 山西省| 海丰县| 包头市| 威海市| 克拉玛依市| 大竹县| 依安县| 余江县| 大渡口区| 吉林市| 郎溪县| 孟津县| 新乡县| 柏乡县| 故城县| 古交市| 青海省| 隆德县| 毕节市| 周至县| 泾源县| 康马县| 红原县| 都昌县| 乌兰浩特市| 河西区| 新平| 兴海县|