wsky / top-push

Message-push abstraction component, provide useful messaging components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smart push/flow-control via delivery-rate

wsky opened this issue · comments

delivery-rate means that the message pushed was processed in right way.

terrible case using top-push:

flush 100W in short time, but confirm ZERO, 
than worker got a large retry job to do, 
it will increase latency of retry message

so, i want to add the rate in push component.

auto change flushCount by the rate, 2000 -> 200 -> 100 ->10, until its rate have been become nice.
also, need knowing bad connection which no confirm and flush fewer message on it.

  • client delivery-rate
  • clientConnection delivery-rate

client: idle -> pending -> flushing