How does AMQP overcome the difficulties of using TCP directly?
问题 How does AMQP overcome the difficulties of using TCP directly when sending messages? Or more specifically in a pub/sub scenario? 回答1: In AMQP there is a broker, that broker receives the messages and then does the hard part about routing them to exchanges and queues. You can also setup durable queues which save the messages for clients even when they are disconnected. You could certainly do all this yourself, but it's a tremendous amount of work to do correctly. RabbitMQ in particular has been