当前位置:网站首页>Common short chain design methods

Common short chain design methods

2022-07-07 09:00:00 bboyzqh

Short chain design is divided into short chain generation and query , There are two ways to generate short chains : Hash 、 Self increasing ID The way , Short chain queries mainly deal with high concurrency scenarios , May adopt cdn、 cache 、 Current limiting, etc . The details are as follows: :

 

The actual business scenario will be more complex than the above process , The framework cannot escape the above two ways . in addition , There are two more points to consider :

The first point : The server needs to verify the validity of the short chain first , It mainly includes :
1. Whether letters and numbers
2. Whether to splice according to the specified business rules ( Used to filter illegal requests )

Second point : Is there a failure scenario for the short chain ? Depending on the specific business scenario

Reference resources :
1. High performance short chain design :https://mp.weixin.qq.com/s/U_by46CYkM2UzwzyBfxIxA
2. Hands on the court slider

Welcome to WeChat official account. : Fang Chen's blog

原网站

版权声明
本文为[bboyzqh]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130629348229.html