Home Add NoSQL Capabilities to MySQL With the HandlerSocket Plugin

Add NoSQL Capabilities to MySQL With the HandlerSocket Plugin

Do you want to get the performance of a NoSQL database, but need to use MySQL (or the MySQL fork Percona Server)? DeNA developer Akira Higuchis’s HandlerSocket plugin adds NoSQL functionality to MySQL for handling tasks such as primary key lookups without caching. HandlerSocket runs as a daemon within MySQL mysqld process to simple CRUD operations on tables. It’s available for Linux-based installations of MySQL and is now included in Percona Server 5.1.52-12.3.

According to a blog post by DeNA developer (and former MySQL/Oracle employe) Yoshinori Matsunobu, HandlerSocket has the following advantages:

  • Supporting lots of query patterns
  • Can handle lots of concurrent connections
  • Extremely high performance
  • No duplicate cache
  • No data inconsistency
  • Crash-safe
  • SQL can be used from mysql clients
  • All operational benefits from MySQL
  • No need to modify/rebuild MySQL
  • Independent from storage engines

Matsunobu also notes the following disadvantages:

  • Need to learn HandlerSocket APIs
  • No security features
  • No benefit for HDD bound workloads

This seems like it could be a real game-changer in the database space as IT and developers wrestle with how to implement not-just-SQL solutions to various problems.

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the gambling and blockchain industries for major developments, new product and brand launches, game releases and other newsworthy events. Editors assign relevant stories to in-house staff writers with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.