Large RabbitMQ message in Slow network

前端 未结 2 1316
滥情空心
滥情空心 2021-01-22 16:26

I am using RabbitMQ with Spring AMQP

  • large message (>100MB, 102400KB)
  • small bandwidth (<512Kbps)
  • low heartbeat interval (10 seconds)
2条回答
  •  鱼传尺愫
    2021-01-22 16:59

    1. Will I also face the disconnection issue even I am using single broker?

    Yes

    1. Does the heartbeat and consumer use the same thread, where if consumer is consuming, it is not possible to perform heartbeat?

    Can't confirm the thread, but from what I observe when Java RabbitMQ consumer consumes a message, it won't perform heartbeat acknowledgement. If the time to consume longer than 3 x heartbeat timeout timer (due to large message and/or low bandwidth), MQ server will close AMQP connection.

    1. If so, what can I do to consume the message, without increase heartbeat interval or reduce my message size?

    I resolved my issue by increasing heartbeat size. No further code change is required.

提交回复
热议问题