Skip to content
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

Avoid redundant queries to Poet service /proofs #5786

Open
poszu opened this issue Mar 28, 2024 · 0 comments
Open

Avoid redundant queries to Poet service /proofs #5786

poszu opened this issue Mar 28, 2024 · 0 comments

Comments

@poszu
Copy link
Contributor

poszu commented Mar 28, 2024

Description

With the support for 1:N, a node builds NiPoST for many IDs. They all register in the same poet services and later query them multiple times for the same proof. It causes N times more network traffic than necessary.

The poet client should avoid redundant queries. It could keep track of pending requests and wait for the result of the pending request (for the given proof).

💡 The operators of a node running a 1:N could also avoid redundant queries by placing a caching HTTP proxy (Nginx) between the node and poets.

Affected code

The NipostBuilder and the HTTP poet client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants