{"id":31102,"date":"2022-12-22T21:02:07","date_gmt":"2022-12-22T13:02:07","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=31102"},"modified":"2022-12-22T21:02:37","modified_gmt":"2022-12-22T13:02:37","slug":"nio-gallery","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/nio-gallery.html","title":{"rendered":"I\/O\u590d\u7528\u673a\u5236\u6982\u8ff0"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nI\/O\u591a\u8def\u590d\u7528\u6280\u672f\u901a\u8fc7\u628a\u591a\u4e2aI\/O\u7684\u963b\u585e\u590d\u7528\u5230\u540c\u4e00\u4e2aselect\u7684\u963b\u585e\u4e0a\uff0c\u4ece\u800c\u4f7f\u5f97\u7cfb\u7edf\u5728\u5355\u7ebf\u7a0b\u7684\u60c5\u51b5\u4e0b\u53ef\u4ee5\u540c\u65f6\u5904\u7406\u591a\u4e2a\u5ba2\u6237\u7aef\u8bf7\u6c42\u3002\u4e0e\u4f20\u7edf\u7684\u591a\u7ebf\u7a0b\/\u591a\u8fdb\u7a0b\u6a21\u578b\u6bd4\uff0cI\/O\u591a\u8def\u590d\u7528\u7684\u6700\u5927\u4f18\u52bf\u662f\u7cfb\u7edf\u5f00\u9500\u5c0f\uff0c\u7cfb\u7edf\u4e0d\u9700\u8981\u521b\u5efa\u65b0\u7684\u989d\u5916\u8fdb\u7a0b\u6216\u8005\u7ebf\u7a0b\uff0c\u4e5f\u4e0d\u9700\u8981\u7ef4\u62a4\u8fd9\u4e9b\u8fdb\u7a0b\u548c\u7ebf\u7a0b\u7684\u8fd0\u884c\uff0c\u964d\u5e95\u4e86\u7cfb\u7edf\u7684\u7ef4\u62a4\u5de5\u4f5c\u91cf\uff0c\u8282\u7701\u4e86\u7cfb\u7edf\u8d44\u6e90\uff0c<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u4ecb\u7ecd\u51e0\u79cd\u5e38\u89c1\u7684I\/O\u6a21\u578b\u53ca\u5176\u533a\u522b<\/p>\n

    \n
  • blocking I\/O<\/li>\n
  • nonblocking I\/O<\/li>\n
  • I\/O multiplexing (select<\/tt>\u00a0and\u00a0poll<\/tt>)<\/li>\n
  • signal driven I\/O (SIGIO<\/tt>)<\/li>\n
  • asynchronous I\/O (the POSIX\u00a0aio_<\/tt>functions)<\/li>\n<\/ul>\n
    blocking I\/O<\/strong><\/div>\n

    \u8fd9\u4e2a\u4e0d\u7528\u591a\u89e3\u91ca\u5427\uff0c\u963b\u585e\u5957\u63a5\u5b57\u3002\u4e0b\u56fe\u662f\u5b83\u8c03\u7528\u8fc7\u7a0b\u7684\u56fe\u793a\uff1a<\/p>\n

    \"nio-gallery\"<\/p>\n

    \u91cd\u70b9\u89e3\u91ca\u4e0b\u4e0a\u56fe\uff0c\u4e0b\u9762\u4f8b\u5b50\u90fd\u4f1a\u8bb2\u5230\u3002\u9996\u5148application\u8c03\u7528 recvfrom()\u8f6c\u5165kernel\uff0c\u6ce8\u610fkernel\u67092\u4e2a\u8fc7\u7a0b\uff0cwait for data\u548ccopy data from kernel to user\u3002\u76f4\u5230\u6700\u540ecopy complete\u540e\uff0crecvfrom()\u624d\u8fd4\u56de\u3002\u6b64\u8fc7\u7a0b\u4e00\u76f4\u662f\u963b\u585e\u7684\u3002<\/p>\n

    nonblocking I\/O\uff1a<\/strong><\/div>\n

    \u4e0eblocking I\/O\u5bf9\u7acb\u7684\uff0c\u975e\u963b\u585e\u5957\u63a5\u5b57\uff0c\u8c03\u7528\u8fc7\u7a0b\u56fe\u5982\u4e0b\uff1a<\/p>\n

    \"nio-gallery-2\"<\/p>\n

    \u53ef\u4ee5\u770b\u89c1\uff0c\u5982\u679c\u76f4\u63a5\u64cd\u4f5c\u5b83\uff0c\u90a3\u5c31\u662f\u4e2a\u8f6e\u8be2\u3002\u3002\u76f4\u5230\u5185\u6838\u7f13\u51b2\u533a\u6709\u6570\u636e\u3002<\/p>\n

    I\/O multiplexing (select and poll)<\/strong><\/div>\n

    \u6700\u5e38\u89c1\u7684I\/O\u590d\u7528\u6a21\u578b\uff0cselect\u3002<\/p>\n

    \"nio-gallery-3\"<\/p>\n

    select\u5148\u963b\u585e\uff0c\u6709\u6d3b\u52a8\u5957\u63a5\u5b57\u624d\u8fd4\u56de\u3002\u4e0eblocking I\/O<\/strong>\u76f8\u6bd4\uff0cselect\u4f1a\u6709\u4e24\u6b21\u7cfb\u7edf\u8c03\u7528\uff0c\u4f46\u662fselect\u80fd\u5904\u7406\u591a\u4e2a\u5957\u63a5\u5b57\u3002<\/p>\n

    signal driven I\/O (SIGIO)<\/strong><\/div>\n

    \u53ea\u6709UNIX\u7cfb\u7edf\u652f\u6301\uff0c\u611f\u5174\u8da3\u7684\u8bfe\u67e5\u9605\u76f8\u5173\u8d44\u6599<\/p>\n

    \"nio-gallery-4\"<\/p>\n

    \u4e0eI\/O multiplexing (select and poll)<\/strong>\u76f8\u6bd4\uff0c\u5b83\u7684\u4f18\u52bf\u662f\uff0c\u514d\u53bb\u4e86select\u7684\u963b\u585e\u4e0e\u8f6e\u8be2\uff0c\u5f53\u6709\u6d3b\u8dc3\u5957\u63a5\u5b57\u65f6\uff0c\u7531\u6ce8\u518c\u7684handler\u5904\u7406\u3002<\/p>\n

    asynchronous I\/O (the POSIX aio_functions)<\/strong><\/div>\n

    \u5f88\u5c11\u6709*nix\u7cfb\u7edf\u652f\u6301\uff0cwindows\u7684IOCP\u5219\u662f\u6b64\u6a21\u578b
    \n\"nio-gallery-5\"<\/p>\n

    \u5b8c\u5168\u5f02\u6b65\u7684I\/O\u590d\u7528\u673a\u5236\uff0c\u56e0\u4e3a\u7eb5\u89c2\u4e0a\u9762\u5176\u5b83\u56db\u79cd\u6a21\u578b\uff0c\u81f3\u5c11\u90fd\u4f1a\u5728\u7531kernel copy data to appliction\u65f6\u963b\u585e\u3002\u800c\u8be5\u6a21\u578b\u662f\u5f53copy\u5b8c\u6210\u540e\u624d\u901a\u77e5application\uff0c\u53ef\u89c1\u662f\u7eaf\u5f02\u6b65\u7684\u3002\u597d\u50cf\u53ea\u6709windows\u7684\u5b8c\u6210\u7aef\u53e3\u662f\u8fd9\u4e2a\u6a21\u578b\uff0c\u6548\u7387\u4e5f\u5f88\u51fa\u8272\u3002<\/p>\n

    \u4e0b\u9762\u662f\u4ee5\u4e0a\u4e94\u79cd\u6a21\u578b\u7684\u6bd4\u8f83<\/strong><\/div>\n

    \"nio-gallery-6\"<\/p>\n

    \u53ef\u4ee5\u770b\u51fa\uff0c\u8d8a\u5f80\u540e\uff0c\u963b\u585e\u8d8a\u5c11\uff0c\u7406\u8bba\u4e0a\u6548\u7387\u4e5f\u662f\u6700\u4f18\u30025\u79cd\u6a21\u578b\u7684\u6bd4\u8f83\u6bd4\u8f83\u6e05\u6670\u4e86\uff0c\u5269\u4e0b\u7684\u5c31\u662f\u628aselect,epoll,iocp,kqueue\u6309\u53f7\u5165\u5ea7\u90a3\u5c31OK\u4e86\u3002<\/p>\n

    select\u548ciocp\u5206\u522b\u5bf9\u5e94\u7b2c3\u79cd\u4e0e\u7b2c5\u79cd\u6a21\u578b\uff0c\u90a3\u4e48epoll\u4e0ekqueue\u5462\uff1f\u5176\u5b9e\u4e5f\u4e8eselect\u5c5e\u4e8e\u540c\u4e00\u79cd\u6a21\u578b\uff0c\u53ea\u662f\u66f4\u9ad8\u7ea7\u4e00\u4e9b\uff0c\u53ef\u4ee5\u770b\u4f5c\u6709\u4e86\u7b2c4\u79cd\u6a21\u578b\u7684\u67d0\u4e9b\u7279\u6027\uff0c\u5982callback\u673a\u5236\u3002<\/p>\n

    \u90a3\u4e48\uff0c\u4e3a\u4ec0\u4e48epoll,kqueue\u6bd4select\u9ad8\u7ea7\uff1f\u00a0
    \n<\/strong><\/p>\n

    \u7b54\u6848\u662f\uff0c\u4ed6\u4eec\u65e0\u8f6e\u8be2<\/strong>\u3002\u56e0\u4e3a\u4ed6\u4eec\u7528callback\u53d6\u4ee3\u4e86\u3002\u60f3\u60f3\u770b\uff0c\u5f53\u5957\u63a5\u5b57\u6bd4\u8f83\u591a\u7684\u65f6\u5019\uff0c\u6bcf\u6b21select()\u90fd\u8981\u901a\u8fc7\u904d\u5386FD_SETSIZE\u4e2aSocket\u6765\u5b8c\u6210\u8c03\u5ea6,\u4e0d\u7ba1\u54ea\u4e2aSocket\u662f\u6d3b\u8dc3\u7684,\u90fd\u904d\u5386\u4e00\u904d\u3002\u8fd9\u4f1a\u6d6a\u8d39\u5f88\u591aCPU\u65f6\u95f4\u3002\u5982\u679c\u80fd\u7ed9\u5957\u63a5\u5b57\u6ce8\u518c\u67d0\u4e2a\u56de\u8c03\u51fd\u6570\uff0c\u5f53\u4ed6\u4eec\u6d3b\u8dc3\u65f6\uff0c\u81ea\u52a8\u5b8c\u6210\u76f8\u5173\u64cd\u4f5c\uff0c\u90a3\u5c31\u907f\u514d\u4e86\u8f6e\u8be2\uff0c\u8fd9\u6b63\u662fepoll\u4e0ekqueue\u505a\u7684\u3002<\/p>\n

    windows or *nix \uff08IOCP or kqueue\/epoll\uff09\uff1f<\/strong><\/p>\n

    \u8bda\u7136\uff0cWindows\u7684IOCP\u975e\u5e38\u51fa\u8272\uff0c\u76ee\u524d\u5f88\u5c11\u6709\u652f\u6301asynchronous I\/O<\/strong>\u7684\u7cfb\u7edf\uff0c\u4f46\u662f\u7531\u4e8e\u5176\u7cfb\u7edf\u672c\u8eab\u7684\u5c40\u9650\u6027\uff0c\u5927\u578b\u670d\u52a1\u5668\u8fd8\u662f\u5728UNIX\u4e0b\u3002\u800c\u4e14\u6b63\u5982\u4e0a\u9762\u6240\u8ff0\uff0ckqueue\/epoll \u4e0e IOCP\u76f8\u6bd4\uff0c\u5c31\u662f\u591a\u4e86\u4e00\u5c42\u4ece\u5185\u6838copy\u6570\u636e\u5230\u5e94\u7528\u5c42\u7684\u963b\u585e\uff0c\u4ece\u800c\u4e0d\u80fd\u7b97\u4f5casynchronous I\/O\u7c7b\u3002<\/strong>\u4f46\u662f\uff0c\u8fd9\u5c42\u5c0f\u5c0f\u7684\u963b\u585e\u65e0\u8db3\u8f7b\u91cd\uff0ckqueue\u4e0eepoll\u5df2\u7ecf\u505a\u5f97\u5f88\u4f18\u79c0\u4e86\u3002<\/p>\n

    \u63d0\u4f9b\u4e00\u81f4\u7684\u63a5\u53e3\uff0cIO Design Patterns<\/strong><\/p>\n

    \u5b9e\u9645\u4e0a\uff0c\u4e0d\u7ba1\u662f\u54ea\u79cd\u6a21\u578b\uff0c\u90fd\u53ef\u4ee5\u62bd\u8c61\u4e00\u5c42\u51fa\u6765\uff0c\u63d0\u4f9b\u4e00\u81f4\u7684\u63a5\u53e3\uff0c\u5e7f\u4e3a\u4eba\u77e5\u7684\u6709ACE,Libevent\u8fd9\u4e9b\uff0c\u4ed6\u4eec\u90fd\u662f\u8de8\u5e73\u53f0\u7684\uff0c\u800c\u4e14\u4ed6\u4eec\u81ea\u52a8\u9009\u62e9\u6700\u4f18\u7684I\/O\u590d\u7528\u673a\u5236\uff0c\u7528\u6237\u53ea\u9700\u8c03\u7528\u63a5\u53e3\u5373\u53ef\u3002\u8bf4\u5230\u8fd9\u91cc\u53c8\u5f97\u8bf4\u8bf42\u4e2a\u8bbe\u8ba1\u6a21\u5f0f\uff0cReactor<\/strong>\u00a0and\u00a0Proactor\u3002<\/strong>Libevent\u662fReactor<\/strong>\u6a21\u578b\uff0cACE\u63d0\u4f9bProactor<\/strong>\u6a21\u578b\u3002\u5b9e\u9645\u90fd\u662f\u5bf9\u5404\u79cdI\/O\u590d\u7528\u673a\u5236\u7684\u5c01\u88c5\u3002<\/p>\n

    Java nio\u5305\u662f\u4ec0\u4e48I\/O\u673a\u5236\uff1f<\/strong><\/p>\n

    \u6211\u66fe\u5929\u771f\u7684\u8ba4\u4e3ajava nio\u5c01\u88c5\u7684\u662fIOCP\u3002\u3002\u73b0\u5728\u53ef\u4ee5\u786e\u5b9a\uff0c\u76ee\u524d\u7684java\u672c\u8d28\u662fselect()\u6a21\u578b\uff0c\u53ef\u4ee5\u68c0\u67e5\/jre\/bin\/nio.dll\u5f97\u77e5\u3002\u81f3\u4e8ejava\u670d\u52a1\u5668\u4e3a\u4ec0\u4e48\u6548\u7387\u8fd8\u4e0d\u9519\u3002\u6211\u4e5f\u4e0d\u5f97\u800c\u77e5\uff0c\u53ef\u80fd\u662f\u8bbe\u8ba1\u5f97\u6bd4\u8f83\u597d\u5427\u3002<\/p>\n

    \u5bf9\u6d41\u884c\u7684IO\u6a21\u578b\u8fdb\u884c\u7b80\u5355\u7684\u6bd4\u8f83<\/strong><\/div>\n

    Select<\/strong>
    \n1.Socket\u6570\u91cf\u9650\u5236:\u8be5\u6a21\u5f0f\u53ef\u64cd\u4f5c\u7684Socket\u6570\u7531FD_SETSIZE\u51b3\u5b9a,\u5185\u6838\u9ed8\u8ba432*32=1024.
    \n2.\u64cd\u4f5c\u9650\u5236:\u901a\u8fc7\u904d\u5386FD_SETSIZE\u4e2aSocket\u6765\u5b8c\u6210\u8c03\u5ea6,\u4e0d\u7ba1\u54ea\u4e2aSocket\u662f\u6d3b\u8dc3\u7684,\u90fd\u904d\u5386\u4e00\u904d.<\/p>\n

    Poll<\/strong>
    \n1.Socket\u6570\u91cf\u51e0\u4e4e\u65e0\u9650\u5236:\u8be5\u6a21\u5f0f\u4e0b\u7684Socket\u5bf9\u5e94\u7684fd\u5217\u8868\u7531\u4e00\u4e2a\u6570\u7ec4\u6765\u4fdd\u5b58,\u5927\u5c0f\u4e0d\u9650(\u9ed8\u8ba44k).
    \n2.\u64cd\u4f5c\u9650\u5236:\u540cSelect.<\/p>\n

    Epoll<\/strong>
    \n1.Socket\u6570\u91cf\u65e0\u9650\u5236:\u540cPoll
    \n2.\u64cd\u4f5c\u65e0\u9650\u5236:\u57fa\u4e8e\u5185\u6838\u63d0\u4f9b\u7684\u53cd\u5c04\u6a21\u5f0f,\u6709\u6d3b\u8dc3Socket\u65f6,\u5185\u6838\u8bbf\u95ee\u8be5Socket\u7684callback,\u4e0d\u9700\u8981\u904d\u5386\u8f6e\u8be2.<\/p>\n

    \u603b\u7ed3\u4e00\u4e9b\u91cd\u70b9\uff1a<\/strong><\/div>\n

    \u5927\u90e8\u5206\u60c5\u51b5\u4e0b,\u53cd\u5c04\u7684\u6548\u7387\u90fd\u6bd4\u904d\u5386\u6765\u7684\u9ad8,\u4f46\u662f\u5f53\u6240\u6709Socket\u90fd\u6d3b\u8dc3\u7684\u65f6\u5019,\u53cd\u5c04\u8fd8\u4f1a\u66f4\u9ad8\u4e48?\u8fd9\u65f6\u5019\u6240\u6709\u7684callback\u90fd\u88ab\u5524\u9192,\u4f1a\u5bfc\u81f4\u8d44\u6e90\u7684\u7ade\u4e89.\u65e2\u7136\u90fd\u662f\u8981\u5904\u7406\u6240\u6709\u7684Socket,\u90a3\u4e48\u904d\u5386\u662f\u6700\u7b80\u5355\u6700\u6709\u6548\u7684\u5b9e\u73b0\u65b9\u5f0f.<\/p>\n

    \u5bf9\u4e8eIM\u670d\u52a1\u5668,\u670d\u52a1\u5668\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u90fd\u662f\u957f\u94fe\u63a5,\u4f46\u6570\u91cf\u4e0d\u591a,\u4e00\u822c\u4e00\u53f060\\70\u4e2a,\u6bd4\u5982\u91c7\u7528ICE\u8fd9\u79cd\u67b6\u6784\u8bbe\u8ba1,\u4f46\u8bf7\u6c42\u76f8\u5f53\u9891\u7e41\u548c\u5bc6\u96c6,\u8fd9\u65f6\u5019\u901a\u8fc7\u53cd\u5c04\u5524\u9192callback\u4e0d\u4e00\u5b9a\u6bd4\u7528select\u53bb\u904d\u5386\u5904\u7406\u66f4\u597d.\u5bf9\u4e8eweb portal\u670d\u52a1\u5668,\u90fd\u662f\u6d4f\u89c8\u5668\u5ba2\u6237\u7aef\u53d1\u8d77\u7684http\u77ed\u94fe\u63a5\u8bf7\u6c42,\u6570\u91cf\u5f88\u5927,\u597d\u4e00\u70b9\u7684\u7f51\u7ad9\u52a8\u8f84\u6bcf\u5206\u949f\u4e0a\u5343\u4e2a\u8bf7\u6c42\u8fc7\u6765,\u540c\u65f6\u670d\u52a1\u5668\u7aef\u8fd8\u6709\u66f4\u591a\u7684\u95f2\u7f6e\u7b49\u5f85\u8d85\u65f6\u7684Socket,\u8fd9\u65f6\u5019\u6ca1\u5fc5\u8981\u628a\u5168\u90e8\u7684Socket\u90fd\u904d\u5386\u5904\u7406,\u56e0\u4e3a\u90a3\u4e9b\u7b49\u5f85\u8d85\u65f6\u7684\u8bf7\u6c42\u662f\u5927\u591a\u6570\u7684,\u8fd9\u6837\u7528Epoll\u4f1a\u66f4\u597d.<\/p>\n

      \n
    1. \u53ea\u6709IOCP\u662fasynchronous I\/O\uff0c\u5176\u4ed6\u673a\u5236\u6216\u591a\u6216\u5c11\u90fd\u4f1a\u6709\u4e00\u70b9\u963b\u585e\u3002<\/li>\n
    2. select\u4f4e\u6548\u662f\u56e0\u4e3a\u6bcf\u6b21\u5b83\u90fd\u9700\u8981\u8f6e\u8be2\u3002\u4f46\u4f4e\u6548\u4e5f\u662f\u76f8\u5bf9\u7684\uff0c\u89c6\u60c5\u51b5\u800c\u5b9a\uff0c\u4e5f\u53ef\u901a\u8fc7\u826f\u597d\u7684\u8bbe\u8ba1\u6539\u5584<\/li>\n
    3. epoll, kqueue\u662fReacor\u6a21\u5f0f\uff0cIOCP\u662fProactor\u6a21\u5f0f\u3002<\/li>\n
    4. java nio\u5305\u662fselect\u6a21\u578b\u3002<\/li>\n<\/ol>\n
      \n

      \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/blog.sina.com.cn\/s\/blog_6002b9700101ermy.html<\/a><\/p>\n

      \u672c\u6587\u5730\u5740\uff1a http:\/\/lrxjmw.cn\/nio-gallery.html<\/a>\u7f16\u8f91\uff1a\u6768\u9e4f\u98de\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

      \u5bfc\u8bfb I\/O\u591a\u8def\u590d\u7528\u6280\u672f\u901a\u8fc7\u628a\u591a\u4e2aI\/O\u7684\u963b\u585e\u590d\u7528\u5230\u540c\u4e00\u4e2aselect\u7684\u963b\u585e\u4e0a\uff0c\u4ece\u800c\u4f7f\u5f97\u7cfb\u7edf\u5728\u5355\u7ebf\u7a0b\u7684\u60c5\u51b5\u4e0b\u53ef […]<\/p>\n","protected":false},"author":63,"featured_media":29680,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-31102","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/31102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=31102"}],"version-history":[{"count":16,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/31102\/revisions"}],"predecessor-version":[{"id":259947,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/31102\/revisions\/259947"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/29680"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=31102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=31102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=31102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}