当前位置:网站首页>Modeling essays series 124 a simple coding method
Modeling essays series 124 a simple coding method
2022-07-02 01:26:00 【yukai08008】
explain
Make an extension based on the three bit coding method mentioned above , In this way, we can flat code in a relatively simple way .
Content
After constructing the processing and analysis system with microservices , Naturally, we will encounter the problem of differential naming . Now suppose we need to monitor all running microservices , Real time data usage redis Storage , Log data usage mongo Storage .
How to code so that we can quickly locate the corresponding variables , Instead of looking in the document ?
The three bit coding principle was mentioned before , That is to say, the passing depth is 3 The coding of can accurately distinguish and express the keys we want to find . But this definition needs to be expanded , If the service business is 「 Outside 」, Then our service is 「 Inside 」.
Coding is not just for internal , Also include outside . So it should be expanded to 2X3
In the form of .
for example : A business project A1, There is a sub business below A2 Of A3 Indicators are through internal projects B1 The following functions B2 Service , There is B3 Under the index , The value is Value.
Then the complete code is A1.A2.A3.B1.B2.B3:Value
. Each of them A perhaps B They are all composed of alphanumeric and underlined . More information can be expressed by underlining , for example B3_int
, Indicates that this indicator is an integer value .
As we go AB Test You can also quickly view different results through this coding method ,A1.A2.A3.*
, It can be said that , This is a business level statistical observation .
边栏推荐
- Using tabbar in wechat applet
- Entrepreneurship is a little risky. Read the data and do a business analysis
- Learn C language from scratch day 025 (maze)
- Basic usage of shell script
- Leetcode, 3 repeatless longest subsequence
- 969 interlaced string
- Convolutional neural network (including code and corresponding diagram)
- 关于ASP.NET CORE使用DateTime日期类型参数的一个小细节
- 电商系统中常见的9大坑,你踩过没?
- [IVX junior engineer training course 10 papers to get certificates] 03 events and guessing numbers games
猜你喜欢
6-2漏洞利用-ftp不可避免的问题
[rust web rokcet Series 2] connect the database and add, delete, modify and check curd
Leetcode, 3 repeatless longest subsequence
[eight sorts ②] select sort (select sort, heap sort)
Single chip microcomputer -- hlk-w801 transplant NES simulator (III)
LeetCode、3无重复最长子序列
Develop a simple login logic based on SSM
Data visualization in medical and healthcare applications
Learning notes 25 - multi sensor front fusion technology
Zak's latest "neural information transmission", with slides and videos
随机推荐
969 interlaced string
With the acquisition of Xilinx, AMD is more than "walking on two legs" | Jiazi found
Datawhale community blackboard newspaper (issue 1)
Leetcode 45 Jumping game II (2022.02.14)
Global and Chinese market of avionics systems 2022-2028: Research Report on technology, participants, trends, market size and share
Load and domcontentloaded in JS
Architecture evolution from MVC to DDD
Design and control of multi rotor aircraft (VII) -- sensor calibration and measurement model
Zak's latest "neural information transmission", with slides and videos
Learn C language from scratch day 025 (maze)
Global and Chinese markets for freight and logistics 2022-2028: Research Report on technology, participants, trends, market size and share
Altium designer measure distance (ctrl+m)
Develop a simple login logic based on SSM
error: . repo/manifests/: contains uncommitted changes
The first "mobile cloud Cup" empty publicity meeting, looking forward to working with developers to create a new world of computing!
How can I batch produce the same title for the video?
Datawhale 社区黑板报(第1期)
Day 13 of hcip (relevant contents of BGP agreement)
Two TVs
Geek DIY open source solution sharing - digital amplitude frequency equalization power amplifier design (practical embedded electronic design works, comprehensive practice of software and hardware)