Skip to content

Update event queue to support readahead to FireFly core #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2022

Conversation

peterbroadhurst
Copy link
Contributor

@peterbroadhurst peterbroadhurst commented Mar 31, 2022

Investigating the logs from a recent long run, I found a bottleneck in sequential processing of events from DX. PR hyperledger/firefly#653 addresses the big inefficiency that showed up in the long run test, and made the issue very evident in the logs.

However, for higher throughput it's obvious to me looking at this code that we need parallelism and batching in how we process blob confirmation messages in particular.

This means we need to process multiple DX events in parallel, and currently the FFDX API contract doesn't support that. You have to ack one-by-one.

This PR updates the HTTPS data exchange to add a simple readahead support, updating the ack contract so you have to specify which event you're acking.

I also updated all the dependencies in the project, and dealt with some Typescript compilation errors/changes needed with the updates.

@gabriel-indik gabriel-indik merged commit 10b23db into hyperledger:main Apr 1, 2022
@peterbroadhurst peterbroadhurst deleted the readahead branch April 1, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants