Allow the ProviderManager to have more paralleism #729
Labels
effort/days
Estimated to take multiple days, but less than a week
exp/intermediate
Prior experience is likely helpful
kind/enhancement
A net-new feature or improvement to an existing feature
need/triage
Needs initial labeling and prioritization
The ProviderManager has a single event loop for managing all requests (puts, gets, etc.)
go-libp2p-kad-dht/providers/providers_manager.go
Line 113 in 06918c8
The major operations in the event loop such as add and get provider block the event loop and can potentially take a long time (e.g. a network based datastore lookup)
go-libp2p-kad-dht/providers/providers_manager.go
Lines 135 to 153 in 06918c8
This would lead to the provide manager getting backlogged and a slow down in network responses.
If instead we allow for parallelism on the calls happening within the event loop, such as allowing many adds or gets happening at the same time, then we'd be enabling users to reduce response latencies by increasing the resources they use.
The text was updated successfully, but these errors were encountered: