{"id":2417,"date":"2013-07-19T14:51:53","date_gmt":"2013-07-19T05:51:53","guid":{"rendered":"http:\/\/aatljapan.wpengine.com\/?p=2417"},"modified":"2019-10-31T19:21:09","modified_gmt":"2019-10-31T10:21:09","slug":"http-client-performance-io","status":"publish","type":"post","link":"https:\/\/www.atlassian.com\/ja\/blog\/http-client-performance-io","title":{"rendered":"HTTP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9 &#8211; IO"},"content":{"rendered":"<p>\u6211\u3005\u306e\u6642\u4ee3\u306b\u304a\u3051\u308b\u3001\u672a\u89e3\u6c7a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u554f\u984c\u3068\u306f\u4f55\u3067\u3057\u3087\u3046\u304b\u3002\u65b0\u3057\u3044 HTTP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7d76\u3048\u305a\u767a\u751f\u3059\u308b\u3068\u3044\u3046\u4e8b\u5b9f\u304b\u3089\u8003\u3048\u308c\u3070\u3001HTTP \u306e\u547c\u3073\u51fa\u3057\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u4e00\u822c\u7684\u306b\u3001\u65b0\u3057\u3044\u6a5f\u80fd\u3084\u975e\u540c\u671f API \u304c\u6ce8\u76ee\u3055\u308c\u304c\u3061\u3067\u3059\u304c\u3001\u5b9f\u969b\u306e IO \u306e\u90e8\u5206\u3001\u7279\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u95a2\u3057\u3066\u306f\u3069\u3046\u3067\u3057\u3087\u3046\uff1f<\/p>\n<h3>\u3069\u3061\u3089\u304b\u3068\u3044\u3048\u3070\u8a73\u7d30\u306a\u30b1\u30fc\u30b9<\/h3>\n<p>\u6bd4\u8f03\u3059\u308b\u5074\u9762\u304c\u591a\u3059\u304e\u308b\u306e\u3067\u3001\u7dcf\u5408\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6bd4\u8f03\u306f\u884c\u3044\u307e\u305b\u3093\u3002\u79c1\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306f\u3001\u6f5c\u5728\u7684\u306b\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u65e9\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3044\u3046\u3001\u82e5\u5e72\u7d30\u304b\u3044\u5185\u5bb9\u3067\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u969b\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u304c\u30cd\u30c3\u30af\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002\u3067\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30b5\u30fc\u30d0\u30fc\u304c\u3042\u3063\u3066\u3001\u30d0\u30f3\u30c9\u5e45\u304c\u554f\u984c\u3067\u7121\u304f\u306a\u3063\u305f\u5834\u5408\u306f\u3069\u3046\u3067\u3057\u3087\u3046\u304b\uff1f IO vs NIO \u306e\u95a2\u4fc2\u306b\u5909\u5316\u306f\u3042\u308b\u3067\u3057\u3087\u3046\u304b\uff1f\u3053\u306e\u70b9\u306b\u95a2\u3057\u3066\u306f\u300cNIO \u306e\u65b9\u304c\u9065\u304b\u306b\u65e9\u3044\u300d\u3068\u3044\u3063\u305f\u3082\u306e\u304b\u3089\u300cIO \u306e\u65b9\u304c\u65e9\u3044\u304b\u3089\u3001\u3053\u308c\u304c\u65b0\u3057\u3044 NIO \u3060\u300d\u3068\u3044\u3063\u305f\u5642\u3084\u3001\u6642\u4ee3\u9045\u308c\u306e\u5185\u5bb9\u304c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306b\u3042\u3075\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u6e2c\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3>\u6e2c\u5b9a\u5bfe\u8c61<\/h3>\n<table style=\"margin: 20px;\">\n<tbody>\n<tr>\n<th style=\"font-weight: bold; padding: 10px 8px; border-bottom: 2px solid #CCC;\">Client<\/th>\n<th style=\"font-weight: bold; padding: 10px 8px; border-bottom: 2px solid #CCC;\">Version<\/th>\n<th style=\"font-weight: bold; padding: 10px 8px; border-bottom: 2px solid #CCC;\">Builds on<\/th>\n<th style=\"font-weight: bold; padding: 10px 8px; border-bottom: 2px solid #CCC;\">Language<\/th>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\"><a href=\"http:\/\/hc.apache.org\/httpcomponents-client-ga\/\" target=\"_blank\" rel=\"noopener noreferrer\">Apache httpcomponents-client<\/a><\/td>\n<td style=\"padding: 9px 8px 0px;\">4.2.5<\/td>\n<td style=\"padding: 9px 8px 0px;\">Java IO<\/td>\n<td style=\"padding: 9px 8px 0px;\">Java<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\"><a href=\"http:\/\/hc.apache.org\/httpclient-3.x\/\" target=\"_blank\" rel=\"noopener noreferrer\">Apache commons-httpclient<\/a> (discontinued)<\/td>\n<td style=\"padding: 9px 8px 0px;\">3.1<\/td>\n<td style=\"padding: 9px 8px 0px;\">Java IO<\/td>\n<td style=\"padding: 9px 8px 0px;\">Java<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\"><a href=\"http:\/\/hc.apache.org\/httpcomponents-asyncclient-dev\/\" target=\"_blank\" rel=\"noopener noreferrer\">Apache HttpAsyncClient<\/a> (dev)<\/td>\n<td style=\"padding: 9px 8px 0px;\">4.0-beta3<\/td>\n<td style=\"padding: 9px 8px 0px;\">Java NIO, async<\/td>\n<td style=\"padding: 9px 8px 0px;\">Java<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\"><a href=\"http:\/\/www.bigbeeconsultants.co.uk\/bee-client\" target=\"_blank\" rel=\"noopener noreferrer\">Bee<\/a><\/td>\n<td style=\"padding: 9px 8px 0px;\">0.21.0<\/td>\n<td style=\"padding: 9px 8px 0px;\">Java HTTP<\/td>\n<td style=\"padding: 9px 8px 0px;\">Scala<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\">soke-http<\/td>\n<td style=\"padding: 9px 8px 0px;\">3.0.0<\/td>\n<td style=\"padding: 9px 8px 0px;\"><a href=\"http:\/\/twitter.github.com\/finagle\/\" target=\"_blank\" rel=\"noopener noreferrer\">Finagle<\/a>, <a href=\"http:\/\/netty.io\/\" target=\"_blank\" rel=\"noopener noreferrer\">Netty<\/a><\/td>\n<td style=\"padding: 9px 8px 0px;\">Scala<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\"><a href=\"http:\/\/dispatch.databinder.net\/Dispatch.html\" target=\"_blank\" rel=\"noopener noreferrer\">Dispatch<\/a><\/td>\n<td style=\"padding: 9px 8px 0px;\">0.10.0<\/td>\n<td style=\"padding: 9px 8px 0px;\"><a href=\"https:\/\/github.com\/AsyncHttpClient\/async-http-client\" target=\"_blank\" rel=\"noopener noreferrer\">Ning Async HTTP Client<\/a>, Netty<\/td>\n<td style=\"padding: 9px 8px 0px;\">Scala<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\">cURL<\/td>\n<td style=\"padding: 9px 8px 0px;\">7.24.0<\/td>\n<td style=\"padding: 9px 8px 0px;\">x86_64-apple-darwin10.8.0<\/td>\n<td style=\"padding: 9px 8px 0px;\">C<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u30c6\u30b9\u30c8<\/h3>\n<p>\u79c1\u306f\u9694\u96e2\u3055\u308c\u305f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u306e\u5c02\u7528\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306b\u304a\u3044\u3066\u3067\u306f\u306a\u304f\u3001\u81ea\u5206\u306e\u30ef\u30fc\u30af\u30b9\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3044\u3046\u3001\u5c11\u3005\u975e\u79d1\u5b66\u7684\u306a\u65b9\u6cd5\u3092\u3068\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u88dc\u3046\u305f\u3081\u306b\u3001\u79c1\u306f\u7d4c\u6642\u7684\u306b\u4f55\u5ea6\u3082\u30c6\u30b9\u30c8\u30e9\u30f3\u3092\u5b9f\u884c\u3057\u3066\u304a\u308a\u3001\u305d\u306e\u5e73\u5747\u5316\u306b\u3088\u3063\u3066\u6709\u52b9\u306a\u50be\u5411\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u7d50\u679c\u3092\u898b\u308b\u3068\u3001\u8a18\u9332\u3055\u308c\u305f\u6642\u9593\u306b\u306f\u307b\u3068\u3093\u3069\u5dee\u7570\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u79c1\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e Nexus \u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30d0\u30a4\u30ca\u30ea\u30fc\u30d5\u30a1\u30a4\u30eb\u3092 3 \u3064\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table style=\"margin: 20px;\">\n<tbody>\n<tr>\n<th style=\"font-weight: bold; padding: 10px 8px; border-bottom: 2px solid #CCC;\">File<\/th>\n<th style=\"font-weight: bold; padding: 10px 8px; border-bottom: 2px solid #CCC;\">Size<\/th>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\">small<\/td>\n<td style=\"padding: 9px 8px 0px;\">~ 80 KB<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\">medium<\/td>\n<td style=\"padding: 9px 8px 0px;\">~ 7 MB<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 9px 8px 0px;\">large<\/td>\n<td style=\"padding: 9px 8px 0px;\">~ 30 MB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5404\u30c6\u30b9\u30c8\u306f\u3001Java \u4eee\u60f3\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u3064\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e API \u304c\u8a31\u53ef\u3059\u308b\u306e\u3068\u540c\u3058\u304f\u3001\u30c6\u30b9\u30c8\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u6210\u3068\u8d77\u52d5\u3092\u304f\u304f\u308a\u51fa\u3057\u3001\u30c7\u30a3\u30b9\u30af\u901f\u5ea6\u306b\u5bfe\u3059\u308b\u7d14\u7c8b\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6e2c\u5b9a\u3057\u3088\u3046\u3068\u3057\u307e\u3059\u3002OSX \u3067 JDK 1.6 \u3092\u5b9f\u884c\u3057\u3001\u5168\u3066\u306e\u66f8\u8fbc\u307f\u306f SSD \u3078\u3002<\/p>\n<h4>\u5c0f\u30d5\u30a1\u30a4\u30eb<\/h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-25872\" alt=\"http_io_perf_small\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_perf_small.png\" \/><\/p>\n<p>cURL \u306f\u30cd\u30a4\u30c6\u30a3\u30d6\u3067\u3042\u308b\u305f\u3081\u3001\u307b\u3068\u3093\u3069\u306e JVM \u30d9\u30fc\u30b9\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3088\u308a\u9065\u304b\u306b\u512a\u308c\u3066\u3044\u307e\u3059\u3002 commons-httpclient \u304c 2 \u756a\u76ee\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u304b\u3089\u8003\u3048\u308b\u3068\u3001\u3053\u3053\u3067\u306e\u6c7a\u5b9a\u8981\u7d20\u306f JVM \u306e\u8d77\u52d5\u3001\u63a5\u7d9a\u306e\u78ba\u7acb\u3068\u30ea\u30af\u30a8\u30b9\u30c8\u751f\u6210\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<h4>\u4e2d\u30d5\u30a1\u30a4\u30eb<\/h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-25873\" alt=\"http_io_perf_med\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_perf_med.png\" \/><\/p>\n<p>Bee \u306f\u304b\u306a\u308a\u306e\u30da\u30fc\u30b9\u3067\u305d\u306e\u5730\u6b69\u3092\u5931\u3063\u3066\u3044\u307e\u3059\u3002Apache \u306e\u975e\u540c\u671f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u65e2\u306b\u500d\u306e\u65e9\u3055\u3067\u3001\u4ed6\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306f\u4e2d\u7a0b\u5ea6\u3001\u3057\u304b\u3057\u4f9d\u7136\u3068\u3057\u3066 commons-httpclient \u304c\u6700\u901f\u3067\u3059\u3002<\/p>\n<h4>\u5927\u30d5\u30a1\u30a4\u30eb<\/h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-25874\" alt=\"http_io_perf_large\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_perf_large.png\" \/><\/p>\n<p>\u9762\u767d\u304f\u306a\u3063\u3066\u304f\u308b\u306e\u306f\u3053\u3053\u304b\u3089\u3067\u3059\u3002Apache \u306e\u975e\u540c\u671f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u3059\u3089 cURL \u306b\u52dd\u308b\u3088\u3046\u306b\u3001NIO \u306e\u4f4e\u6c34\u6e96\u306e IO \u64cd\u4f5c\u306b\u306f\u5909\u5316\u304c\u73fe\u308c\u3066\u304d\u3066\u3044\u307e\u3059\u3002Bee \u306f\u9065\u304b\u5f7c\u65b9\u306b\u3042\u308a\u3001\u307e\u305f\u8208\u5473\u6df1\u3044\u4e8b\u306b\u3001\u53e4\u5178\u7684\u306a Apache \u304c\u4eca\u5ea6\u306f Netty \u30d9\u30fc\u30b9\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7834\u308a\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u7dcf\u5408\u7684\u306a\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u6642\u9593\u306b\u304a\u3051\u308b\u52dd\u8005\u306f\u4f9d\u7136\u3068\u3057\u3066\u3001\u53e4\u5178\u7684\u306a IO \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3001\u958b\u767a\u7d42\u4e86\u3068\u306a\u3063\u305f commons-httpclient \u3067\u3059\u3002<\/p>\n<h3>NIO \u306b\u3064\u3044\u3066\u4e00\u8a00<\/h3>\n<p>\u4e2d\u8eab\u3092\u53d6\u308a\u4e0a\u3052\u308b\u524d\u306b\u3001NIO \u306b\u3064\u3044\u3066\u4e00\u8a00\u3002NIO \u3068\u306f\u300c\u30ce\u30f3\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0 IO\u300d\u306e\u7565\u79f0\u3060\u3068\u3088\u304f\u3044\u308f\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u660e\u3089\u304b\u306b\u300c\u65b0\u3057\u3044 IO API\u300d\u306e\u7565\u3067\u3057\u3087\u3046\u3002\u3061\u306a\u307f\u306b\u3001NIO.2\u306f\u3069\u3046\u3084\u3089\u300c\u3082\u3063\u3068\u65b0\u3057\u3044 IO API\u300d\u306e\u3088\u3046\u3067\u3059\u3002\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u306f\u3053\u308c\u3067\u6c7a\u307e\u308a\u3067\u3059\u306d\u3002<\/p>\n<p>\u65e2\u306b\u77e5\u3089\u308c\u3066\u3044\u308b\u30ce\u30f3\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0\uff0f\u975e\u540c\u671f\u306e\u5074\u9762\u4ee5\u5916\u306b\u3082\u3001NIO \u306b\u306f OS \u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u5b9f\u88c5\u306b\u3088\u304f\u4f3c\u305f\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u884c\u3046\u3001\u975e\u5e38\u306b\u52b9\u7387\u7684\u304b\u3064\u4f4e\u6c34\u6e96\u306e IO \u64cd\u4f5c\u304c\u5927\u91cf\u306b\u5099\u308f\u3063\u3066\u3044\u307e\u3059\u3002\u300c\u53e4\u5178\u7684\u300d\u306a IO \u304c\u3001\u30e1\u30e2\u30ea\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u30ab\u30fc\u30cd\u30eb\uff0f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u304b\u3089\u3001\u30e6\u30fc\u30b6\u30fc\uff0f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d0\u30c3\u30d5\u30a1\u3001\u305d\u3057\u3066\u518d\u3073\u30ab\u30fc\u30cd\u30eb\uff0f\u30d5\u30a1\u30a4\u30eb\u3078\u3068\u30b3\u30d4\u30fc\u3057\u3066\u3044\u308b\u4e2d\u3001NIO \u306a\u3089\u3070\u8907\u6570\u306e\u30d0\u30c3\u30d5\u30a1\u30b3\u30d4\u30fc\u3084\u30ab\u30fc\u30cd\u30eb\uff0f\u30e6\u30fc\u30b6\u30fc\u9593\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30a4\u30c3\u30c1\u3092\u56de\u907f\u3057\u306a\u304c\u3089\u3053\u308c\u3092\u5927\u91cf\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n<p>NIO \u306e\u300c\u975e\u540c\u671f\u300d\u6027\u306e\u5074\u9762\u306f\u3001\u30ed\u30fc\u30fb\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u5411\u3051\u3068\u3044\u3046\u3088\u308a\u306f\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u7684\u306a\u6a5f\u80fd\u3067\u3059\u3002Netty \u3084 Grizzly \u306b\u79d8\u3081\u3089\u308c\u3066\u3044\u308b\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u306e\u8a2d\u5b9a\u306f\u3001\u3042\u307e\u308a\u5fd9\u3057\u304f\u306a\u3044\u63a5\u7d9a\u3092\u5927\u91cf\u306b\u6271\u308f\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u30b5\u30fc\u30d0\u30fc\u306b\u91cd\u5b9d\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u305d\u306e\u4e2d\u8eab<\/h3>\n<p>\u307e\u305a\u3001\u5927\u30d5\u30a1\u30a4\u30eb\u30c6\u30b9\u30c8\u3067\u6700\u3082\u9045\u304b\u3063\u305f Bee \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u8003\u5bdf\u3057\u307e\u3059\u3002\u5927\u534a\u306e\u6642\u9593\u306f JDK \u30af\u30e9\u30b9\u3067\u30d0\u30a4\u30c8\u306e\u30b3\u30d4\u30fc\u306b\u8cbb\u3084\u3055\u308c\u3066\u3044\u308b\u4ed6\u3001\u6700\u3082\u52a3\u60aa\u306a GC profile \u3082\u6709\u3057\u3066\u304a\u308a\u3001\u3053\u308c\u306f Apache \u306e\u975e\u540c\u671f\u306e\u500d\u306e\u30d4\u30fc\u30af\u30e1\u30e2\u30ea\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 (20MB vs 10MB):<\/p>\n<p><a title=\"HTTP Client Performance - IO\" href=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_bee.png\" target=\"_blank\" rel=\"lightbox[25578] noopener noreferrer\"><img decoding=\"async\" class=\"alignnone size-full wp-image-25880\" alt=\"http_io_bee\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_bee.png\" \/><\/a><\/p>\n<p>\u6b21\u306f soke-http \u3067\u3059\u304c\u3001\u3053\u308c\u306f Twitter \u306e Finagle \u306e\u30b9\u30ea\u30e0\u30e9\u30c3\u30d1\u30fc\u3067\u3042\u308a\u3001\u4e2d\u8eab\u306f Netty \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f NIO \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u3067\u3082\u304b\u306a\u308a\u306e\u91cf\u306e\u30d0\u30c3\u30d5\u30a1\u306e\u30b3\u30d4\u30fc\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a title=\"HTTP Client Performance - IO\" href=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_soke.png\" target=\"_blank\" rel=\"lightbox[25578] noopener noreferrer\"><img decoding=\"async\" class=\"alignnone size-full wp-image-25879\" alt=\"http_io_soke\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_soke.png\" \/><\/a><\/p>\n<p>\u3059\u3050\u5f8c\u308d\u306e 3 \u756a\u76ee\u306b\u63a7\u3048\u3066\u3044\u308b Dispatch \u306f\u3001Scala \u306e\u4e8b\u5b9f\u4e0a\u306e\u300c\u6a19\u6e96\u7684\u300dHTTP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u3059\u3002\u3053\u308c\u306f Twitter \u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3088\u308a\u3082\u52b9\u7387\u7684\u306b Netty \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001Ning \u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u8fbc\u307f\u306b\u512a\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p><a title=\"HTTP Client Performance - IO\" href=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_dispatch.png\" target=\"_blank\" rel=\"lightbox[25578] noopener noreferrer\"><img decoding=\"async\" class=\"alignnone size-full wp-image-25878\" alt=\"http_io_dispatch\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_dispatch.png\" \/><\/a><\/p>\n<p>\u304b\u306a\u308a\u610f\u5916\u3060\u3063\u305f\u306e\u304c Apache \u306e\u53e4\u5178\u7684\u306a HTTP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u3042\u308a\u3001\u305d\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306f\u975e\u5e38\u306b\u4f3c\u901a\u3063\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u3053\u308c\u306f\u666e\u901a\u306e\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u3064\u8003\u3048\u3089\u308c\u308b\u7406\u7531\u3068\u3057\u3066\u3001\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308b soke-http \u3068 Dispatch \u306b\u306f\u3001\u4e21\u65b9\u3068\u3082 GC \u30b5\u30a4\u30af\u30eb\u304c\u5bc4\u4e0e\u3057\u3066\u3044\u308b\u4e00\u65b9\u3067\u3001Apache \u306f\u4e8c\u3064\u3068\u3082\u95be\u5024\u672a\u6e80\u3092\u7dad\u6301\u3057\u3066\u3044\u305f\u3068\u3044\u3046\u70b9\u3067\u3059\u3002 <\/p>\n<p><a title=\"HTTP Client Performance - IO\" href=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_ahc.png\" target=\"_blank\" rel=\"lightbox[25578] noopener noreferrer\"><img decoding=\"async\" class=\"alignnone size-full wp-image-25877\" alt=\"http_io_ahc\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_ahc.png\" \/><\/a><\/p>\n<p>\u6700\u3082\u52b9\u7387\u7684\u306a IO \u306f\u3001Apache \u306e\u975e\u540c\u671f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30bc\u30ed\u30b3\u30d4\u30fc\u5b9f\u88c5\u306b\u3088\u308b\u3082\u306e\u3067\u3059\u3002\u3053\u308c\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u8fbc\u307f\u306b NIO \u3092\u5229\u7528\u3059\u308b\u4e8b\u3067\u3001C \u8a00\u8a9e\u306b\u3088\u3063\u3066\u66f8\u8fbc\u307e\u308c\u305f\u30c4\u30fc\u30eb\u3092\u8ca0\u304b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>IBM \u306f\u3001Apache \u306e\u975e\u540c\u671f\u304c\u5229\u7528\u3057\u3066\u3044\u308b\u300c<a href=\"http:\/\/www.ibm.com\/developerworks\/library\/j-zerocopy\/index.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u30bc\u30ed\u30b3\u30d4\u30fc<\/a>\u300d\u306e\u767a\u60f3\u3092\u3088\u304f\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a title=\"HTTP Client Performance - IO\" href=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_ahc_async.png\" target=\"_blank\" rel=\"lightbox[25578] noopener noreferrer\"><img decoding=\"async\" class=\"alignnone size-full wp-image-25876\" alt=\"http_io_ahc_async\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_ahc_async.png\" \/><\/a><\/p>\n<p>\u3057\u304b\u3057\u305d\u308c\u3067\u3082\u3001\u6700\u7d42\u7684\u306b\u306f commons-httpclient \u304c\u50c5\u304b\u306a\u304c\u3089\u306e\u30ea\u30fc\u30c9\u3067\u30c8\u30c3\u30d7\u306b\u7acb\u3061\u307e\u3059\u3002\u3069\u3046\u3044\u3046\u4e8b\u3067\u3057\u3087\u3046\u304b\uff1f\u307e\u305a\u3001IO \u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u305d\u306e\u5f8c\u4efb\u3067\u3042\u308b Apache HttpClient 4.0 \u3068\u540c\u6c34\u6e96\u3067\u3042\u308b\u70b9\u306f\u3001\u540c\u3058\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u9a5a\u304f\u306b\u8db3\u308a\u307e\u305b\u3093\u3002Apache \u306e\u975e\u540c\u671f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u304a\u3044\u3066\u306f IO \u3067\u52a3\u308a\u307e\u3059\u304c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ec\u30d9\u30eb\u3067\u306f\u3088\u308a\u65e9\u3044\u5b9f\u884c\u80fd\u529b\u3067\u3053\u308c\u3092\u88dc\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a title=\"HTTP Client Performance - IO\" href=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_ahc3.png\" target=\"_blank\" rel=\"lightbox[25578] noopener noreferrer\"><img decoding=\"async\" class=\"alignnone size-full wp-image-25875\" alt=\"http_io_ahc3\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/http_io_ahc3.png\" \/><\/a><\/p>\n<p>\u3053\u306e\u30c6\u30b9\u30c8\u3067\u306f\u3001\u5358\u4e00\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u306b\u5358\u4e00\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u4e8b\u304b\u3089\u3001\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u306e\u3001\u975e\u540c\u671f\u6027\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u5bfe\u3059\u308b\u504f\u308a\u304c\u306f\u3063\u304d\u308a\u3068\u898b\u3089\u308c\u307e\u3059\u3002\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306e\u30dd\u30a4\u30f3\u30c8\u306f IO \u306e\u90e8\u5206\u3067\u3042\u308a\u3001\u3053\u306e\u7d50\u679c\u304b\u3089\u306f NIO \u306e\u4f4e\u6c34\u6e96\u306e\u5b9f\u88c5\u304c\u53e4\u5178\u7684\u306a Java IO \u3088\u308a\u3082\u304b\u306a\u308a\u65e9\u3044\u4e8b\u304c\u660e\u78ba\u306b\u5206\u304b\u308a\u307e\u3059\u3002\u4e00\u65b9\u3001\u3053\u306e\u7d50\u679c\u304b\u3089\u306f\u5927\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u6271\u3063\u3066\u3044\u308b\u5834\u5408\u3067\u3082\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u304c\u52b9\u7387\u6027\u306b\u52a3\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e2\u30fc\u30c9\u306e\u5f71\u306b\u6f5c\u3093\u3067\u3057\u307e\u3046\u3068\u3044\u3046\u4e8b\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u306a\u305c\u3053\u308c\u304c\u91cd\u8981\u306a\u306e\u304b\uff1f<\/h3>\n<p>\u6982\u306d\u300130MB \u306e\u30b3\u30d4\u30fc\u306b\u306f 500ms \u3092\u8981\u3057\u307e\u3059\u304c\u3001\u3053\u308c\u81ea\u4f53\u306f\u53d6\u308b\u306b\u8db3\u3089\u306a\u3044\u6570\u5024\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u4f8b\u3048\u3070\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u306b\u95a2\u3057\u3066\u691c\u8a0e\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4eee\u306b 50 \u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u305d\u306e\u9055\u3044\u306f\u6b74\u7136\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3082\u3001\u305d\u308c\u306f\u300c\u7169\u308f\u3057\u3044\u7a0b\u306e\u9045\u3055\u300d\u3068\u300c\u7cbe\u795e\u7684\u306a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30a4\u30c3\u30c1\u3092\u5fc5\u8981\u3068\u3059\u308b\u7a0b\u3067\u306f\u306a\u3044\u9045\u3055\u300d\u306e\u4e01\u5ea6\u4e2d\u9593\u306b\u4f4d\u7f6e\u3059\u308b\u60a9\u307f\u3067\u3059\u3002<\/p>\n<p>\u65e2\u306b\u8ff0\u3079\u305f\u3088\u3046\u306b\u3001\u3053\u308c\u306f\u304b\u306a\u308a\u5177\u4f53\u7684\u306a\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3067\u3042\u308a\u3001\u3044\u304b\u306a\u308b\u4e00\u822c\u7684\u306a HTTP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u5bfe\u3059\u308b\u7532\u4e59\u3092\u3064\u3051\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u3089\u306e\u70b9\u306f\u898b\u904e\u3054\u3055\u308c\u308b\u50be\u5411\u306b\u3042\u308a\u307e\u3059\u3001\u3042\u308b\u3044\u306f\u3001\u5f53\u7136\u306e\u4e8b\u3068\u601d\u308f\u308c\u305f\u308a\u3001\u30b9\u30bf\u30c3\u30af\u306e\u5965\u6df1\u304f\u306b\u3057\u307e\u3044\u8fbc\u307e\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u3002<\/p>\n<p><small>*\u672c\u30d6\u30ed\u30b0\u306f Atlassian Blogs \u306e\u7ffb\u8a33\u3067\u3059\u3002\u672c\u6587\u4e2d\u306e\u65e5\u6642\u306a\u3069\u306f\u6295\u7a3f\u5f53\u6642\u306e\u3082\u306e\u3067\u3059\u306e\u3067\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<br \/>\n*\u539f\u6587 : 2013 \u5e74 7 \u6708 11 \u65e5 \"<a href=\"http:\/\/blogs.atlassian.com\/2013\/07\/http-client-performance-io\/\" target=\"_blank\" rel=\"noopener noreferrer\">HTTP Client Performance \u2013 IO<\/a>\"<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u3005\u306e\u6642\u4ee3\u306b\u304a\u3051\u308b\u3001\u672a\u89e3\u6c7a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u554f\u984c\u3068\u306f\u4f55\u3067\u3057\u3087\u3046\u304b\u3002\u65b0\u3057\u3044 HTTP \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7d76\u3048\u305a\u767a\u751f\u3059\u308b\u3068\u3044\u3046\u4e8b\u5b9f\u304b\u3089\u8003\u3048\u308c\u3070\u3001HTTP \u306e\u547c\u3073\u51fa\u3057\u304c\u6319\u3052\u3089\u308c\u307e\u3059&hellip;<\/p>\n","protected":false},"author":104,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"bitbucket_subtitle":"","footnotes":""},"categories":[1],"tags":[291,292,271,293],"coauthors":[],"class_list":["post-2417","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-http","tag-io","tag-performance","tag-293"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/2417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/users\/104"}],"replies":[{"embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=2417"}],"version-history":[{"count":0,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/2417\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=2417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=2417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=2417"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/coauthors?post=2417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}