A reusable distributed transaction message architecture based on RabbitMQ

premise Distributed transaction is a more difficult problem in the practice of microservice. In the microservice practice scheme implemented by the author, the compromise or avoid strong consistency scheme is adopted. Referring to the local message table scheme proposed by Ebay many years ago, a lightweight package based on RabbitMQ and MySQL ...

Posted on Wed, 27 May 2020 06:21:45 -0400 by zrosen88

RabbitMQ Learning II: Managing single-node RabbitMQ

Environmental preparation: [root@master ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) [root@master ~]# uname -a Linux master 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux [root@master ~]# ip addr ens33: inet 192.168.0.201/24 brd 192.168.0.255 scope global ens33 Current Erlang and Ra ...

Posted on Mon, 18 May 2020 12:42:11 -0400 by NeoPuma

How can RabbitMQ consume messages efficiently

After the previous article introduced how to simply send a message queue, let's take a look at another mode of RabbitMQ, work queue. What is work queue What we said in the last article is that a producer produces a message that is consumed by a consumer, as shown in the following figure The above simple message queue can indeed handle our task ...

Posted on Fri, 15 May 2020 05:29:02 -0400 by macattack

Using rabbitmq message queuing

1, Foreword In python, there is a queue in itself. One is thread queue, the other is queue in multiprocessing. Thread queue: only used for data interaction between threads Process Queue: used for data interaction between parent and child processes under the same process, or interaction between multiple child processes under the same parent proc ...

Posted on Mon, 04 May 2020 06:43:07 -0400 by JOWP

Stream message driven of Spring Cloud series

This is a series of articles. If you haven't read the first episode, please jab here: Stream message driver of Spring Cloud series (1) This article explains how streams implement message grouping and message partitioning.    Message grouping    Click on the link to view: Stream message grouping video (for more, please pay attention to the o ...

Posted on Sat, 02 May 2020 20:58:39 -0400 by MK27

Publish messages to RabbitMQ and get messages from RabbitMQ on Android (2)

Preface Get message code A little bit of progress every dayCome on Preface This article is about how to get the information on RabbitMQ. If you have never been in touch with RabbitMQ, it is recommended to take a look at another article of mine Publish messages to RabbitMQ and get messages from RabbitMQ on Android (1). Get messa ...

Posted on Fri, 01 May 2020 12:29:47 -0400 by ublapach

SpringBoot+RabbitMQ learning notes use the Direct of three switches of RabbitMQ

I. Introduction Direct Exchange Process the routing key. You need to bind a queue to the switch, requiring that the message exactly match a specific routing key. This is a complete match. If a queue is bound to the switch and requires the routing key "test", only messages marked as "test" will be forwarded. test.aaa, dog.123 ...

Posted on Tue, 28 Apr 2020 12:59:41 -0400 by dvt85

SpringBoot+RabbitMQ Learning Notes Fanout of RabbitMQ's three exchanges

Introduction Fanout Exchange  Do not process routing keys.You simply bind the queue to the switch.A message sent to a switch is forwarded to all queues bound to the switch.Much like subnet broadcasting, hosts within each subnet receive a replicated message.The Fanout switch forwards messages the fastest. Business Scenario: 1. Order services nee ...

Posted on Tue, 28 Apr 2020 12:14:21 -0400 by amy_ewe

Sleuth link tracking of Spring Cloud series

This is a series of articles. If you haven't read the first episode, please jab here: Sleuth link tracking of Spring Cloud series (1) This article introduces Sleuth's Zipkin based storage link tracking data to MySQL, Elasticsearch and MQ based storage link tracking data to MySQL, Elasticsearch.    Store tracking data    Zipkin Server stores ...

Posted on Tue, 28 Apr 2020 00:35:10 -0400 by tapupartforpres

publisher confirm of RabbitMQ message confirmation mechanism

I. Confirm mode The producer sets the channel to confirm mode. Once the channel enters confirm mode, all messages published on the channel will be assigned a unique ID (starting from 1). Once the message is delivered to all matching queues, the broker will send a confirmation to the producer (including the unique ID of the message), This enabl ...

Posted on Sat, 25 Apr 2020 23:26:27 -0400 by Christam1