当前位置:网站首页>Several guesses about the design of Tencent conference number

Several guesses about the design of Tencent conference number

2022-06-23 23:31:00 bisal(Chen Liu)

It can be said that the epidemic has brought the greatest changes to our migrant workers , Home office , And this among them , The biggest impact on the working mode is even the online meeting , It used to be a conference room , Face to face communication , Now it's all on one screen , If there is a video conference, it's OK , Can see each other , It's like a conference , But most of them are meetings without video , Just facing a screen , As a friend said , The keynote speaker of this kind of meeting , Like a " An angry anchor ", Talk about things with everyone , No eye contact , No feedback , It's really embarrassing .

Since online meetings are so popular , There are many old 、 New online conferencing software , One of the most commonly used , It may be the Tencent conference , Simple 、 practical 、 Stable , Is the reason why many people choose him .

Everybody knows , Tencent meeting , Whether it's joining a meeting , Or create a quick meeting , Or book a meeting , Are identified by a conference number ,

d576c8a0c6a9aeb77cdf967223dd4fb6.png

If careful friends will notice , This conference number is a 9 Digit number , Suppose everyone can be 0-9 altogether 10 A digital ,10 Of 9 Power , yes 1000000000,10 Billion . let me put it another way , He should also support 10 Billion online meetings .

I wonder if you have tried , For example, set a 09:00-09:30 Conference , But actually 09:00 Before ,09:30 after , You can log in , And I tried to log in for a month ( This random measurement , Not necessarily very accurate ) Previous meeting number , But longer , The conference number is invalid .

therefore , According to the calculation just now , Although support 10 Billion conference numbers , But will there be any repetition of these numbers , Or because I have used all these numbers , It is forbidden to create new meetings ?

From the perspective of product function , This should not be possible . But how to achieve , I can't find any information , But you can make some guesses , In fact, it is related to system design .

(1) Each conference number , It should be created randomly , Because it's out of order , So it's not possible to just use something like a database sequence Or distributed auto increment ID The plan , It is likely to be a hybrid number generator scheme , For safety's sake , It also needs to be random . Functions like avoiding duplication may use sequences 、snowflake Equally distributed self increasing ID Characteristics of , But the scope is certain (10 Billion ), So there may be a design of weight judgment , For example, by caching ,key/value To judge the severity .

(2) 10 Billion is a definite value , This requires that each generated conference number , Validity period is required , A simple and crude way is to give a specific period of time , For example, starting from creation , Valid for one month . another " grace " The plan , Maybe just like Oracle And other relational databases LRU Linked list design , Least recently used queue , According to the current usage of the conference number , Dynamically eliminate the least used conference numbers , This will give users a good experience , But relatively speaking , In design and Implementation , It will be more complicated .

The stability of Tencent conference 、 Functional practicality 、 Ease of operation , Very outstanding , In fact, these are the foundations of similar software , Are the functions that users need most , Compared with many " tart " Similar software , At the product design level, there are still many places worth learning .

Recently updated articles :

Mystery of power bank

China Super League and Guoan in the new season , Through the thorns

Oracle Of CTAS Can I bring constraints and other attributes to the new table ?

Fault tree analysis (FTA)

" Red Alert " Game open source code brings us a shock

Article classification and indexing :

official account 1000 Article classification and index

原网站

版权声明
本文为[bisal(Chen Liu)]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206232009313752.html