生产者把消息发送到master,不会发送到slave
消费者可以从maste也可以从slave消费消息
如果master挂了,那就从slave消费数据,那么slave怎么拿到master中的数据
这就要用到主从复制