flashbots / flashbots/hindsight

maybe pool eth ws clients or create new ones ad-hoc?

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
130
Forks
19
PR merge metrics
No merged PRs in 30d

Description

when looking at the debug logs, I'm noticing that the service_request id is incrementing serially. That tells me that the same client is being used for all requests, which makes sense bc that's how I designed it. But I wonder if it will cause problems, i.e. if the ID maxes out its type -- that would practically never happen with a u64, though. What other problems might occur from using the same client for every request?
Does it force the responses to be processed serially by the node? In that case we could be missing out on parallelization gains.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by tracing how the shared Ethereum WebSocket client generates service_request IDs and how responses are processed, then compare that behavior with pooled or ad-hoc clients; done means documenting whether reuse limits concurrency or creates other problems and choosing an approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.