Message queue (section 1)

Message queue (section 1)

1. There are many kinds of message queue products, such as kafka, rabbitMQ, rocketMQ, activeMQ, etc.

在学习这些产品时,都需要从以下几个方面来着手
1)常用的API 如何发送接收消息
2)如何实现MQ高可用
3)MQ的集群和容错机制
4)MQ的持久化
5)MQ如何延迟和定时发送消息,如何保证消息有序
6)MQ的签收机制
7)这些MQ如何和Spring、SpringBoot 整合
8)这些消息队列有什么不同,使用场景有那些差异?
9)他们是用哪些语音开发的?
kafka(java、scale)、rabbitMQ(erlang)、rocketMQ(java)、activeMQ(java)

2. The operation of the spike module in the e-commerce business:

Read order, inventory check, inventory freeze, balance query, balance freeze, order generation, balance deduction, inventory deduction, flow generation, balance unfreeze, warehouse from unfreeze

3. Two ports of activeMQ 61616 background port, 8161 web page port

4. Check if the background program is alive

ps -ef|grep activemq | grep -v activemq
netstart -anp|grep 61616
lsof -i:61616

5. linux turn off the firewall command

1)查看防火墙状态:
service iptables status
systemctl status firewalld
2)暂时关闭防火墙
systemctl stop firewalld
service iptables stop
3)永久关闭防火墙
systemctl disable firewalld
service iptables off
4)重启防火墙
systemctl enable firewalld
service iptables restart
5)查看版本
forewalld -cmd -version

6. Message queue workflow

1)创建连接工厂
2)连接工厂创建连接,得到连接
3)连接创建session
4)session创建消息生产者或者消息消费者
5)消息生产者组装消息,并发送 

Guess you like

Origin blog.csdn.net/weixin_39472101/article/details/114692936
Recommended