Closed strongbugman closed 2 years ago
Your code make useless workload to the rabbitmq. Your code send frame each .get()
and receive an answer each iteration, instead of send consume frame and awaiting incoming messages. This make unexpected workload to the server. You should rewrite it using consume or async for queue.iterator()
.
Also I recommend configure QoS for optimize memory consumption.
I got it, the queue.get
confused me, thx.
I write some code like :
It worked well but depleted all CPU resourse:
Does it meet your expectations? Or there is some thing I missed?
PS: I use this solution for now: