SlideShare a Scribd company logo
HandlerSocket
HandlerSocket
MySQL Plugin
Handler
第三回月次セミナー(公開版)
Handler
Handler
HandlerSocket
HandlerSocket plugin
   Client for Java
HandlerSocket plugin
   Client for Java




    http://code.google.com/p/handlersocketforjava/
HandlerSocket plugin
   Client for Java




https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/blob/master/README
HandlerSocket
HandlerSocket
	
    	
    	
        HandlerSocket hs = new HandlerSocket();
        try{
                                                                     (Java)
	   	   	    System.out.println("open connection.");
	   	   	    hs.open(host, port);
	   	   	    System.out.println("open index.");
	   	   	    hs.command().openIndex(id, db, table, index, fieldList);
	   	   	    System.out.println("operations.");
	   	   	    for(int i = 0 ; i <= size ; i++){
	   	   	    	    if(i != 0 && i % loop == 0){
	   	   	    	    	    System.out.println("tcommand size : " + hs.getCommandSize() + "byte");
	   	   	    	    	    List<HandlerSocketResult> results = hs.execute();
	   	   	    	    	    System.out.println("tresult size : " + hs.getCurrentResponseSize() + "byte");
	   	   	    	    	    if(verbose){
	   	   	    	    	    	    System.out.println("result.");
	   	   	    	    	    	    for(HandlerSocketResult result : results){
	   	   	    	    	    	    	    System.out.println("t" + result.toString());
	   	   	    	    	    	    }
	   	   	    	    	    }
	   	   	    	    	    if(i == size)
	   	   	    	    	    	    break;
	   	   	    	    }
	   	   	    	    String[] keys = new String[]{String.valueOf(i)};
	   	   	    	    hs.command().find(id, keys);

	   	   	   }
	
	   	   }finally{
	   	   	    System.out.println("close connection.");
	   	   	    hs.close();
	   	   }
HandlerSocket
第三回月次セミナー(公開版)
Using MySQL as a NoSQL - A
   story for exceeding 750,000 qps
               on a commodity server
http://yoshinorimatsunobu.blogspot.com/2010/10/using-mysql-as-nosql-story-for.html
第三回月次セミナー(公開版)
Test Case1:TableA

                                                       JDBC(SQL)
                                                       HandlerSocket
                   400

                   300
average time(μs)




                   200

                   100

                     0
                         0   2500        5000            7500          10000
                                    query per second
Test Case2:TableB

                                                          JDBC(SQL)
                                                          HandlerSocket
                    70

                   52.5
average time(μs)




                    35

                   17.5

                     0
                          0    10000        20000          30000          40000
                                       query per second
Test Case3:TableB

                                                        JDBC(SQL)
                                                        HandlerSocket
                   1400

                   1050
average time(μs)




                    700

                    350

                      0
                          0    425         850            1275          1700
                                     query per second
monitoring result
(vmstat-disk io)
monitoring result
(vmstat-context switch)
monitoring result
 (vmstat-CPU)
第三回月次セミナー(公開版)
第三回月次セミナー(公開版)
第三回月次セミナー(公開版)

More Related Content

PDF
Mongodb debugging-performance-problems
PDF
MongoDB Performance Debugging
PPTX
Python queue solution with asyncio and kafka
DOCX
Java assgn
PDF
MySQL flexible schema and JSON for Internet of Things
DOCX
Batch processing Demo
PPTX
Azure Durable Funkiness - .NET Oxford June 2018
PDF
MongoDB Oplog入門
Mongodb debugging-performance-problems
MongoDB Performance Debugging
Python queue solution with asyncio and kafka
Java assgn
MySQL flexible schema and JSON for Internet of Things
Batch processing Demo
Azure Durable Funkiness - .NET Oxford June 2018
MongoDB Oplog入門

What's hot (19)

PDF
20110514 mongo dbチューニング
PPTX
What is row level isolation on cassandra
PDF
Google App Engine Developer - Day3
PDF
MongoDB Indexing Constraints and Creative Schemas
PDF
BITS: Introduction to relational databases and MySQL - SQL
PDF
MongoUK - PHP Development
PPTX
MiamiJS - The Future of JavaScript
PDF
Fun Teaching MongoDB New Tricks
PPT
jQuery Datatables With MongDb
DOCX
Format xls sheets Demo Mode
TXT
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
PDF
JavaSE7 Launch Event: Java7xGroovy
PDF
Machine learning 2 - Neural Networks
PDF
Node 관계형 데이터베이스_바인딩
PDF
Lazy evaluation drupal camp moscow 2014
PPTX
Windows Server 2012 Active Directory Recovery
PDF
DEF CON 23 - amit ashbel and maty siman - game of hacks
PPTX
Code refactoring of existing AutoTest to PageObject pattern
20110514 mongo dbチューニング
What is row level isolation on cassandra
Google App Engine Developer - Day3
MongoDB Indexing Constraints and Creative Schemas
BITS: Introduction to relational databases and MySQL - SQL
MongoUK - PHP Development
MiamiJS - The Future of JavaScript
Fun Teaching MongoDB New Tricks
jQuery Datatables With MongDb
Format xls sheets Demo Mode
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
JavaSE7 Launch Event: Java7xGroovy
Machine learning 2 - Neural Networks
Node 관계형 데이터베이스_바인딩
Lazy evaluation drupal camp moscow 2014
Windows Server 2012 Active Directory Recovery
DEF CON 23 - amit ashbel and maty siman - game of hacks
Code refactoring of existing AutoTest to PageObject pattern
Ad

Similar to 第三回月次セミナー(公開版) (20)

PPTX
Mysql handle socket
PDF
HandlerSocket plugin Client for Javaとそれを用いたベンチマーク
PPT
HandlerSocket - A NoSQL plugin for MySQL
PPT
HandlerSocket plugin for MySQL (English)
PDF
ioDrive de benchmarking 2011 1209_zem_distribution
PDF
HandlerSocket
KEY
MySQLでNoSQL - アメーバピグでのNoSQLの実例
PPTX
Database sharding the right way: еasy, reliable, and open source (Esen Sagynov)
PPTX
Database Sharding the Right Way: Easy, Reliable, and Open source - HighLoad++...
PDF
Zero-Copy Event-Driven Servers with Netty
PDF
ソーシャルアプリ向けシステム監視運用の勘所
PDF
Modernización del manejo de datos con v fabric
PDF
Scaling with event-based webservers
ODP
HTTP, JSON, JavaScript, Map&Reduce built-in to MySQL
PDF
NoSQL with MySQL
PDF
Betting On Data Grids
PDF
PDF
Methods of NoSQL database systems benchmarking
PDF
Nio
PDF
Torus brochure financial services
Mysql handle socket
HandlerSocket plugin Client for Javaとそれを用いたベンチマーク
HandlerSocket - A NoSQL plugin for MySQL
HandlerSocket plugin for MySQL (English)
ioDrive de benchmarking 2011 1209_zem_distribution
HandlerSocket
MySQLでNoSQL - アメーバピグでのNoSQLの実例
Database sharding the right way: еasy, reliable, and open source (Esen Sagynov)
Database Sharding the Right Way: Easy, Reliable, and Open source - HighLoad++...
Zero-Copy Event-Driven Servers with Netty
ソーシャルアプリ向けシステム監視運用の勘所
Modernización del manejo de datos con v fabric
Scaling with event-based webservers
HTTP, JSON, JavaScript, Map&Reduce built-in to MySQL
NoSQL with MySQL
Betting On Data Grids
Methods of NoSQL database systems benchmarking
Nio
Torus brochure financial services
Ad

More from moai kids (20)

PDF
中国最新ニュースアプリ事情
PDF
FluentdとRedshiftの素敵な関係
PDF
Twitterのsnowflakeについて
PDF
Programming Hive Reading #4
PDF
Programming Hive Reading #3
PDF
"Programming Hive" Reading #1
PDF
Casual Compression on MongoDB
PDF
Introduction to MongoDB
PDF
Hadoop Conference Japan 2011 Fallに行ってきました
PDF
HBase本輪読会資料(11章)
PDF
snappyについて
PDF
第四回月次セミナー(公開版)
PDF
Pythonで自然言語処理
PDF
Yammer試用レポート(公開版)
PDF
掲示板時間軸コーパスを用いたワードトレンド解析(公開版)
PDF
中国と私(仮題)
PDF
不自然言語処理コンテストLT資料
PDF
n-gramコーパスを用いた類義語自動獲得手法について
KEY
Analysis of ‘lang-8’
PDF
Androidの音声認識とテキスト読み上げ機能について
中国最新ニュースアプリ事情
FluentdとRedshiftの素敵な関係
Twitterのsnowflakeについて
Programming Hive Reading #4
Programming Hive Reading #3
"Programming Hive" Reading #1
Casual Compression on MongoDB
Introduction to MongoDB
Hadoop Conference Japan 2011 Fallに行ってきました
HBase本輪読会資料(11章)
snappyについて
第四回月次セミナー(公開版)
Pythonで自然言語処理
Yammer試用レポート(公開版)
掲示板時間軸コーパスを用いたワードトレンド解析(公開版)
中国と私(仮題)
不自然言語処理コンテストLT資料
n-gramコーパスを用いた類義語自動獲得手法について
Analysis of ‘lang-8’
Androidの音声認識とテキスト読み上げ機能について

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Approach and Philosophy of On baking technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
cuic standard and advanced reporting.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Chapter 3 Spatial Domain Image Processing.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
NewMind AI Monthly Chronicles - July 2025
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Unlocking AI with Model Context Protocol (MCP)
Agricultural_Statistics_at_a_Glance_2022_0.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MYSQL Presentation for SQL database connectivity
Diabetes mellitus diagnosis method based random forest with bat algorithm
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25 Week I

第三回月次セミナー(公開版)

  • 9. HandlerSocket plugin Client for Java
  • 10. HandlerSocket plugin Client for Java http://code.google.com/p/handlersocketforjava/
  • 11. HandlerSocket plugin Client for Java https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/blob/master/README
  • 13. HandlerSocket HandlerSocket hs = new HandlerSocket(); try{ (Java) System.out.println("open connection."); hs.open(host, port); System.out.println("open index."); hs.command().openIndex(id, db, table, index, fieldList); System.out.println("operations."); for(int i = 0 ; i <= size ; i++){ if(i != 0 && i % loop == 0){ System.out.println("tcommand size : " + hs.getCommandSize() + "byte"); List<HandlerSocketResult> results = hs.execute(); System.out.println("tresult size : " + hs.getCurrentResponseSize() + "byte"); if(verbose){ System.out.println("result."); for(HandlerSocketResult result : results){ System.out.println("t" + result.toString()); } } if(i == size) break; } String[] keys = new String[]{String.valueOf(i)}; hs.command().find(id, keys); } }finally{ System.out.println("close connection."); hs.close(); }
  • 16. Using MySQL as a NoSQL - A story for exceeding 750,000 qps on a commodity server http://yoshinorimatsunobu.blogspot.com/2010/10/using-mysql-as-nosql-story-for.html
  • 18. Test Case1:TableA JDBC(SQL) HandlerSocket 400 300 average time(μs) 200 100 0 0 2500 5000 7500 10000 query per second
  • 19. Test Case2:TableB JDBC(SQL) HandlerSocket 70 52.5 average time(μs) 35 17.5 0 0 10000 20000 30000 40000 query per second
  • 20. Test Case3:TableB JDBC(SQL) HandlerSocket 1400 1050 average time(μs) 700 350 0 0 425 850 1275 1700 query per second

Editor's Notes