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
[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
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
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
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
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.
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
Get message code
A little bit of progress every dayCome on
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
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
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.
1. Order services nee ...
Posted on Tue, 28 Apr 2020 12:14:21 -0400 by amy_ewe
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
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