z-logo
open-access-imgOpen Access
HBase Connection Dynamic Keeping Method Based on Reactor Pattern
Author(s) -
Xinming Lai,
Haitao Wang,
Jing Zhao,
Fan Zhang,
Chao Zhao,
Gang Wu
Publication year - 2020
Publication title -
journal of physics. conference series
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.21
H-Index - 85
eISSN - 1742-6596
pISSN - 1742-6588
DOI - 10.1088/1742-6596/1544/1/012122
Subject(s) - callback , connection (principal bundle) , computer science , block (permutation group theory) , queue , operating system , reuse , computer network , distributed computing , real time computing , engineering , mathematics , geometry , structural engineering , waste management
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.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here