{"id":75,"date":"2019-08-11T23:31:22","date_gmt":"2019-08-11T14:31:22","guid":{"rendered":"http:\/\/www.cybergarage.org\/memo\/?p=75"},"modified":"2024-02-03T23:38:40","modified_gmt":"2024-02-03T14:38:40","slug":"mongodb-wire-protocol","status":"publish","type":"post","link":"https:\/\/www.cybergarage.org\/memo\/mongodb-wire-protocol\/","title":{"rendered":"MongoDB \u30d7\u30ed\u30c8\u30b3\u30eb\u5b9f\u88c5\u8abf\u67fb &#8211; v3.6\u4ee5\u964d\u306e\u73fe\u72b6\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>MongoDB\u306f\u3001DB-Engines\u306e2019\u5e748\u6708\u306e\u30e9\u30f3\u30ad\u30f3\u30b0<a href=\"https:\/\/db-engines.com\/en\/ranking\">[1]<\/a>\u3067\u7b2c5\u4f4d\u3068\u3001\u8fd1\u5e74\u3067\u3082\u5b89\u5b9a\u3057\u305f\u4eba\u6c17\u3092\u5f97\u3066\u3044\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u307e\u305f\u3001\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u306eCosmosDB\u3084\u3001FoundationDB\u306e\u300cDocument Layer\u300d\u306b\u4ee3\u8868\u3055\u308c\u308b\u3088\u3046\u306b\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3082MongoDB\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4e92\u63dbAPI\u3067\u5bfe\u5fdc\u3059\u308b\u52d5\u5411\u3082\u898b\u53d7\u3051\u3089\u308c\u307e\u3059<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/azure\/cosmos-db\/mongodb-introduction\">[2]<\/a><a href=\"https:\/\/www.foundationdb.org\/blog\/announcing-document-layer\/\">[3]<\/a>\u3002<\/p>\n<p>\u305f\u3060\u3057\u30012019\u5e748\u6708\u73fe\u5728\u3001MongoDB\u516c\u5f0f\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306f4.0\u7cfb\u3067\u3042\u308b\u306b\u3082\u95a2\u308f\u3089\u305a\u3001CosmosDB\u306fv3.2\u30d9\u30fc\u30b9\u3001Document Layer\u306fv3.0\u30d9\u30fc\u30b9\u306e\u5b9f\u88c5\u306b\u7559\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u3053\u306e\u3088\u3046\u306aMongoDB\u4e92\u63dbAPI\u306e\u5b9f\u88c5\u80cc\u666f\u3092\u7406\u89e3\u3059\u308b\u4e0a\u3067\u5fc5\u8981\u3068\u306a\u308b\u3001MongoDB\u306e\u57fa\u672c\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3042\u308bWire Protocol<a href=\"https:\/\/docs.mongodb.com\/manual\/reference\/mongodb-wire-protocol\/\">[4]<\/a>\u306e\u6982\u8981\u3068\u3001MongoDB\u516c\u5f0f\u306ev3.6\u4ee5\u964d\u306e\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u5b9f\u88c5\u72b6\u6cc1\u306b\u3064\u3044\u3066\u306e\u8abf\u67fb\u7d50\u679c\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.cybergarage.org\/memo\/mongodb-wire-protocol\/#MongoDB_Wire_Protocol%E3%81%AE%E6%A6%82%E8%A6%81\" >MongoDB Wire Protocol\u306e\u6982\u8981<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.cybergarage.org\/memo\/mongodb-wire-protocol\/#%E5%85%B1%E9%80%9A%E3%83%98%E3%83%83%E3%83%80\" >\u5171\u901a\u30d8\u30c3\u30c0<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.cybergarage.org\/memo\/mongodb-wire-protocol\/#%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E7%A8%AE%E5%88%A5_OpCode\" >\u30e1\u30c3\u30bb\u30fc\u30b8\u7a2e\u5225 (OpCode)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.cybergarage.org\/memo\/mongodb-wire-protocol\/#CRUD%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E8%A6%81%E6%B1%82%E9%83%A8_MongoDB_v36%E4%BB%A5%E5%89%8D\" >CRUD\u30e1\u30c3\u30bb\u30fc\u30b8\u8981\u6c42\u90e8 (MongoDB v3.6\u4ee5\u524d)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.cybergarage.org\/memo\/mongodb-wire-protocol\/#MongoDB_Wire_Protocol%E3%81%AE%E7%8F%BE%E7%8A%B6\" >MongoDB Wire Protocol\u306e\u73fe\u72b6<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.cybergarage.org\/memo\/mongodb-wire-protocol\/#CRUD%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E8%A6%81%E6%B1%82%E9%83%A8_MongoDB_v36%E4%BB%A5%E9%99%8D\" >CRUD\u30e1\u30c3\u30bb\u30fc\u30b8\u8981\u6c42\u90e8 (MongoDB v3.6\u4ee5\u964d)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.cybergarage.org\/memo\/mongodb-wire-protocol\/#%E6%9C%80%E6%9C%9F%E3%81%AB\" >\u6700\u671f\u306b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.cybergarage.org\/memo\/mongodb-wire-protocol\/#%E5%8F%82%E8%80%83%E8%B3%87%E6%96%99\" >\u53c2\u8003\u8cc7\u6599<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"MongoDB_Wire_Protocol%E3%81%AE%E6%A6%82%E8%A6%81\"><\/span>MongoDB Wire Protocol\u306e\u6982\u8981<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>MongoDB Wire Protocol\u306f\u3001MongoDB\u306e\u57fa\u790e\u3068\u306a\u308b\u8981\u6c42\u5fdc\u7b54\u306e\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u4ed5\u69d8\u3067\u3059\u3002 MongoDB\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001TCP\/IP\u30bd\u30b1\u30c3\u30c8\u3067MongoDB\u30b5\u30fc\u30d0\u30fc\u3068\u63a5\u7d9a\u3057\u3001\u3053\u306e\u57fa\u672c\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u7528\u3044\u3066\u901a\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%85%B1%E9%80%9A%E3%83%98%E3%83%83%E3%83%80\"><\/span>\u5171\u901a\u30d8\u30c3\u30c0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>MongoDB\u306e\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u306eWire Protoclo\u3067\u306f\u3001\u901a\u4fe1\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5171\u901a\u30d8\u30c3\u30c0\u304c\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5171\u901a\u30d8\u30c3\u30c0\u306f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u7dcf\u5408\u8a08\u30d0\u30a4\u30c8\u6570(Message Length)\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u8981\u6c42\u8b58\u5225\u5b50(RequestID)\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u5fdc\u7b54\u8b58\u5225\u5b50(ResponseTo)\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u7a2e\u5225(OpCode)\u306e4\u7a2e\u985e\u306e\u6574\u6570(int32)\u304b\u3089\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.cybergarage.org\/wp-content\/uploads\/mongodb-wire-protocol-05.png\" alt=\"\" \/><\/p>\n<p>\u30e1\u30c3\u30bb\u30fc\u30b8\u7dcf\u5408\u8a08\u30d0\u30a4\u30c8\u6570(Message Length)\u306e\u30c7\u30fc\u30bf\u5f62\u304cini32\u3067\u3042\u308b\u305f\u3081\u3001\u4ed5\u69d8\u7684\u306b\u306f2GB\u4ee5\u4e0a\u306e\u30c7\u30fc\u30bf\u306e\u9001\u53d7\u4fe1\u306b\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5206\u5272\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002MongoDB\u516c\u5f0f\u306e\u6a19\u6e96\u7684\u306a\u5b9f\u88c5\u3068\u3057\u3066\u306f46MB(48,000,000byte)<a href=\"https:\/\/docs.mongodb.com\/manual\/reference\/command\/isMaster\/\">[5]<\/a>\u7a0b\u5ea6\u3092\u4e0a\u9650\u3068\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001Wire Protoclo\u306e\u6574\u6570\u578b\u306f\u3001TCP\/IP\u30d8\u30c3\u30c0\u306e\u30d0\u30a4\u30c8\u30aa\u30fc\u30c0\u30fc\u3068\u306f\u7570\u306a\u308a\u3001\u30ea\u30c8\u30eb\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u9806\u5e8f\u3067\u306e\u9001\u53d7\u4fe1\u3068\u306a\u308a\u307e\u3059\u3002\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u9078\u629e\u306b\u3064\u3044\u3066\u306f\u3001BSON\u4ed5\u69d8<a href=\"http:\/\/bsonspec.org\/spec.html\">[6]<\/a>\u3068\u540c\u3058\u7d4c\u7def\u3067\u3001\u5b9f\u88c5\u52b9\u7387\u30e1\u30a4\u30f3\u3067\u4ed5\u69d8\u304c\u6c7a\u5b9a\u3055\u308c\u305f\u611f\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E7%A8%AE%E5%88%A5_OpCode\"><\/span>\u30e1\u30c3\u30bb\u30fc\u30b8\u7a2e\u5225 (OpCode)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>MongoDB\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u7a2e\u5225(OpCode)\u306f\u3001\u5ec3\u6b62(Deprecated)\u3055\u308c\u305f\u3082\u306e\u3092\u542b\u3081\u308b\u3068\u3001\u73fe\u5728\u307e\u3067\u4ee5\u4e0b\u306e11\u7a2e\u985e\u306e\u9001\u53d7\u4fe1\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>OpCoce<\/th>\n<th>\u5024<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>OP_REPLY<\/td>\n<td>1<\/td>\n<td>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8981\u6c42\u5fdc\u7b54<\/td>\n<\/tr>\n<tr>\n<td>OP_UPDATE<\/td>\n<td>2001<\/td>\n<td>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u66f4\u65b0<\/td>\n<\/tr>\n<tr>\n<td>OP_INSERT<\/td>\n<td>2002<\/td>\n<td>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u633f\u5165<\/td>\n<\/tr>\n<tr>\n<td>OP_GET_BY_OID<\/td>\n<td>2003<\/td>\n<td>\u4e88\u7d04\u6e08\u307f (Deprecated)<\/td>\n<\/tr>\n<tr>\n<td>OP_QUERY<\/td>\n<td>2004<\/td>\n<td>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u554f\u3044\u5408\u308f\u305b<\/td>\n<\/tr>\n<tr>\n<td>OP_GET_MORE<\/td>\n<td>2005<\/td>\n<td>\u8ffd\u52a0\u5fdc\u7b54 (\u30ab\u30fc\u30bd\u30eb\u306b\u3088\u308b\u30c7\u30fc\u30bf\u5206\u5272\u5fdc\u7b54)<\/td>\n<\/tr>\n<tr>\n<td>OP_DELETE<\/td>\n<td>2006<\/td>\n<td>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td>OP_KILL_CURSORS<\/td>\n<td>2007<\/td>\n<td>\u30ab\u30fc\u30bd\u30eb\u7d42\u4e86\u901a\u77e5<\/td>\n<\/tr>\n<tr>\n<td>OP_COMMAND<\/td>\n<td>2010<\/td>\n<td>\u30b3\u30de\u30f3\u30c9\u8981\u6c42 (\u5185\u90e8\u30d7\u30ed\u30c8\u30b3\u30eb)<\/td>\n<\/tr>\n<tr>\n<td>OP_COMMANDREPLY<\/td>\n<td>2011<\/td>\n<td>OP_COMMAND\u3078\u306e\u5fdc\u7b54 (\u5185\u90e8\u30d7\u30ed\u30c8\u30b3\u30eb)<\/td>\n<\/tr>\n<tr>\n<td>OP_MSG<\/td>\n<td>2013<\/td>\n<td>\u6c4e\u7528\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u4fe1 (MongoDB 3.6\u304b\u3089\u5c0e\u5165)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Wire Protocol\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u9001\u4fe1\u3059\u308b\u8981\u6c42\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u304cOP_REPLY(\u307e\u305f\u306f\u5f8c\u8ff0\u3059\u308bOP_MSG)\u306b\u3066\u5fdc\u7b54\u3059\u308b\u306e\u304c\u3001MongoDB\u306e\u57fa\u672c\u901a\u4fe1\u30b7\u30fc\u30b1\u30f3\u30b9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"CRUD%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E8%A6%81%E6%B1%82%E9%83%A8_MongoDB_v36%E4%BB%A5%E5%89%8D\"><\/span>CRUD\u30e1\u30c3\u30bb\u30fc\u30b8\u8981\u6c42\u90e8 (MongoDB v3.6\u4ee5\u524d)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Wire Protocol\u3067\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u57fa\u672c\u64cd\u4f5c\u3067\u3042\u308bCRUD(Create, Read, Update, Delete)\u64cd\u4f5c\u304c\u500b\u5225\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u7d4c\u7def\u304c\u3042\u308a\u3001\u305d\u308c\u305e\u308cOP_INSERT, OP_READ, OP_UPDATE, OP_QUERY\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u524d\u8ff0\u3057\u305f\u5171\u901a\u30d8\u30c3\u30c0\u4ee5\u964d\u306b\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u7a2e\u5225(OpCode)\u6bce\u306b\u898f\u5b9a\u3055\u308c\u305f\u8981\u6c42\u30e1\u30c3\u30bb\u30fc\u30b8\u90e8(Operation Body)\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u672c\u4f53\u304c\u7d9a\u304d\u307e\u3059\u3002\u4f8b\u3068\u3057\u3066\u3001Create(\u751f\u6210)\u64cd\u4f5c\u306eOP_INSERT\u8981\u6c42\u30e1\u30c3\u30bb\u30fc\u30b8\u90e8\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.cybergarage.org\/wp-content\/uploads\/mongodb-wire-protocol-04.png\" alt=\"\" \/><\/p>\n<p>OP_INSERT\u306e\u8981\u6c42\u30e1\u30c3\u30bb\u30fc\u30b8\u90e8\u306f\u3001\u8981\u6c42\u5236\u5fa1\u30d5\u30e9\u30b0(flags)\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092\u3075\u304f\u3080C\u8a00\u8a9e\u30b9\u30bf\u30a4\u30eb(cstring)\u306e\u53ef\u5909\u9577\u6587\u5b57\u5217\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u540d\u306e\u5f8c\u306b\u3001\u633f\u5165\u3059\u308bBSON\u5f62\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u914d\u5217\u304c\u7d9a\u304d\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u898f\u5b9a\u3055\u308c\u3066\u3044\u308bCRUD\u30e1\u30c3\u30bb\u30fc\u30b8\u4ed5\u69d8(OP_INSERT, OP_READ, OP_UPDATE, OP_QUERY)\u306b\u3064\u3044\u3066\u306f\u3001\u5f8c\u8ff0\u3059\u308b\u3088\u3046\u306b\u73fe\u72b6(v3.6\u4ee5\u964d)\u306f\u5229\u7528\u983b\u5ea6\u304c\u4f4e\u3044(Deprecated)\u4ed5\u69d8\u3067\u3001\u73fe\u5728\u306eMongoDB(4.x)\u306e\u901a\u4fe1\u30b7\u30fc\u30b1\u30f3\u30b9\u3067\u306e\u5229\u7528\u306f\u898b\u53d7\u3051\u3089\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<h1><span class=\"ez-toc-section\" id=\"MongoDB_Wire_Protocol%E3%81%AE%E7%8F%BE%E7%8A%B6\"><\/span>MongoDB Wire Protocol\u306e\u73fe\u72b6<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>Wire Protocol\u306f\u660e\u78ba\u306a\u4ed5\u69d8\u3068\u3057\u3066\u516c\u5f0f\u306b\u898f\u5b9a\u306f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001OP_GET_BY_OID\u306e\u3088\u3046\u306b\u4ed5\u69d8\u4e0a\u660e\u78ba\u306b\u5ec3\u6b62(Deprecated)\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306b\u52a0\u3048\u3066\u3001\u73fe\u72b6(v3.6\u4ee5\u964d)\u3067\u306f\u5b9f\u8cea\u7684\u306b\u5ec3\u6b62(Deprecated)\u3055\u308c\u3066\u3044\u308b\u4ed5\u69d8\u3082\u898b\u53d7\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001\u524d\u8ff0\u306e\u898f\u5b9a\u3055\u308c\u308bCRUD\u30e1\u30c3\u30bb\u30fc\u30b8(OP_INSERT, OP_READ, OP_UPDATE, OP_QUERY)\u8981\u6c42\u306f\u3001\u73fe\u72b6\u306eMongoDB\u516c\u5f0f\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\/\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001MongoDB v3.6\u3067\u5c0e\u5165\u3055\u308c\u305fOP_MSG\u306b\u3088\u308b\u5b9f\u88c5\u306b\u79fb\u884c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"CRUD%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E8%A6%81%E6%B1%82%E9%83%A8_MongoDB_v36%E4%BB%A5%E9%99%8D\"><\/span>CRUD\u30e1\u30c3\u30bb\u30fc\u30b8\u8981\u6c42\u90e8 (MongoDB v3.6\u4ee5\u964d)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u73fe\u72b6\u306eMongoDB\u516c\u5f0f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8(MongoDB Go Driver v1.0.4 <a href=\"https:\/\/github.com\/mongodb\/mongo-go-driver\">[7]<\/a>)\u3084\u30b5\u30fc\u30d0\u30fc(v4.0.12)\u306e\u901a\u4fe1\u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u524d\u8ff0\u306eCRUD\u64cd\u4f5c\u306f\u4ee5\u4e0b\u306b\u793a\u3059OP_MSG\u306b\u3088\u308b\u5b9f\u88c5\u306b\u5168\u9762\u7684\u306b\u79fb\u884c\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.cybergarage.org\/wp-content\/uploads\/mongodb-wire-protocol-03.png\" alt=\"\" \/><\/p>\n<p>OP_MSG\u306e\u8981\u6c42\u30e1\u30c3\u30bb\u30fc\u30b8\u90e8\u306f\u3001\u8981\u6c42\u5236\u5fa1\u30d5\u30e9\u30b0(flagBits)\u4ee5\u964d\u306b\u3001\u5404CRUD\u64cd\u4f5c\u8981\u6c42\u304c\u3075\u304f\u307e\u308c\u308b(2\u7a2e\u985e\u306e)BSON\u5f62\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u914d\u5217\u304c\u7d9a\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3068\u3057\u3066\u3001MongoDB\u516c\u5f0f\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u3042\u308b<a href=\"https:\/\/www.mongodb.com\/blog\/post\/mongodb-go-driver-tutorial\">[8]<\/a>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u8ffd\u52a0\u64cd\u4f5c\u306f\u3001OP_MSG\u306b\u4ee5\u4e0b\u306eBSON\u5f62\u5f0f\u306e\u8981\u6c42\u30e1\u30c3\u30bb\u30fc\u30b8\u90e8(Sections)\u3092\u8ffd\u8a18\u3057\u3066\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code>{\n    &quot;insert&quot;: &quot;trainers&quot;,\n    &quot;ordered&quot;: true,\n    &quot;$db&quot;: &quot;test&quot;\n}\ndocuments: {\n    &quot;_id&quot;: {\n        &quot;$oid&quot;: &quot;5d5104f78f1858330cb49343&quot;\n    },\n    &quot;name&quot;: &quot;Ash&quot;,\n    &quot;age&quot;: {\n        &quot;$numberInt&quot;: &quot;10&quot;\n    },\n    &quot;city&quot;: &quot;Pallet Town&quot;\n}<\/code><\/pre>\n<p>\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u8981\u6c42\u90e8\u306f\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30de\u30f3\u30c9\u306einsert\u4ed5\u69d8<a href=\"https:\/\/docs.mongodb.com\/manual\/reference\/command\/insert\/\">[9]<\/a>\u306b\u6e96\u3058\u305f\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002MongoDB\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306eOP_MSG\u306b\u3088\u308bCRUD\u8981\u6c42\u306b\u5bfe\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u306f\u540c\u3058\u304fOP_MSG\u306b\u3066\u5fdc\u7b54\u3057\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u633f\u5165\u8981\u6c42\u306b\u5bfe\u3059\u308b\u3001\u30b5\u30fc\u30d0\u30fc\u306eOP_MSG\u5fdc\u7b54\u306f\u4ee5\u4e0b\u306e\u5185\u5bb9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.cybergarage.org\/wp-content\/uploads\/mongodb-wire-protocol-02.png\" alt=\"\" \/><\/p>\n<pre><code>{\n    &quot;ok&quot;: {\n        &quot;$numberDouble&quot;: &quot;1.0&quot;\n    },\n    &quot;n&quot;: {\n        &quot;$numberInt&quot;: &quot;1&quot;\n    }\n}<\/code><\/pre>\n<p>MongoDB\u306e\u901a\u4fe1\u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u73fe\u72b6\u306f\u3053\u306eOP_MSG\u304a\u3088\u3073OP_QUERY\u3067\u306e\u5b9f\u88c5\u306b\u96c6\u7d04\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u4e21\u8005\u306e\u5207\u308a\u5206\u3051\u306f\u660e\u78ba\u306a\u4ed5\u69d8\u306f\u306a\u3044\u3082\u306e\u306e\u3001MongoDB\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30de\u30f3\u30c9\u4ed5\u69d8<a href=\"https:\/\/docs.mongodb.com\/manual\/reference\/command\/\">[10]<\/a>\u306e\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c(User Commands)\u7cfb\u30b3\u30de\u30f3\u30c9\u306fOP_MSG\u8981\u6c42\u306b\u3088\u308bOP_MSGO\u5fdc\u7b54\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u64cd\u4f5c(Database Operations)\u30b3\u30de\u30f3\u30c9\u306fOP_QUERY\u8981\u6c42\u306b\u3088\u308bOP_REPLY\u5fdc\u7b54\u306b\u3088\u308b\u5207\u308a\u5206\u3051\u304c\u6210\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E6%9C%80%E6%9C%9F%E3%81%AB\"><\/span>\u6700\u671f\u306b<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u4eca\u56de\u3001MongoDB Wire Protocol\u4ed5\u69d8\u3068\u3001\u3053\u306e\u4ed5\u69d8\u3092\u30d9\u30fc\u30b9\u3068\u3057\u305f\u73fe\u72b6\u306eMongoDB\u306e\u516c\u5f0f\u5b9f\u88c5\u3092\u8abf\u67fb\u3057\u3001\u73fe\u72b6\u306f\u4e00\u90e8\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u5f62\u5f0f(OP_MSG, OP_QUERY, OP_REPLY)\u306b\u3088\u308b\u5b9f\u88c5\u306b\u79fb\u884c\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>MongoDB\u516c\u5f0f\u306eOP_MSG\u306b\u3088\u308b\u5b9f\u88c5\u306e\u79fb\u884c\u306f\u3001\u67d4\u8edf\u6027\u304c\u9ad8\u304f\u3001\u4eca\u5f8c\u306e\u4ed5\u69d8\u62e1\u5f35\u3092\u898b\u636e\u3048\u305f\u3082\u306e\u63a8\u5bdf\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001MongoDB\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30de\u30f3\u30c9\u306f\u516c\u5f0f\u306a\u4ed5\u69d8<a href=\"https:\/\/docs.mongodb.com\/manual\/reference\/command\/\">[10]<\/a>\u304c\u3042\u308b\u3068\u306f\u8a00\u3048\u3001\u5b9f\u969b\u306b\u306fBSON\u30c7\u30fc\u30bf\u578b\u304c\u672a\u898f\u5b9a\u3067\u3042\u308b\u306a\u3069\u30a2\u30f3\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306a\u5185\u5bb9\u304c\u3042\u308a\u3001\u5b9f\u88c5\u306b\u306f\u5b9f\u969b\u306e\u901a\u4fe1\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u89e3\u6790\u304c\u5fc5\u9808\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u88cf\u3092\u8fd4\u305b\u3070\u3001CosmosDB\u304cMongoDB v3.2\u3001FoundationDB\u306eDocument Layer\u304cv3.0\u30d9\u30fc\u30b9\u306e\u4ed5\u69d8\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u80cc\u666f\u306f\u3001MongoDB v3.6\u3067\u5c0e\u5165\u3055\u308c\u305fOP_MSG\u306b\u3088\u308b\u4ed5\u69d8\u306e\u67d4\u8edf\u3055(=\u4ed5\u69d8\u304c\u660e\u8a18\u3055\u308c\u3044\u306a\u3044)\u306b\u8d77\u56e0\u3059\u308b\u3068\u3053\u308d\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001MongoDB\u30d7\u30ed\u30c8\u30b3\u30eb\u4ed5\u69d8\u3068\u3001\u305d\u306e\u5b9f\u60c5\u306b\u3064\u3044\u3066\u306e\u6982\u8981\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002MongoDB\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u3064\u3044\u3066\u306f\u3001\u3082\u3046\u5c11\u3057\u8abf\u67fb\u3092\u7d99\u7d9a\u3059\u308b\u3064\u3082\u308a\u3067\u3059\u306e\u3067\u3001\u307e\u305f\u7279\u8a18\u4e8b\u9805\u304c\u3042\u308c\u3070\u6574\u7406\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83%E8%B3%87%E6%96%99\"><\/span>\u53c2\u8003\u8cc7\u6599<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<ul>\n<li><a href=\"https:\/\/db-engines.com\/en\/ranking\">[1] DB-Engines Ranking | DB-Engines<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/ja-jp\/azure\/cosmos-db\/mongodb-introduction\">[2] Azure Cosmos DB \u306e MongoDB \u7528 API | Azure Cosmos DB<\/a><\/li>\n<li><a href=\"https:\/\/www.foundationdb.org\/blog\/announcing-document-layer\/\">[3] Announcing FoundationDB Document Layer | FoundationDB Blog<\/a><\/li>\n<li><a href=\"https:\/\/docs.mongodb.com\/manual\/reference\/mongodb-wire-protocol\/\">[4] MongoDB Wire Protocol | MongoDB<\/a><\/li>\n<li><a href=\"https:\/\/docs.mongodb.com\/manual\/reference\/command\/isMaster\/\">[5] isMaster.maxMessageSizeBytes | MongoDB &gt; Database Commands &gt; Replication Commands<\/a><\/li>\n<li><a href=\"http:\/\/bsonspec.org\/spec.html\">[6] BSON Specification v1.1 | bsonspec.org<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/mongodb\/mongo-go-driver\">[7] MongoDB Go Driver | github.dom<\/a><\/li>\n<li><a href=\"https:\/\/www.mongodb.com\/blog\/post\/mongodb-go-driver-tutorial\">[8] MongoDB Go Driver Tutorial | MongoDB<\/a><\/li>\n<li><a href=\"https:\/\/docs.mongodb.com\/manual\/reference\/command\/insert\/\">[9] insert | MongoDB &gt; Database Commands &gt; Query and Write Operation Commands<\/a><\/li>\n<li><a href=\"https:\/\/docs.mongodb.com\/manual\/reference\/command\/\">[10] Database Commands | MongoDB<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>MongoDB\u306f\u3001DB-Engines\u306e2019\u5e748\u6708\u306e\u30e9\u30f3\u30ad\u30f3\u30b0[1]\u3067\u7b2c5\u4f4d\u3068\u3001\u8fd1\u5e74\u3067\u3082\u5b89\u5b9a\u3057\u305f\u4eba\u6c17\u3092\u5f97\u3066\u3044\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u307e\u305f\u3001\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u306eCosmosDB\u3084\u3001FoundationDB\u306e\u300cDocument Layer\u300d\u306b\u4ee3\u8868\u3055\u308c\u308b\u3088\u3046\u306b\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3082MongoDB\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4e92\u63dbAPI\u3067\u5bfe\u5fdc\u3059\u308b\u52d5\u5411\u3082\u898b\u53d7\u3051\u3089\u308c\u307e\u3059[2][3]\u3002 \u305f\u3060\u3057\u30012019\u5e748\u6708\u73fe\u5728\u3001MongoDB\u516c\u5f0f\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306f4.0\u7cfb\u3067\u3042\u308b\u306b\u3082\u95a2\u308f\u3089\u305a\u3001CosmosDB\u306fv3.2\u30d9\u30fc\u30b9\u3001Document Layer\u306fv3.0\u30d9\u30fc\u30b9\u306e\u5b9f\u88c5\u306b\u7559\u307e\u3063\u3066\u3044\u307e\u3059\u3002 \u4eca\u56de\u306f\u3001\u3053\u306e\u3088\u3046\u306aMongoDB\u4e92\u63dbAPI\u306e\u5b9f\u88c5\u80cc\u666f\u3092\u7406\u89e3\u3059\u308b\u4e0a\u3067\u5fc5\u8981\u3068\u306a\u308b\u3001MongoDB\u306e\u57fa\u672c\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3042\u308bWire Protocol[4]\u306e\u6982\u8981\u3068\u3001MongoDB\u516c\u5f0f\u306ev3.6\u4ee5\u964d\u306e\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u5b9f\u88c5\u72b6\u6cc1\u306b\u3064\u3044\u3066\u306e\u8abf\u67fb\u7d50\u679c\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3059\u3002 MongoDB Wire Protocol\u306e\u6982\u8981 MongoDB Wire Protocol\u306f\u3001MongoDB\u306e\u57fa\u790e\u3068\u306a\u308b\u8981\u6c42\u5fdc\u7b54\u306e\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u4ed5\u69d8\u3067\u3059\u3002 MongoDB\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001TCP\/IP\u30bd\u30b1\u30c3\u30c8\u3067MongoDB\u30b5\u30fc\u30d0\u30fc\u3068\u63a5\u7d9a\u3057\u3001\u3053\u306e\u57fa\u672c\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u7528\u3044\u3066\u901a\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002 \u5171\u901a\u30d8\u30c3\u30c0 MongoDB\u306e\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u306eWire Protoclo\u3067\u306f\u3001\u901a\u4fe1\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5171\u901a\u30d8\u30c3\u30c0\u304c\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5171\u901a\u30d8\u30c3\u30c0\u306f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u7dcf\u5408\u8a08\u30d0\u30a4\u30c8\u6570(Message Length)\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u8981\u6c42\u8b58\u5225\u5b50(RequestID)\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u5fdc\u7b54\u8b58\u5225\u5b50(ResponseTo)\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u7a2e\u5225(OpCode)\u306e4\u7a2e\u985e\u306e\u6574\u6570(int32)\u304b\u3089\u69cb\u6210\u3055\u308c\u307e\u3059\u3002 \u30e1\u30c3\u30bb\u30fc\u30b8\u7dcf\u5408\u8a08\u30d0\u30a4\u30c8\u6570(Message Length)\u306e\u30c7\u30fc\u30bf\u5f62\u304cini32\u3067\u3042\u308b\u305f\u3081\u3001\u4ed5\u69d8\u7684\u306b\u306f2GB\u4ee5\u4e0a\u306e\u30c7\u30fc\u30bf\u306e\u9001\u53d7\u4fe1\u306b\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5206\u5272\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002MongoDB\u516c\u5f0f\u306e\u6a19\u6e96\u7684\u306a\u5b9f\u88c5\u3068\u3057\u3066\u306f46MB(48,000,000byte)[5]\u7a0b\u5ea6\u3092\u4e0a\u9650\u3068\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002 \u306a\u304a\u3001Wire Protoclo\u306e\u6574\u6570\u578b\u306f\u3001TCP\/IP\u30d8\u30c3\u30c0\u306e\u30d0\u30a4\u30c8\u30aa\u30fc\u30c0\u30fc\u3068\u306f\u7570\u306a\u308a\u3001\u30ea\u30c8\u30eb\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u9806\u5e8f\u3067\u306e\u9001\u53d7\u4fe1\u3068\u306a\u308a\u307e\u3059\u3002\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u9078\u629e\u306b\u3064\u3044\u3066\u306f\u3001BSON\u4ed5\u69d8[6]\u3068\u540c\u3058\u7d4c\u7def\u3067\u3001\u5b9f\u88c5\u52b9\u7387\u30e1\u30a4\u30f3\u3067\u4ed5\u69d8\u304c\u6c7a\u5b9a\u3055\u308c\u305f\u611f\u304c\u3042\u308a\u307e\u3059\u3002 \u30e1\u30c3\u30bb\u30fc\u30b8\u7a2e\u5225 (OpCode) MongoDB\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u7a2e\u5225(OpCode)\u306f\u3001\u5ec3\u6b62(Deprecated)\u3055\u308c\u305f\u3082\u306e\u3092\u542b\u3081\u308b\u3068\u3001\u73fe\u5728\u307e\u3067\u4ee5\u4e0b\u306e11\u7a2e\u985e\u306e\u9001\u53d7\u4fe1\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002 OpCoce \u5024 \u8aac\u660e OP_REPLY 1 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8981\u6c42\u5fdc\u7b54&hellip; <\/p>\n","protected":false},"author":1,"featured_media":76,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":2,"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/posts\/75\/revisions\/78"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/media\/76"}],"wp:attachment":[{"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cybergarage.org\/memo\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}