HBase Connection Dynamic Keeping Method Based on Reactor Pattern
Xinming Lai, Haitao Wang, Jing Zhao, Fan Zhang, Chao Zhao, Gang Wu · Journal of Physics Conference Series · 2020
Abstract This paper proposes a HBase connection dynamic keeping method based on the Reactor mode. This method uses the Reactor mode to implement the client connection maintenance mechanism based on the NSQ message queue. By only creating the TCP control block of the client connection and buffering it to the NSQ queue, it improves the response of the user connection and the concurrent processing capacity. By monitoring the active state of the connected TCP block in the message queue, the real-time processing capability of the connection is guaranteed. The reuse of HBase connection objects is realized through the listen-back callback mechanism, and the CPU and memory resource utilization is improved by dynamically adjusting the size of the connection object pool.