Web related

1. Generally, when some classes or tools need to be initialized, they can be done through listeners or servlets.

2. qps concept and calculation method:

transferred from
pv refers to the number of times the page has been viewed. For example, if you open a web page, then the pv of this website is added once;
tps is the number of transactions per second. For example, if a dml operation is performed, the corresponding tps will increase;
qps refers to the number of queries per second. For example, if a select operation is performed, the corresponding qps will increase.
For application A, each select query takes 1ms. If a connection is used, it will be executed continuously. It can be executed 1000 times in 1S, that is, 1000qps. For application B, each select query needs 100ms. It can be executed 10 times in 1S, that is, 10qps
Calculation (2/8 principle, that is, 80% of the work is completed in 20% of the time, 86400 is 24 hours): ( pv * 0.8 ) / (86400 * 0.2 ) = 139 (QPS)

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326619269&siteId=291194637