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

Implement ndjson HTTP delegated routing GET API #5

Merged
merged 1 commit into from
Jan 29, 2023

Conversation

masih
Copy link
Member

@masih masih commented Jan 28, 2023

Implement the streaming API for HTTP delegated routing. The lookup response can now be encoded as IPNI response payload or HTTP delegated routing GET provider records.

@masih masih requested a review from willscott January 28, 2023 18:10
Implement the streaming API for HTTP delegated routing. The lookup
response can now be encoded as IPNI response payload or HTTP delegated
routing `GET` provider records.
Copy link
Member

@willscott willscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this one supports the 'accept' type but doesn't attempt to stream back records, right?

@masih
Copy link
Member Author

masih commented Jan 28, 2023

Not sure what you mean?

Comment on lines +77 to +79
if d.f != nil {
d.f.Flush()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flushes will be relatively expensive. we should understand how many packets we're potentially sharding a respond into and try hard to minimize it.

@masih masih merged commit d15f634 into main Jan 29, 2023
@masih masih deleted the masih/http_dr_response branch January 29, 2023 09:58
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.

None yet

2 participants