强大和易用是两个无法兼容的维度. 要强大,必然难用,要易用必然不会强大.
- OOA的方式,先从需求的文字性描述中分析出领域模型.
- 从领域模型中继续派生其他的场景和功能.
Message Queue - a message buffer that RabbitMQ keeps on behalf of the consumer.
无论是发送还是接收前,都需要先queue_declare,不然会发送丢失或接收失败.
Avoid doing a resource-intensive task immediately and having to wait for it to complete.
Consumer对Queue不是独占的,如果有多个Consumer同时消费一个Queue,会以round-robin的方式消费掉所有的消息
# sudo lsof -i:8000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nodejs 26993 root 10u IPv4 37999514 0t0 TCP *:8000 (LISTEN)
netstat -tunlp | grep 8000
- -t(tcp) 仅显示tcp相关
- -u(udp) 仅显示udp相关
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install nodejs
node -v
npm -v