How to access it flexibly and efficiently?
platform
dynamic
How can I reduce response time and improve throughput?
Use storage and caching wisely
As shown in the figure below, the read time of different storage is very different. You should make good use of different storage, and use the storage with the shortest time as possible
The following figure shows a benchmark performance test of hbase. Do not ignore hbase. It can access massive data and respond in a very short time, which is a powerful tool for improving the performance of risk control systems. The most important accumulated data of current risk control systems is accessed based on hbase
asynchronous
Here is a practical example, in the process of pressure test, found that the CPU sy and wa is very high, generally can be judged thread is too much, and waste in the thread, according to observation, enable asynchronous thread calls three external call time is not low, so the branch thread waiting time is too long, lead to take up a lot of threads waiting for IO, thread also frequent switching.
Based on dynamic process configuration, sy and WA are greatly reduced and no longer overwhelmed by merging the three external calls in the main system into one, while the remaining two calls are continued after Kafka decoupling.
Stand-alone TPS 2644.6 – > 3079
Average single machine response time 149.3->126.03
Single-player TPS 3,079 ->3,686.1
Average single machine response time 126.03->79.35
How to deal with big Data?
Incremental thinking
Massive association relationship query
• Problem: In relational query, a large amount of data is often found from a few simple associations. How to process a large amount of data, sort it, paginate it for manual investigation?
How to maintain system stability?