JaidenAshmore / java-dynamic-sqs-listener

Java SQS Listener library built to be customisable and dynamic during runtime
MIT License
50 stars 12 forks source link

Message listener stops pulling more messages - Ktor #376

Open SalyczeQ opened 2 years ago

SalyczeQ commented 2 years ago

Hi, I discover some issues with pulling messages. It seems that after some time of application running, the message listener stops pulling more messages from SQS. (Other parts of the app runs normally)

I am using prefetchingMessageListener in version 4.4.0 with this conf in Ktor 1.6.7.

concurrencyLevel = { 2 } messageVisibility = { Duration.ofSeconds(60) } desiredPrefetchedMessages = 5 maxPrefetchedMessages = 10

I understand that this is not easy to figure out what is exactly happening and what can be wrong. Would you have even advice on how to possibly trace this issue? Or debug it?

thanks, Saly

JaidenAshmore commented 2 years ago

Hey, sorry for the delay!

yeah we publish a bunch of DEBUG logs that could help you nail it down so make sure that the com.jashmore namespace is in DEBUG.

The most likely problems that could be causing this are:

If you were able to reproduce the problem with this example I could help look into debugging but it is hard to know without being able to reproducing it myself.

Let me know how you go!