azos icon indicating copy to clipboard operation
azos copied to clipboard

Improve cross-node algorithm in `EventHubClientLogic.FetchAsync()`: remove duplicate payload fetch

Open zhabis opened this issue 2 years ago • 0 comments

Related #510

The current naive implementation fetches Event instances from ALL nodes in cohort, instead it should only fetch payload from the first and fetch only `(gdid)' from the rest. Then, it should try to merge results in a set in memory and then fetch bodies of THOSE events which were NOT returned by the first at all.

This optimization is possible because events are immutable.

zhabis avatar Jul 20 '21 16:07 zhabis