Relationship of RabbitMQ connection channel
Original link: https://www.ahianzhang.com/post/rabbit-network/ The Rabbit java client sends the message code as follows 1 2 3 4 5 6 7 8 Connection connection = connectionFactory.newConnection(); Channel channel = connection.createChannel(); AMQP.BasicProperties basicProperties = new AMQP.BasicProperties().builder() .messageId (UUID.randomUUID().toString()) .build(); channel.basicPublish(“biz”,”dev.hello”,false,basicProperties,”Hello World”.getBytes()); channel.close(); connection.close(); For AMQP 0-9-1 network connection, a client will establish a Tcp long connection (Connection) […]
Relationship of RabbitMQ connection channel Read More »