question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide the delayed message publish rate stats

See original GitHub issue

Is your enhancement request related to a problem? Please describe. Currently, the producer stats contains the following information

{
    "accessMode" : "Shared",
    "msgRateIn" : 0.016669007231704083,
    "msgThroughputIn" : 11.384931939253889,
    "averageMsgSize" : 683.0,
    "chunkedMessageRate" : 0.0,
    "producerId" : 2,
    "metadata" : { },
    "address" : "/xxxx",
    "connectedSince" : "2022-03-07T14:32:57.52849Z",
    "producerName" : "xxx"
  }

From the stats, we are not able to know whether the problem is sending delayed messages or not, it will be useful for some cases to troubleshoot problems.

Describe the solution you’d like Add “delayedMsgRateIn” in the producer stats

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shibdcommented, Mar 7, 2022

@codelipenghui I want to try it.

0reactions
Technoboy-commented, Mar 10, 2022

@codelipenghui The delays is placed in the MessageMetadata. This feature will make the broker additional a deserialization MessageMetaData when receiving the producer message. Can we accept the performance impact?

Or, We need add new field hasDeliver to CommandSend, This can avoid deserialization the data of MessageMetadata. This is an API protocol change, We need to discuss first. @codelipenghui @Technoboy- PTAL

I will help to check first and then decide to send out a discussion email.

Yes, you’re right. If add this field in the CommandSend, it is duplicated with MsgMetadata, and deserialization is much heavier, so after discussion, we decide to close this issue now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance of Delayed Message Exchange - Mariusz Wojcik
Delayed messages publish rate when there are no consumers. Delayed messages publish rate with 100% consumer utilisation. Testing environment.
Read more >
RabbitMQ Delayed Messages 101: How to Delay & Schedule ...
To delay a message, the user must publish it with the x-delay header, which accepts an integer representing the number of milliseconds the...
Read more >
Delayed publish | EMQX 4.4 Documentation
When a client publishes a message to EMQX Broker with the special topic prefix $delayed/{DelayInteval} , the delay-publish function is triggered.
Read more >
Amazon SQS delay queues - Amazon Simple Queue Service
Delay queues let you postpone the delivery of new messages to consumers for a number of seconds, for example, when your consumer application...
Read more >
Publish a pubsub message with a delay - Stack Overflow
I am looking for a way to publish a pubsub message with a one minute delay. I have roamed through their API yet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found