The use of golang rabbitmq

In the second chapter, we talked about the exchange of fanout type. The fanout type exchange will send messages to all the queues that are bound with it, without distinguishing and filtering. But in reality, we often need to have filtering conditions to separate different messages and send them to different queues. For example, the log of the s ...

Posted by tommyboy123x on Tue, 19 Nov 2019 08:29:00 -0800

The use of golang rabbitmq

golang can use the library github.com/streadway/amqp to operate rabbitmq install go get github.com/streadway/amqp Connect conn, err := amqp.Dial(amqp://guest:guest@172.17.84.205:5672/) Establishing channels ch, err := conn.Channel() Statement Queue q, err := ch.QueueDeclare( "testqueue", //Queue name true, //dura ...

Posted by black.horizons on Fri, 15 Nov 2019 06:12:49 -0800

RabbitMQ Installation and Startup Error description:noproc Solution

Because erlang was installed first when RabbitMQ was installed by the building owner, The commands are as follows: 1. Download the erlang source package wget http://erlang.org/download/otp_src_22.0.tar.gz 2. Decompression tar -zxvf otp_src_22.0.tar.gz 3. Install erlang compilation dependency Libraries Missing this step Errors ...

Posted by ady01 on Thu, 07 Nov 2019 07:03:35 -0800

SpringBoot 22: integrating RabbitMQ

brief introduction In the Spring project, you can use Spring rabbit to operate RabbitMQhttps://github.com/spring-projects/spring-amqp Especially in the spring boot project, you only need to introduce the corresponding amqp initiator dependency. It is convenient to use RabbitTemplate to send messages a ...

Posted by dutchboy on Sun, 27 Oct 2019 23:19:56 -0700

RabbitMQ notes - getting started

Rabbitmq is a popular open source message queuing system, which is developed in erlang. The default port number is 5672, while the default port number of its background management system is 15672. The content of this blog post is an entry program used by rabbitmq, including message producers and cons ...

Posted by nlhowell on Fri, 25 Oct 2019 10:33:08 -0700

Spring Cloud Stream for communication between services

Spring Cloud Stream The underlying implementation of Srping cloud Bus is Spring Cloud Stream, which is designed to build a message-driven (or event-driven) micro-service architecture. Spring Cloud Stream itself encapsulates (integrates) and extends modules such as Spring Messaging, Spring Integration, Spring Boot Actuator, Spring Boot Externali ...

Posted by offnordberg on Mon, 14 Oct 2019 13:21:14 -0700

Talk about Spring Cloud Bus

Spring event driven model Because the operating mechanism of Spring Cloud Bus is also Spring event-driven model, it is necessary to understand the relevant knowledge points first. The diagram above is a schematic implementation of Spring event-driven model. The following is a supplement to the implementation details not mentioned in the diagram ...

Posted by JakeTheSnake3.0 on Wed, 09 Oct 2019 11:09:12 -0700

rabbitmq maintains connection

Background: Recently on-line MQ consumer process ok, but rabbitmq console shows no consumption process, resulting in MQ queue message accumulation, previously directly restart mq, this decision to explore the reasons Operating time-consuming Daemons For business reasons, every time 30 W records ...

Posted by psycovic23 on Mon, 23 Sep 2019 00:34:39 -0700

Solve thoroughly the problems of time conversion and serialization in Spring mvc

Pain spot When developing with Spring mvc, we often encounter that the time strings in some format passed from the front end can not be directly received with the specific type parameters under the java.time package, a new feature of Java 8. We use encapsulation types with java.time Parametric reception also reports deserialization problems, a ...

Posted by jwoo on Wed, 18 Sep 2019 03:55:11 -0700

rabbitmq delay queue (dead letter queue)

Notes on the rabbitmq dead letter queue used in development Application scenarios for delayed queues 1. Cancellation of unpaid orders on time 2. Timely cleaning of cached objects, idle connections, etc. 3. Within 30 minutes after successful placing of the order, notices should be sent at different time intervals (1 min, 3 min, 10 min once). 1. ...

Posted by dreams4000 on Mon, 09 Sep 2019 03:10:27 -0700