pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
61 stars 33 forks source link

[Utility] Optimize usage of HTTP client for performing relays #837

Open adshmh opened 1 year ago

adshmh commented 1 year ago

Objective

Optimize usage of HTTP client, e.g. for connection reuse, by the servicer. This can be very important depending on the volume of relays a servicer is expected to handle.

Origin Document

Part of work on #754

Starting point, from #803:

image

and

image

Goals

Deliverable

Non-goals / Non-deliverables

General issue deliverables

Testing Methodology


Creator: @adshmh Co-Owners: @Olshansk

Olshansk commented 1 year ago

@adshmh NIT (no action but for future reference): If there is a screenshot you can take of the code, PR or documentation as part of the origin document, I've found it really helps both the owner (in case a lot of time goes by), myself and others.

For this one, I could find anything perfect, but this from #778 is a good starting point to look at the code

Screenshot 2023-06-20 at 10 41 27 AM

adshmh commented 1 year ago

@adshmh NIT (no action but for future reference): If there is a screenshot you can take of the code, PR or documentation as part of the origin document, I've found it really helps both the owner (in case a lot of time goes by), myself and others.

For this one, I could find anything perfect, but this from #778 is a good starting point to look at the code

Thank you for the suggestion. I updated the Issue description with 2 screenshots which focus on the specific area this issue is about.