Replenishing a sender with credits

66 views Asked by At

I am trying to implement a Hono sender that sends a large amount of data to a Hono instance however I keep running into an issue with the sender running out of credits. Specifically. "cannot send message while waiting for replenishment with credit". How can I trigger the sender to be replenished with credits or wait for more credits to be available before sending the next message?

1

There are 1 answers

0
ctron On

One reason for this may the fact that you do not have a consumer running when sending telemetry data. Hono does handle back-pressure by waiting for a consumer to be capable of receiving messages. However, if there is no consumer currently running, then then your sender will not receive credits as well.

Also see: https://www.eclipse.org/hono/deployment/openshift/#uploading-telemetry-with-http