Spring Integration: QueueChannel guarantee no data loss?

I want my system to guarantee no data loss, even if the system shuts down. This means that the system should not miss the request message. This way I will change the way I accept the http request. Now I use http gateway / webservice in spring integration. But it does not receive the message, even if the system dies. So, I want to add a queue between the http client and the http receiver. So, I want to use the queue channel. That is the question.

① Do I need to install another queue program, such as activemq or rabbitmq, and connect to the queue channel in spring integration?

② and which one is the best combination with spring integration? I heard that the mq rabbit is the best.

please give me a detailed explanation. thank.

+4
source share
1 answer

First of all, you did not understand the description ...

If you do not want to lose messages from QueueChannel, use some Persistence value MessageStore, for example JdbcChannelMessageStore: http://docs.spring.io/spring-integration/docs/latest-ga/reference/html/system-management-chapter.html#message-store

On the other hand, they exist channel wrappersfor AMQP as well as for JMS:

http://docs.spring.io/spring-integration/docs/latest-ga/reference/html/amqp.html#d4e5846

http://docs.spring.io/spring-integration/docs/latest-ga/reference/html/jms.html#jms-channel

​​ , .

Re. activemq VS rabbitmq. , , , , Spring (Spring AMQP ). .

, .

+3

All Articles