{"id":124283,"date":"2020-06-26T17:34:14","date_gmt":"2020-06-26T09:34:14","guid":{"rendered":"http:\/\/4563.org\/?p=124283"},"modified":"2020-06-26T17:34:14","modified_gmt":"2020-06-26T09:34:14","slug":"%e8%af%b7%e9%97%ae-spring-cloud-stream-%e5%92%8c-spring-amqp-%e4%b9%8b%e9%97%b4%e7%9a%84%e5%85%b3%e7%b3%bb","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=124283","title":{"rendered":"\u8bf7\u95ee Spring cloud Stream \u548c Spring Amqp \u4e4b\u95f4\u7684\u5173\u7cfb"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u95ee Spring cloud Stream \u548c Spring Amqp \u4e4b\u95f4\u7684\u5173\u7cfb               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jinzhongyuan <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5468\u672b\u6253\u6270\u5927\u5bb6\u4e00\u4e0b\uff0c\u76ee\u524d\u5728\u5b66\u4e60 Spring Amqp ,\u5c0f\u5f1f\u77e5\u9053 Amqp \u4e0e RabbitMq \u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u4f46\u662f\u65e0\u610f\u95f4\u53d1\u73b0\u4e86 Spring<\/p>\n<p>Cloud Stream ,\u6211\u88c2\u5f00\u4e86\uff0c\u660e\u660e\u6709 Spring AMQP \u8fd9\u5c42\u62bd\u8c61\u4e86\uff0c\u600e\u4e48\u53c8\u6574\u4e86\u4e00\u4e2a Spring Cloud Stream ?<\/p>\n<p>\u6c42\u660e\u767d\u7684\u5927\u4f6c\u6307\u5bfc\u4e00\u6ce2<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2155023\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Cloud Stream \u66f4\u62bd\u8c61\u4e9b\u3002<\/p>\n<p>\u62bd\u8c61 Stream \u5904\u7406\u4e2d\u7684 Source\uff0cSink\uff0c\u548c EventListener\uff0cKafka \u548c AMQP \u90fd\u662f\u4f7f\u7528\u4e0a\u7edf\u4e00\u4e86\u3002<\/p>\n<p>\u66f4\u5e95\u5c42\u7684\u7279\u522b\u7684 API \u4f7f\u7528\u4e0a\u8fd8\u662f\u8981\u5173\u6ce8 Spring AMQP \u548c Spring for Kafka \u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155024\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf4\u5230 Source\uff0cSink \u3002<\/p>\n<p>Spring \u53e6\u5916\u4e00\u4e2a\u5927\u6740\u5668\uff0cSpring Cloud Data Flow\uff0c \u53ef\u4ee5\u8fde\u63a5\u5404\u79cd Source\uff0cSink\uff0c\u4e2d\u95f4\u5904\u7406\u53ef\u4ee5\u7528 Spring Cloud Function \uff08 Serverless \uff09\uff0c\u81ea\u5df1\u7684 Serverless \u7a0b\u5e8f\u53ef\u4ee5\u5b89\u88c5\u5230 SCDF \u4e2d\uff0c\u50cf\u547d\u4ee4\u4e00\u6837\u91cd\u590d\u4f7f\u7528\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155025\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jinzhongyuan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hantsy \u4ece\u5faa\u5e8f\u6e10\u8fdb\u4e0a\u6765\u8bb2\uff0c\u8fd8\u662f\u5148\u5b66\u4e60 Spring Amqp \u6bd4\u8f83\u597d\u5427\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155026\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : huntcool001 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Amqp \u73b0\u5728\u5c31 RabbitMq \u5b9e\u73b0\u4e86&#8230; \u8fd9\u4e2a\u534f\u8bae\u5b66\u4e86\u6709\u5565\u610f\u4e49. RocketMQ, Kafka \u90fd\u6ca1\u5b9e\u73b0.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155027\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             RabbitMq \u662f\u57fa\u4e8e Amqp \u6807\u51c6\u7684\u5b9e\u73b0\uff0cSpring Amqp \u53ef\u4ee5\u8fde\u63a5\u4efb\u4f55\u652f\u6301 Amqp \u6807\u51c6\u7684 MQ \u3002Cloud Stream \u5219\u662f\u5bf9 Spring Amqp \u7b49\u53c8\u5c01\u88c5\u4e86\u4e00\u5c42\uff0c\u53ef\u4ee5\u8fde\u63a5\u66f4\u591a\u79cd\u7c7b\u7684 MQ \u3002<\/p>\n<p>\u4e0d\u8fc7\u6211\u5e76\u4e0d\u89c9\u5f97 Cloud Stream \u662f\u4e2a\u6b63\u786e\u7684\u65b9\u5411\uff0c\u53cd\u6b63\u6211\u6ca1\u6709\u5728\u540c\u4e00\u4e2a\u9879\u76ee\u91cc\u9762\u4f7f\u7528\u591a\u79cd MQ \u7684\u9700\u6c42\u3002 \u7a0b\u5e8f\u5458\u8fde\u81ea\u5df1\u8be5\u4f7f\u7528\u4ec0\u4e48\u7ec4\u4ef6\u90fd\u6ca1\u70b9 B \u6570\u7684\u8bdd\uff0c\u8fd8\u7b97\u662f\u5408\u683c\u7684\u7a0b\u5e8f\u5458\u4e48\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155028\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jinzhongyuan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @huntcool001 \u6211\u7684\u610f\u601d\u5c31\u662f rabbitmq                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155029\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jinzhongyuan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xuanbg \u6709\u9053\u7406\uff0c\u5c01\u88c5\u591a\u4e86\uff0c\u53cd\u800c\u589e\u52a0\u8d1f\u62c5\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155030\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wdmx007 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hantsy \u4e0d\u89c9\u5f97 data flow \u8d85\u7ea7\u9017\u6bd4\u5417\uff1f[\u72d7\u5934]                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155031\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xuanbg \u4ece\u5fae\u8c03 MQ \u7684\u89d2\u5ea6\uff0c\u6211\u8fd8\u9996\u9009 Spring AMQP \u3002 <\/p>\n<p>Cloud Stream \u66f4\u591a\u7684\u89e3\u51b3\u4e92\u901a\u95ee\u9898\uff0c\u9690\u85cf MQ \u7684\u7ec6\u8282\u914d\u7f6e\uff0c\u731b\u770b\u5404\u79cd MQ \u7528\u6cd5\u5dee\u4e0d\u591a\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155032\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wdmx007 AWS Lambda \u9017\u6bd4\u5417\uff1f\u5b9e\u9645\u4e0a\u4e00\u6837\u7684\u8bbe\u8ba1\u601d\u8def\uff0c\u53ea\u662f SCDF \u5f71\u54cd\u529b\u8fdc\u4e0d\u5982 AWS Lambda \u5e73\u53f0\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155033\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @huntcool001 \u5b9e\u73b0 AMQP \u534f\u8bae\u7684 Message Broker \u5f88\u591a\u5427\uff0cApache ActiveMQ\uff0cRedhat AMQ \u597d\u50cf\u4e5f\u5b9e\u73b0\u3002<\/p>\n<p>https:\/\/www.amqp.org\/about\/examples<\/p>\n<p>RabbitMQ \u8fd8\u652f\u6301 MQTT \u534f\u8bae\uff08 Iot \u5904\u7406\u534f\u8bae\uff0c\u524d\u51e0\u5e74\u7684 Spring \u5927\u4f1a\u6f14\u793a\u8fc7\u51fa\u79df\u8ddf\u8e2a\u7a0b\u5e8f\uff09\uff0c\u8fd8\u652f\u6301 STOMP \u6269\u5c55\uff0c\u4e0e Websokcet \u7ed3\u5408\uff08\u6d88\u606f\u8d70 RabbitMQ\uff0c\u51cf\u8f7b\u5e94\u7528\u670d\u52a1\u5668\u538b\u529b\uff09\u3002\u8fd9\u4e9b\u5728 Spring AMQP \uff08\u4e0e RabbitMQ \u4e00\u8d77\u4f7f\u7528\u65f6\uff09 \u90fd\u652f\u6301\u5f88\u597d\u3002\u5982\u679c\u53ea\u5173\u6ce8\u6d88\u606f\uff0c \u5728 Spring \u4e2d\u4f7f\u7528 Spring AMQP \u548c RabbitMQ \u57fa\u672c\u662f\u4e0d\u4e8c\u4e4b\u9009\uff0c\u592a\u6210\u719f\u4e86\u3002<\/p>\n<p>Kafka \u5728 Spring \u4e2d Spring For Kafka \u9879\u76ee\u652f\u6301\uff0c\u9664\u4e86\u505a Message Broker \u5916\uff0cKafka \u4e00\u4e2a\u91cd\u8981\u7684\u89d2\u5ea6\u662f Stream processing \u3002<\/p>\n<p>RecketMQ \u4e0d\u4f5c\u8bc4\u4ef7\uff0c\u6211\u6ca1\u7528\u8fc7\u3002\u300a\u300a\u751f\u6001\u5708\u5b50\u300b\u300b\u300b\u8fdc\u4e0d\u5982\u4e0a\u9762\u4e24\u4e2a\uff0c\u76ee\u524d\u611f\u89c9\u8fd8\u53ea\u662f\u535a\u773c\u7403\u9636\u6bb5\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2155034\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qwerthhusn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd8\u6709\u4e00\u4e2a Spring Cloud Bus\uff0c\u6211\u4e00\u76f4\u5f04\u4e0d\u6e05\u695a\u4e0e Spring Cloud Stream \u548c Spring Data AMQP \u4e4b\u95f4\u7684\u5173\u7cfb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u95ee Spring cloud S&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/124283"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124283"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/124283\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124283"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}