DeNA / HandlerSocket-Plugin-for-MySQL

HandlerSocket is a NoSQL plugin for MySQL, working as a daemon inside the mysqld process, to accept tcp connections, and execute requests from clients. HandlerSocket does not support SQL queries; instead it supports simple CRUD operations on tables.
Other
1.13k stars 150 forks source link

Improve docs #109

Open crocodile2u opened 8 years ago

crocodile2u commented 8 years ago

I have written an article which has a description of the HS protocol with examples: http://wk-photo.ru/en/events/view/handlersocket-protocol-explained/ . If you find it useful, I could add it to HS wiki. Also, I have made another PHP extension for communicating with HS: https://github.com/crocodile2u/zhandlersocket

Cheers.

KonstantinKuklin commented 8 years ago

what the difference between your ext and others?

crocodile2u commented 8 years ago

It comes as a PHP extension and it has a cleaner interface (OK, that's arguable, and that is just my opinion). It takes care of managing open indexes for you. It creates a read index for read operations and a write index for write operations, and it happens automatically (but in case there is a write index open, it will be used for reads either).

KonstantinKuklin commented 8 years ago

It is the first ext written on Zephir as I know, how fast it? Сould u show benchmarks with some other library implementation?

crocodile2u commented 8 years ago

That's a fair question. I doubt that, for library like this, where there is no CPU-intensive calculations but mostly network operations, there will be a huge gain in performance (as compared to a PHP implementation). A benchmark would be nice to have though, will work on it in the upcoming couple of weeks.