当前位置:网站首页>Real time data warehouse
Real time data warehouse
2022-07-04 14:22:00 【This program ape is so beautiful】
This article is just a summary of my real-time data warehouse experience , In terms of architecture and data flow, it is actually similar to offline data warehouse , But real-time processing has its own particularity
Why should there be real-time data warehouse ?
We have been able to take off-line positions , The purpose of data warehouse is to reuse , But offline is T+1 Of , In our massive real-time demand , Previous offline computing cannot be reused , A lot of new repetitive real-time code development , The cost of developing and computing resources is increasing
Real time data warehouse layering
ODS Raw data , Including logs and business data
DWD
DIM
DWM
DWS
ADS
DWD
One for each table Topic, Rewrite the order flow and other business data back kafka, In addition, the log data is output from the measurement output stream (sql That's more than one. insert +filter), There are mainly startup and exit logs 、 page ( Only include pages, that is pv journal ) journal 、 Behavior log, etc , Different data have completely different data structures , So we need to split it
At the same time, do some illegal value filtering , Like time stamps ,uid check ( Mainly regular matching , We are 13 Digit number ), in addition ODS In addition to the fact data, there will also be dimension data , Need to write DIM instead of DWD
DWD The main core of the layer is data diversion and state recognition
DIM
Like I said , some ODS Dimension data of Flink After you get it, you usually write it directly Hbase 了 , It is convenient for us to do dimensional flow join
DWM
DWM Layer is mainly due to the high cost of real-time computing, development, operation and maintenance , But in DWD -> DWS There are still many repeated calculations in the calculation of , Mainly extract this part for public
For example, order wide table , You need to associate order tables with order details and dimension tables , Then we can only process it once as a wide table , stay DWS Various behaviors or orders are used directly from DWM Just associate the data
This layer is often designed to have more streams join And flow dimension join
DWS
Mild polymerization , Deal with all kinds of real-time queries , And relieve the pressure of query
Combine more real-time data in a thematic way for easy management , At the same time, it can also reduce the number of dimension queries
How to make design DWS Table of , It mainly depends on dimension + Measure ( Fact data )
Metrics such as uv、pv、 Number of jumps 、 Number of times to enter the page (session_count)、 Continuous access duration, etc
The dimension is mainly the main , channel 、 Go to the ground 、 edition 、 at home and abroad 、 New and old users 、 System (ios, Android , The computer ) these
Accept detailed data , Merge streams into the same data format , Then the window is aggregated and output to the database ( We are clickhouse)
Real time data warehouse application landing
Real time data market
Alarm monitoring
Real-time recommendation
边栏推荐
- Unity shader learning (3) try to draw a circle
- The mouse wheel of xshell/bash/zsh and other terminals is garbled (turn)
- Understand chisel language thoroughly 04. Chisel Foundation (I) - signal type and constant
- Basic mode of service mesh
- Gorm read / write separation (rotation)
- Understand chisel language thoroughly 06. Chisel Foundation (III) -- registers and counters
- 利用Shap值进行异常值检测
- [antd step pit] antd form cooperates with input Form The height occupied by item is incorrect
- Deming Lee listed on Shenzhen Stock Exchange: the market value is 3.1 billion, which is the husband and wife of Li Hu and Tian Hua
- Assertion of unittest framework
猜你喜欢
为什么图片传输要使用base64编码
使用CLion编译OGLPG-9th-Edition源码
Deming Lee listed on Shenzhen Stock Exchange: the market value is 3.1 billion, which is the husband and wife of Li Hu and Tian Hua
Excel快速合并多行数据
Map of mL: Based on Boston house price regression prediction data set, an interpretable case of xgboost model using map value
Rich text editing: wangeditor tutorial
【信息检索】链接分析
[MySQL from introduction to proficiency] [advanced chapter] (V) SQL statement execution process of MySQL
CVPR 2022 | greatly reduce the manual annotation required for zero sample learning, and propose category semantic embedding rich in visual information (source code download)
sharding key type not supported
随机推荐
NowCoder 反转链表
Leetcode 61: 旋转链表
Apple 5g chip research and development failure: continue to rely on Qualcomm, but also worry about being prosecuted?
架构方面的进步
2022 practice questions and mock exams for the main principals of hazardous chemical business units
Incremental ternary subsequence [greedy training]
Vscode common plug-ins summary
Fs4059c is a 5V input boost charging 12.6v1.2a. Inputting a small current to three lithium battery charging chips will not pull it dead. The temperature is 60 ° and 1000-1100ma is recommended
Leetcode T49: 字母异位词分组
第十七章 进程内存
一种架构来完成所有任务—Transformer架构正在以一己之力统一AI江湖
奇妙秘境 码蹄集
MATLAB中tiledlayout函数使用
ML之shap:基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
ViewModel 初体验
【MySQL从入门到精通】【高级篇】(五)MySQL的SQL语句执行流程
Golang uses JSON unmarshal number to interface{} number to become float64 type (turn)
Innovation and development of independent industrial software
China Post technology rushes to the scientific innovation board: the annual revenue is 2.058 billion, and the postal group is the major shareholder
R语言dplyr包summarise_if函数计算dataframe数据中所有数值数据列的均值和中位数、基于条件进行数据汇总分析(Summarize all Numeric Variables)