当前位置:网站首页>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
边栏推荐
- IP lab monthly resumption · issue 5
- Ruiji takeout notes
- Test process arrangement (3)
- LifeCycle
- Can mortgage with housing exclude compulsory execution
- TestSuite and testrunner in unittest
- Abnormal value detection using shap value
- Understand chisel language thoroughly 05. Chisel Foundation (II) -- combinational circuits and operators
- C # WPF realizes the real-time screen capture function of screen capture box
- Understand chisel language thoroughly 07. Chisel Foundation (IV) - bundle and VEC
猜你喜欢
![[R language data science]: cross validation and looking back](/img/a8/84a5685ebcb12d3cf8e32e1fbac053.png)
[R language data science]: cross validation and looking back

How to package QT and share exe

商业智能BI财务分析,狭义的财务分析和广义的财务分析有何不同?

Leetcode 61: 旋转链表
![[antd] how to set antd in form There is input in item Get input when gourp Value of each input of gourp](/img/eb/11e5da1c5e897c5f6a18d49125925f.png)
[antd] how to set antd in form There is input in item Get input when gourp Value of each input of gourp

CVPR 2022 | greatly reduce the manual annotation required for zero sample learning, and propose category semantic embedding rich in visual information (source code download)

Excel快速合并多行数据

Apple 5g chip research and development failure: continue to rely on Qualcomm, but also worry about being prosecuted?

Leetcode T48:旋转图像

C# wpf 实现截屏框实时截屏功能
随机推荐
失败率高达80%,企业数字化转型路上有哪些挑战?
Error in find command: paths must precede expression (turn)
[matlab] summary of conv, filter, conv2, Filter2 and imfilter convolution functions
测试流程整理(2)
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
LifeCycle
Intelligence d'affaires bi analyse financière, analyse financière au sens étroit et analyse financière au sens large sont - ils différents?
2022游戏出海实用发行策略
架构方面的进步
C# wpf 实现截屏框实时截屏功能
Use of tiledlayout function in MATLAB
R语言使用dplyr包的group_by函数和summarise函数基于分组变量计算目标变量的均值、标准差
R语言dplyr包summarise_if函数计算dataframe数据中所有数值数据列的均值和中位数、基于条件进行数据汇总分析(Summarize all Numeric Variables)
Understand chisel language thoroughly 11. Chisel project construction, operation and test (III) -- scalatest of chisel test
【MySQL从入门到精通】【高级篇】(四)MySQL权限管理与控制
【信息检索】链接分析
vscode 常用插件汇总
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
R language ggplot2 visualization: gganimate package creates animated graph (GIF) and uses anim_ The save function saves the GIF visual animation
Assertion of unittest framework