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

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.

主站蜘蛛池模板: 奉节县| 上蔡县| 江北区| 安龙县| 疏勒县| 西城区| 永年县| 工布江达县| 苏尼特左旗| 大兴区| 教育| 文山县| 丹寨县| 安陆市| 新绛县| 白山市| 绥宁县| 东乌珠穆沁旗| 富蕴县| 杭锦后旗| 定边县| 张家界市| 开原市| 宁远县| 宜城市| 海原县| 外汇| 建宁县| 元谋县| 顺平县| 安达市| 临颍县| 攀枝花市| 吴堡县| 横峰县| 平乐县| 永平县| 平谷区| 鲜城| 陵川县| 句容市|