Design 47 H1: the event hub pulls small batches and keeps slow handlers alive (H-A-281) #208

Merged
mesh-tools merged 1 commits from fix/47-H1-sdk-hub-small-pulls into main 2026-11-21 15:51:39 +00:00
1 Commits
Author SHA1 Message Date
jschoubben fedf9d2e7b Pull small batches in the event hub and keep slow handlers alive (H-A-281)
The hub pulled the bus client's default 500 messages per pull and handled
them one by one, so buffered messages outlived the 30 s ack wait and were
given again and handled twice (met live on the builder: 37 of 38
outstanding redelivered). HearEvents, the one pull of the hub and of
HearStream, now pulls at most twenty messages per pull and says in
progress for a message whose handler runs past a third of the consumer's
ack wait, read once from the bound consumer's information.

Builds: design 47 H H-A-281
2026-11-21 16:48:05 +01:00