RabbitMQ中的几个核心概念
01、broker:消息队列的服务主机
02、vhost:虚拟主机,一个Broker可以有多个vhost,用于实现用户(权限)的分离
03、exchange:消息交换机,用于分发消息到队列
04、queue:消息队列的载体,每个消息都会被投入到一个或多个队列
05、binding:将Exchange与Queue按照RoutingKey规则进行绑定
06、routingKey:路由Key,Exchange根据RoutingKey进行消息分发
07、producer:消息生产者
08、consumer:消息消费者
09、connection:连接
10、channel:消息通道,每个Channel代表一个会话任务
常用方式
1、单个生产者发送消息单个消费者接收消息http://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html
2、Work queues 单个生产者发送消息多个消费者接收消息
http://www.rabbitmq.com/tutorials/tutorial-two-dotnet.html
3、Publish/Subscribe 发布/订阅模式
http://www.rabbitmq.com/tutorials/tutorial-three-dotnet.html
4、Routing 路由模式
http://www.rabbitmq.com/tutorials/tutorial-four-dotnet.html
5、Topics 主题模式
http://www.rabbitmq.com/tutorials/tutorial-five-dotnet.html
6、RPC 模式
http://www.rabbitmq.com/tutorials/tutorial-six-dotnet.html
-------------------------------------------------
技术交流QQ群:588273396
-------------------------------------------------