Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 2.39 KB

golang_analysis.md

File metadata and controls

47 lines (39 loc) · 2.39 KB

流量统计系统

源码仓库:这里


流量统计系统架构

+--------------------------+                        +---------------------+
|                          |                        |                     |
|   read log line by line  |  Channel(logChannel)   |     logConsumer     |
|                          +----------------------->+                     |
+--------------------------+                        +---------+-----------+
                                                              |
                                                              |
                                                              |  Channel(pvChannel uvChannel ...)
                                                              |
                                                              |
                                                              v
                                           +------------------+-----------------------+
                                           |                                          |
                                           |     Counter(pvCounter uvCounter ...)     |
                                           |                                          |
                                           +------------------+-----------------------+
                                                              |
                                                              |
                                                              |  Channel(storageChannel ...)
                                                              |
                                                              |
                                                              v
                                          +-------------------+--------------------------+
                                          |                                              |
                                          |       dataSorage(into Redis/Hbase ...)       |
                                          |                                              |
                                          +----------------------------------------------+

感谢