- Microservices with Azure
- Namit Tanasseri Rahul Rai
- 278字
- 2021-07-02 22:18:23
Composite user interface for the web
Several high-scale websites such as Facebook and MSN combine data from multiple services on their page. Such websites compose their frontend out of multiple components. Each of these components could be the user interface provided by individual Microservices. A great example of this approach is Facebook's BigPipe technology, which composes its web page from small reusable chunks called pagelets and pipes them through several executing stages inside web servers and browsers:

The composition of a user interface can take place at multiple levels, ranging from development to execution. The flexibility of such integrations varies with the level they are carried out at.
The most primitive form of composition can be the sharing of code, which can be done at the time of development. However, using this integration, you have to rely on deployment monoliths as the various versions of user interface can't be deployed in parallel.
A much more flexible integration can also take place at runtime. For instance, Asynchronous JavaScript and XML (AJAX), HTML, and other dependencies can be loaded in the browser. Several JavaScript frameworks, such as Angular.js, Ember.js, and Ext.js, can help realize composition in single-page applications.
In cases where integration through JavaScript is not feasible, middleware may be used which fetches the HTML component of each Microservice and composes them to return a single HTML document to the client. Some typical examples of such compositions are the edge side includes of varnish or squid, which are proxies and caches. Server-side includes such as those available on Apache and NGINX can also be used to carry out transformations on servers rather than on caches.
- 多媒體CAI課件設計與制作導論(第二版)
- C語言程序設計教程
- Getting Started with ResearchKit
- Visual C++實例精通
- Python 3網絡爬蟲實戰
- Modular Programming in Java 9
- Elasticsearch for Hadoop
- Python算法從菜鳥到達人
- Mastering Linux Network Administration
- Java Web開發詳解
- HTML5 APP開發從入門到精通(微課精編版)
- Clojure for Java Developers
- Learning Unreal Engine Game Development
- 算法超簡單:趣味游戲帶你輕松入門與實踐
- Raspberry Pi By Example