{"id":161285,"date":"2019-10-30T08:00:49","date_gmt":"2019-10-30T00:00:49","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=161285"},"modified":"2019-10-17T10:50:36","modified_gmt":"2019-10-17T02:50:36","slug":"java-message-queue","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/java-message-queue.html","title":{"rendered":"\u7b80\u5355\u4e86\u89e3Java\u6d88\u606f\u961f\u5217"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u94fe\u5f0f\u8c03\u7528\u662f\u6211\u4eec\u5728\u5199\u7a0b\u5e8f\u65f6\u5019\u7684\u4e00\u822c\u6d41\u7a0b\uff0c\u4e3a\u4e86\u5b8c\u6210\u4e00\u4e2a\u6574\u4f53\u529f\u80fd\uff0c\u4f1a\u5c06\u5176\u62c6\u5206\u6210\u591a\u4e2a\u51fd\u6570(\u6216\u5b50\u6a21\u5757)\uff0c\u6bd4\u5982\u6a21\u5757A\u8c03\u7528\u6a21\u5757B\uff0c\u6a21\u5757B\u8c03\u7528\u6a21\u5757C\uff0c\u6a21\u5757C\u8c03\u7528\u6a21\u5757D\u3002
\n<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u6700\u8fd1\u5c0fL\u4f1a\u542c\u5230\u5f88\u591a\u5b66\u5458\u8bf4\uff0c\u5728\u9762\u8bd5\u5927\u578b\u4e92\u8054\u7f51\u516c\u53f8\u7684\u65f6\u5019\uff0c\u5f88\u53ef\u80fd\u4f1a\u88ab\u95ee\u5230\u6d88\u606f\u961f\u5217\u7684\u95ee\u9898\uff1a<\/p>\n

    \n\u5728\u4f55\u79cd\u573a\u666f\u4e0b\u4f7f\u7528\u4e86\u6d88\u606f\u4e2d\u95f4\u4ef6?
    \n\u4e3a\u4ec0\u4e48\u8981\u5728\u7cfb\u7edf\u91cc\u5f15\u5165\u6d88\u606f\u4e2d\u95f4\u4ef6?
    \n\u5982\u4f55\u5b9e\u73b0\u5e42\u7b49?<\/ul>\n

    \u94fe\u5f0f\u8c03\u7528\u662f\u6211\u4eec\u5728\u5199\u7a0b\u5e8f\u65f6\u5019\u7684\u4e00\u822c\u6d41\u7a0b\uff0c\u4e3a\u4e86\u5b8c\u6210\u4e00\u4e2a\u6574\u4f53\u529f\u80fd\uff0c\u4f1a\u5c06\u5176\u62c6\u5206\u6210\u591a\u4e2a\u51fd\u6570(\u6216\u5b50\u6a21\u5757)\uff0c\u6bd4\u5982\u6a21\u5757A\u8c03\u7528\u6a21\u5757B\uff0c\u6a21\u5757B\u8c03\u7528\u6a21\u5757C\uff0c\u6a21\u5757C\u8c03\u7528\u6a21\u5757D\u3002\u4f46\u5728\u5927\u578b\u5206\u5e03\u5f0f\u5e94\u7528\u4e2d\uff0c\u7cfb\u7edf\u95f4\u7684RPC\u4ea4\u4e92\u7e41\u6742\uff0c\u4e00\u4e2a\u529f\u80fd\u80cc\u540e\u8981\u8c03\u7528\u4e0a\u767e\u4e2a\u63a5\u53e3\u5e76\u975e\u4e0d\u53ef\u80fd\uff0c\u8fd9\u79cd\u67b6\u6784\u6709\u5982\u4e0b\u51e0\u4e2a\u52a3\u52bf\uff1a
    \n1\u3001 \u8fd9\u4e9b\u63a5\u53e3\u4e4b\u95f4\u8026\u5408\u6bd4\u8f83\u4e25\u91cd\uff0c\u6bcf\u65b0\u589e\u4e00\u4e2a\u4e0b\u6e38\u529f\u80fd\uff0c\u90fd\u8981\u5bf9\u4e0a\u6709\u7684\u76f8\u5173\u63a5\u53e3\u8fdb\u884c\u6539\u9020;\u4e3e\u4e2a\u4f8b\u5b50\uff1a\u5047\u5982\u7cfb\u7edfA\u8981\u53d1\u9001\u6570\u636e\u7ed9\u7cfb\u7edfB\u548cC\uff0c\u53d1\u9001\u7ed9\u6bcf\u4e2a\u7cfb\u7edf\u7684\u6570\u636e\u53ef\u80fd\u6709\u5dee\u5f02\uff0c\u56e0\u6b64\u7cfb\u7edfA\u5bf9\u8981\u53d1\u9001\u7ed9\u6bcf\u4e2a\u7cfb\u7edf\u7684\u6570\u636e\u8fdb\u884c\u4e86\u7ec4\u88c5\uff0c\u7136\u540e\u9010\u4e00\u53d1\u9001;\u5f53\u4ee3\u7801\u4e0a\u7ebf\u540e\uff0c\u65b0\u589e\u4e86\u4e00\u4e2a\u9700\u6c42\uff1a\u628a\u6570\u636e\u4e5f\u53d1\u9001\u7ed9D\u3002\u6b64\u65f6\u5c31\u9700\u8981\u4fee\u6539A\u7cfb\u7edf\uff0c\u8ba9\u4ed6\u611f\u77e5\u5230D\u7684\u5b58\u5728\uff0c\u540c\u65f6\u628a\u6570\u636e\u5904\u7406\u597d\u7ed9D\u3002\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u4f60\u4f1a\u770b\u5230\uff0c\u6bcf\u63a5\u5165\u4e00\u4e2a\u4e0b\u6e38\u7cfb\u7edf\uff0c\u90fd\u8981\u5bf9A\u7cfb\u7edf\u8fdb\u884c\u4ee3\u7801\u6539\u9020\uff0c\u5f00\u53d1\u8054\u8c03\u7684\u6548\u7387\u5f88\u4f4e\u3002\u5176\u6574\u4f53\u67b6\u6784\u5982\u4e0b\u56fe\uff1a
    \n\"\"
    \n2\u3001 \u9762\u5bf9\u5927\u6d41\u91cf\u5e76\u53d1\u65f6\uff0c\u5bb9\u6613\u88ab\u51b2\u57ae\u3002\u6bcf\u4e2a\u63a5\u53e3\u6a21\u5757\u7684\u541e\u5410\u80fd\u529b\u662f\u6709\u9650\u7684\uff0c\u8fd9\u4e2a\u4e0a\u9650\u80fd\u529b\u5982\u679c\u5824\u575d\uff0c\u5f53\u5927\u6d41\u91cf(\u6d2a\u6c34)\u6765\u4e34\u65f6\uff0c\u5bb9\u6613\u88ab\u51b2\u57ae\u3002
    \n3\u3001 \u5b58\u5728\u6027\u80fd\u95ee\u9898\u3002RPC\u63a5\u53e3\u57fa\u672c\u4e0a\u662f\u540c\u6b65\u8c03\u7528\uff0c\u6574\u4f53\u7684\u670d\u52a1\u6027\u80fd\u9075\u5faa\u201c\u6728\u6876\u7406\u8bba\u201d\uff0c\u5373\u94fe\u8def\u4e2d\u6700\u6162\u7684\u90a3\u4e2a\u63a5\u53e3\u3002\u6bd4\u5982A\u8c03\u7528B\/C\/D\u90fd\u662f50ms\uff0c\u4f46\u6b64\u65f6B\u53c8\u8c03\u7528\u4e86B1\uff0c\u82b1\u8d392000ms\uff0c\u90a3\u4e48\u76f4\u63a5\u5c31\u62d6\u7d2f\u4e86\u6574\u4e2a\u670d\u52a1\u6027\u80fd\u3002
    \n\"\"
    \n\u6839\u636e\u4e0a\u8ff0\u7684\u51e0\u4e2a\u95ee\u9898\uff0c\u5728\u8bbe\u8ba1\u7cfb\u7edf\u65f6\u53ef\u4ee5\u660e\u786e\u8981\u8fbe\u5230\u7684\u76ee\u6807\uff1a<\/p>\n

      \n1\u3001\u8981\u505a\u5230\u7cfb\u7edf\u89e3\u8026\uff0c\u5f53\u65b0\u7684\u6a21\u5757\u63a5\u8fdb\u6765\u65f6\uff0c\u53ef\u4ee5\u505a\u5230\u4ee3\u7801\u6539\u52a8\u6700\u5c0f;
      \n2\u3001\u8bbe\u7f6e\u6d41\u91cf\u7f13\u51b2\u6c60\uff0c\u53ef\u4ee5\u8ba9\u540e\u7aef\u7cfb\u7edf\u6309\u7167\u81ea\u8eab\u541e\u5410\u80fd\u529b\u8fdb\u884c\u6d88\u8d39\uff0c\u4e0d\u88ab\u51b2\u57ae;
      \n3\u3001\u5f3a\u5f31\u4f9d\u8d56\u68b3\u7406\uff0c\u5c06\u975e\u5173\u952e\u8c03\u7528\u94fe\u8def\u7684\u64cd\u4f5c\u5f02\u6b65\u5316\uff0c\u63d0\u5347\u6574\u4f53\u7cfb\u7edf\u7684\u541e\u5410\u80fd\u529b\uff0c\u6bd4\u5982\u4e0a\u56fe\u4e2dA\u3001B\u3001C\u3001D\u662f\u8ba9\u7528\u6237\u53d1\u8d77\u4ed8\u6b3e\uff0c\u7136\u540e\u8fd4\u56de\u4ed8\u6b3e\u6210\u529f\u63d0\u793a\u7684\u51e0\u4e2a\u5173\u952e\u6d41\u7a0b\uff0c\u800cB1\u662f\u901a\u77e5\u4ed8\u6b3e\u540e\u901a\u77e5\u5546\u5bb6\u53d1\u8d27\u7684\u6a21\u5757\uff0c\u90a3\u4e48\u5b9e\u8d28\u4e0a\u7528\u6237\u5bf9B1\u5b8c\u6210\u7684\u65f6\u95f4\u5bb9\u5fcd\u5ea6\u6bd4\u8f83\u5927(\u6bd4\u5982\u51e0\u79d2\u4e4b\u540e)\uff0c\u53ef\u4ee5\u5c06\u5176\u5f02\u6b65\u5316\u3002<\/ul>\n

      \u5728\u73b0\u5728\u7684\u7cfb\u7edf\u89c6\u7ebf\u4e2d\uff0cMQ\u6d88\u606f\u961f\u5217\u662f\u666e\u904d\u4f7f\u7528\u7684\uff0c\u53ef\u4ee5\u5b8c\u7f8e\u7684\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u7684\u5229\u5668\u3002\u4e0b\u56fe\u662f\u4f7f\u7528\u4e86MQ\u7684\u7b80\u5355\u67b6\u6784\u56fe\uff0c\u53ef\u4ee5\u770b\u5230MQ\u5728\u6700\u524d\u7aef\u5bf9\u6d41\u91cf\u8fdb\u884c\u84c4\u6d2a\uff0c\u4e0b\u6e38\u7684\u7cfb\u7edfABC\u53ea\u4e0eMQ\u6253\u4ea4\u9053\uff0c\u901a\u8fc7\u4e8b\u5148\u5b9a\u4e49\u597d\u7684\u6d88\u606f\u683c\u5f0f\u6765\u89e3\u6790\u3002
      \n\"\"
      \n\u5f15\u5165MQ\u4e4b\u540e\u7684\u7cfb\u7edf\u67b6\u6784\u3001\u4ea4\u4e92\u65b9\u5f0f\u4e0e\u6700\u521d\u7684\u94fe\u5f0f\u8c03\u7528\u67b6\u6784\u975e\u5e38\u4e0d\u540c\uff0c\u867d\u7136\u53ef\u4ee5\u89e3\u51b3\u4e0a\u6587\u63d0\u5230\u7684\u95ee\u9898\uff0c\u4f46\u4e5f\u8981\u5145\u5206\u7406\u89e3\u5176\u539f\u7406\u7279\u6027\u6765\u907f\u514d\u5176\u5e26\u6765\u7684\u526f\u4f5c\u7528\uff0c\u8fd9\u91cc\u4ee5\u6d88\u606f\u961f\u5217\u5982\u4f55\u4fdd\u8bc1\u201c\u6d88\u606f\u7684\u53ef\u9760\u6295\u9012\u201d\u4e3a\u5207\u5165\u70b9\uff0c\u6765\u770b\u770bMQ\u7684\u5b9e\u73b0\u65b9\u5f0f\u3002<\/p>\n

      \u4e00\u3001Client\u5982\u4f55\u5c06\u6d88\u606f\u53ef\u9760\u6295\u9012\u5230MQ<\/strong><\/div>\n
        \n1.Client\u53d1\u9001\u6d88\u606f\u7ed9MQ
        \n2.MQ\u5c06\u6d88\u606f\u6301\u4e45\u5316\u540e\uff0c\u53d1\u9001Ack\u6d88\u606f\u7ed9Client\uff0c\u6b64\u5904\u6709\u53ef\u80fd\u56e0\u4e3a\u7f51\u7edc\u95ee\u9898\u5bfc\u81f4Ack\u6d88\u606f\u65e0\u6cd5\u53d1\u9001\u5230Client\uff0c\u90a3\u4e48Client\u5728\u7b49\u5f85\u8d85\u65f6\u540e\uff0c\u4f1a\u91cd\u4f20\u6d88\u606f;
        \n3.Client\u6536\u5230Ack\u6d88\u606f\u540e\uff0c\u8ba4\u4e3a\u6d88\u606f\u5df2\u7ecf\u6295\u9012\u6210\u529f\u3002<\/ul>\n
        \u4e8c\u3001 MQ\u5982\u4f55\u5c06\u6d88\u606f\u53ef\u9760\u6295\u9012\u5230Client<\/strong><\/div>\n
          \n1.MQ\u5c06\u6d88\u606fpush\u7ed9Client(\u6216Client\u6765pull\u6d88\u606f)
          \n2.Client\u5f97\u5230\u6d88\u606f\u5e76\u505a\u5b8c\u4e1a\u52a1\u903b\u8f91
          \n3.Client\u53d1\u9001Ack\u6d88\u606f\u7ed9MQ\uff0c\u901a\u77e5MQ\u5220\u9664\u8be5\u6d88\u606f\uff0c\u6b64\u5904\u6709\u53ef\u80fd\u56e0\u4e3a\u7f51\u7edc\u95ee\u9898\u5bfc\u81f4Ack\u5931\u8d25\uff0c\u90a3\u4e48Client\u4f1a\u91cd\u590d\u6d88\u606f\uff0c\u8fd9\u91cc\u5c31\u5f15\u51fa\u6d88\u8d39\u5e42\u7b49\u7684\u95ee\u9898;
          \n4.MQ\u5c06\u5df2\u6d88\u8d39\u7684\u6d88\u606f\u5220\u9664<\/ul>\n","protected":false},"excerpt":{"rendered":"

          \u6700\u8fd1\u5c0fL\u4f1a\u542c\u5230\u5f88\u591a\u5b66\u5458\u8bf4\uff0c\u5728\u9762\u8bd5\u5927\u578b\u4e92\u8054\u7f51\u516c\u53f8\u7684\u65f6\u5019\uff0c\u5f88\u53ef\u80fd\u4f1a\u88ab\u95ee\u5230\u6d88\u606f\u961f\u5217\u7684\u95ee\u9898\uff1a \u5728\u4f55\u79cd\u573a\u666f\u4e0b\u4f7f\u7528\u4e86\u6d88\u606f\u4e2d […]<\/p>\n","protected":false},"author":1329,"featured_media":161295,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-161285","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\/161285","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\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=161285"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/161285\/revisions"}],"predecessor-version":[{"id":161296,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/161285\/revisions\/161296"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/161295"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=161285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=161285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=161285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}