2017 © Pedro Peláez
 

library handlersocket-library

HandlerSocket protocol wrapper on native PHP

image

konstantin-kuklin/handlersocket-library

HandlerSocket protocol wrapper on native PHP

  • Saturday, April 7, 2018
  • by KonstantinKuklin
  • Repository
  • 7 Watchers
  • 44 Stars
  • 118 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 8 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads, (*1)

Rus docs, (*2)

Introduction

HandlerSocket plugin for MySQL has been presented in 2010., (*3)

Plugin greatly speeds up the data stored in MySQL, and allowed to use this database as a NoSQL storage without the overhead associated with using SQL., (*4)

This library is an implementation of the protocol HandlerSocket completely written in PHP., (*5)

As a result, using HandlerSocket can provide much better performance for certain applications that using normal SQL application protocols., (*6)

Motivation

In the yard in 2014, and is still the tool and manuals on the use HandlerSocket similar to the experimental or under development., (*7)

I had not liked a ready-made solution, so I decided to write my bike and ride it., (*8)

Why you should use HandlerSocket:, (*9)

  • data consistency;
  • high performance;
  • сompact protocol;
  • сompatible with MySQL replication;
  • comes out of the box in PerconaServer, MariaDB.

The table below shows a comparison of the performance of different programs allow you to save or to load data., (*10)

approx qps User CPU util System CPU util
MySQL via SQL 105,000 60% 28%
Memcached 420,00 8% 88%
MySQL via HandlerSocket 750,000 45% 53%

How to install

How to install HandlerSocket can be found on the internet or just download PerconaServer or MariaDB., (*11)

Start using HandlerSocketLibrary is very simple., (*12)

Add to composer.json:, (*13)

konstantin-kuklin/handlersocket-library": "dev-master", (*14)

How to connect

Open connection to the read only socket and to authorize the password 'passwordRead'., (*15)

$reader = new \HS\Reader('localhost', 9998, 'passwordRead');

Open connection to the write socket, no password is specified., (*16)

$writer = new \HS\Writer('localhost', 9999);

Queries

Benchmarks

Comparison with the basic libraries for PHP., (*24)

The list will participate HSPHP, written in PHP, HandlerSocket, written in C., (*25)

HSPHP (PHP) HandlerSocket (c-extension) HandlerSocketLibrary (PHP), (*26)

How to help

I would be glad to see your suggestions, feedback and reports of bugs found., (*27)

If the program is interesting, it'll expand its functionality., (*28)

License

This library is available under the MIT license., (*29)

The Versions

07/04 2018

dev-update_deps

dev-update_deps https://github.com/KonstantinKuklin/HandlerSocketLibrary

HandlerSocket protocol wrapper on native PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantin Kuklin

php library handlersocket handler-socket

20/06 2015

dev-master

9999999-dev https://github.com/KonstantinKuklin/HandlerSocketLibrary

HandlerSocket protocol wrapper on native PHP

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

php library handlersocket handler-socket

19/05 2015

0.1.0

0.1.0.0 https://github.com/KonstantinKuklin/HandlerSocketLibrary

HandlerSocket protocol wrapper on native PHP

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

php library handlersocket handler-socket

17/05 2015

0.0.6

0.0.6.0 https://github.com/KonstantinKuklin/HandlerSocketLibrary

HandlerSocket protocol wrapper on native PHP

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

php library handlersocket handler-socket

07/10 2014

0.0.5

0.0.5.0 https://github.com/KonstantinKuklin/HandlerSocketLibrary

HandlerSocket protocol wrapper on native PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantin Kuklin

php library handlersocket handler-socket

07/09 2014

0.0.4

0.0.4.0 https://github.com/KonstantinKuklin/HandlerSocketLibrary

HandlerSocket protocol wrapper on native PHP

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

php library handlersocket handler-socket

29/08 2014

0.0.3

0.0.3.0 https://github.com/KonstantinKuklin/HandlerSocketLibrary

HandlerSocket protocol wrapper on native PHP

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

php library handlersocket handler-socket

31/07 2014

0.0.2

0.0.2.0 https://github.com/KonstantinKuklin/HandlerSocketLibrary

HandlerSocket protocol wrapper on native PHP

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

php library handlersocket handler-socket

29/07 2014

0.0.1

0.0.1.0 https://github.com/KonstantinKuklin/HandlerSocketLibrary

HandlerSocket protocol wrapper on native PHP

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

php library handlersocket handler-socket