quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.76k stars 380 forks source link

Optimization Configuration for Integration with Quinn Library #1664

Closed songwei163 closed 11 months ago

songwei163 commented 1 year ago

Title: Optimization Configuration for Integration with Quinn Library

Body: Issue Description: I am planning to integrate the Quinn library into both my client and server applications, and I'm looking for guidance on optimizing the configuration for features like 0-RTT, 1-RTT, and connection migration.

Details: I have successfully integrated the Quinn library into my client and server applications, but I would like to optimize the configuration to make the best use of its features. Specifically, I am interested in:

0-RTT: How can I configure my client and server to take advantage of 0-RTT to reduce latency in the initial connection setup?

1-RTT: What are the recommended configurations to ensure efficient use of 1-RTT for subsequent connections?

Connection Migration: Are there any best practices or configuration options to support connection migration, particularly in the case of client mobility or server failover scenarios?

I would greatly appreciate any guidance, configuration examples, or documentation references related to these topics. Optimizing these aspects is crucial for improving the performance and resilience of my applications.

Thank you for your help!

djc commented 1 year ago

What have you already done to research the topics of 0-RTT, 1-RTT and connection migration? What documentation have you found so far?

songwei163 commented 1 year ago

RFC-9002

djc commented 1 year ago

That doesn't really count as documentation.

Look here for enabling early data:

https://docs.rs/rustls/latest/rustls/server/struct.ServerConfig.html#structfield.max_early_data_size https://docs.rs/rustls/latest/rustls/client/struct.ClientConfig.html#structfield.enable_early_data

djc commented 11 months ago

This doesn't seem very actionable, going to close this for now. Feel free to reopen if you have specific issues.