HBase provides various communication mechanisms for communicating with the datastore, and it's also designed to solve different types of scenario that can occur.
Using the REST server, we are channeling all the requests to HTablePool
, which provides efficiency in the following ways:
Efficient connection pool management.
If there is a case where an object is short-lived, it goes through the entire lifecycle of connection creation, such as connection preparation, preparing metadata, and then the actual transaction. This is totally avoided as the connection object is readily available.
Use of caching of the RegionServer information provides significant benefits.