- JavaScript Cloud Native Development Cookbook
- John Gilbert
- 184字
- 2021-07-16 18:03:31
How it works...
In this recipe, we implemented a listener function that consumes upstream events and populates a materialized view that is used by a Backend For Frontend (BFF) service. This function is a stream processor, such as the one we discussed in the Creating a stream processor recipe in Chapter 1, Getting Started with Cloud-Native. The function performs a filter for the desired events and then transforms the data in a map step to the desired materialized view. The materialized view is optimized to support the requirements of the query needed by the BFF. Only the minimum necessary data is stored and the optimal database type is used. In this recipe, the database type is DynamoDB. DynamoDB is a good choice for a materialized view when the data changes frequently.
Note that the asOf timestamp is included in the record. In an eventually consistent system, it is important to provide the user with the asOf value so that he or she can access the latency of the data. Finally, the data is stored in the highly available, fully managed, cloud-native database.
- 通信工程施工工藝手冊(cè)
- 電子電路識(shí)圖全突破(雙色版)
- 彩色電視機(jī)檢測(cè)數(shù)據(jù)及信號(hào)波形實(shí)修實(shí)查大全
- 松下/日立新型彩色電視機(jī)速修圖解
- Mentor PADS VX2.7(中文版)電子設(shè)計(jì)速成實(shí)戰(zhàn)寶典
- 等離子彩電維修代換技法揭秘
- 數(shù)據(jù)鏈理論與系統(tǒng)
- 手繪圖說萬用表使用
- 21堂課精通電子元器件檢測(cè)
- 輕松認(rèn)識(shí)無線電
- 混沌同步控制方法及在保密通信中的應(yīng)用
- Android移動(dòng)應(yīng)用開發(fā)項(xiàng)目教程
- BREW進(jìn)階與精通
- 看圖識(shí)電子小制作
- EDA技術(shù)與VHDL電路開發(fā)應(yīng)用實(shí)踐