{"id":20836292,"url":"https://github.com/igrigorik/em-handlersocket","last_synced_at":"2025-05-08T02:38:07.094Z","repository":{"id":62557973,"uuid":"1236796","full_name":"igrigorik/em-handlersocket","owner":"igrigorik","description":"EventMachine HandlerSocket MySQL plugin for direct read/write of InnoDB tables","archived":false,"fork":false,"pushed_at":"2011-01-15T03:57:23.000Z","size":112,"stargazers_count":29,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T19:05:27.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.igvita.com/2011/01/14/handlersocket-the-nosql-mysql-ruby/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igrigorik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-10T03:20:44.000Z","updated_at":"2023-02-28T15:35:38.000Z","dependencies_parsed_at":"2022-11-03T06:45:30.405Z","dependency_job_id":null,"html_url":"https://github.com/igrigorik/em-handlersocket","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fem-handlersocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fem-handlersocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fem-handlersocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fem-handlersocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igrigorik","download_url":"https://codeload.github.com/igrigorik/em-handlersocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252988045,"owners_count":21836448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T00:29:24.122Z","updated_at":"2025-05-08T02:38:07.074Z","avatar_url":"https://github.com/igrigorik.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EM-HandlerSocket\n\nEventMachine client for HandlerSocket MySQL plugin for direct read/write of InnoDB tables. This plugin bypasses any/all SQL parsing, query planner, and other MySQL locks, while giving you the advantage of InnoDB persistence, speed, and the network daemon! Best of all, HandlerSocket plugin runs alongside your regular MySQL engine, which means you still have the full advantage of a SQL console at your disposal.\n\n[HandlerSocket: The NoSQL MySQL \u0026 Ruby](http://www.igvita.com/2011/01/14/handlersocket-the-nosql-mysql-ruby/)\n\n## Features\n\n- Plays nicely with the (EventMachine) reactor\n- Find, Multi-find, Insert, Update, Delete support\n- No native extensions\n- Pipelined processing\n\n## Example: Open \u0026 Read from an InnoDB index\n\nOpen the PRIMARY key index on the widgets.user InnoDB table, and query for id == 1.\n\n    EM.run {\n      c = EM::HandlerSocket.new\n      idx = {:id =\u003e 0, :db =\u003e 'widgets', :table =\u003e 'user', :index_name =\u003e 'PRIMARY', :columns =\u003e 'user_name'}\n\n      d = c.open_index(idx)\n      d.callback do\n\n        d = c.query(:id =\u003e 0, :op =\u003e '=', :key =\u003e '1')\n        d.errback { p 'uh oh!' }\n        d.callback do |data|\n          p [\"received data\", data]\n        end\n      end\n    }\n\n## Resources\n\n- [HandlerSocket Protocol](https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/blob/master/docs-en/protocol.en.txt)\n- [HandlerSocket @ DeNA](http://yoshinorimatsunobu.blogspot.com/2010/10/using-mysql-as-nosql-story-for.html)\n\n# License\n\n(The MIT License)\nCopyright © 2011 Ilya Grigorik","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrigorik%2Fem-handlersocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figrigorik%2Fem-handlersocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrigorik%2Fem-handlersocket/lists"}