- JavaScript Cloud Native Development Cookbook
- John Gilbert
- 200字
- 2021-07-16 18:03:33
How it works...
In this recipe, we implement a listener function that consumes upstream events and populates a materialized view that is used by a Backend For Frontend 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 a Cognito dataset. A Cognito dataset is a good choice for a materialized view when network availability is intermittent, and thus an offline-first approach is needed to synchronize data to a user's devices. The data must also be specific to a user so that it can be targeted to the user based on the user's identityId. Due to the intermittent nature of connectivity, the asOf timestamp is included in the record so that the user can access the latency of the data.
- Hands-On MQTT Programming with Python
- 圖表細(xì)說電子工程師速成手冊(第2版)
- 3D教育藍(lán)皮書
- 快修巧修新型等離子和高清晰度電視機(jī)
- 無線通信中的空時與協(xié)作信號處理
- 面向5G的智能光承載網(wǎng)規(guī)劃與運(yùn)維實(shí)踐
- 電子線路基礎(chǔ)輕松入門
- 電力工程與通信技術(shù)
- 數(shù)字視頻制作應(yīng)用
- 通信員指導(dǎo)手冊
- GPRS網(wǎng)絡(luò)信令實(shí)例詳解
- 數(shù)字信號處理
- 光通信技術(shù)與應(yīng)用
- 物聯(lián)網(wǎng)項(xiàng)目實(shí)戰(zhàn):基于Android Things系統(tǒng)
- 嚴(yán)肅的密碼學(xué):實(shí)用現(xiàn)代加密術(shù)