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

Performance: Adds optimized request headers #1949

Merged
merged 19 commits into from
Oct 26, 2020

Conversation

j82w
Copy link
Contributor

@j82w j82w commented Oct 21, 2020

Pull Request Template

Description

This uses a generated file to create a list of well known headers for Item point operations. This allows the properties to be directly set instead of doing a dictionary lookup.

This makes CosmosMessageHeadersInternal a contract which then has custom implementation for request headers and response headers.

Overall +50 to 100 Rps improvement for read item stream operations

*Create is just creating the object
*Read is object creation + adding all the headers used for a normal read scenario
*Keys is used in transport layer to iterate and populate the transport objects
image

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)
  • [] New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [] This change requires a documentation update

Closing issues

To automatically close an issue: closes #IssueNumber

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors) Description"

Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@j82w j82w changed the title Performance: Add optimized request headers Performance: Adds optimized request headers Oct 21, 2020
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors) Description"

Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@github-actions github-actions bot dismissed stale reviews from themself October 21, 2020 13:10

All good!

Copy link
Member

@ealsur ealsur left a comment

Choose a reason for hiding this comment

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

LGTM

@kirankumarkolli
Copy link
Member

What's the E2E impact?

From the attached chart reads are more optimal compared to creates. Does that fit well into the overall requirements?

@j82w
Copy link
Contributor Author

j82w commented Oct 26, 2020

What's the E2E impact?

From the attached chart reads are more optimal compared to creates. Does that fit well into the overall requirements?

Please see the updated PR description.

@j82w j82w changed the title Performance: Adds optimized request headers Performance: Adds optimized request headers1 Oct 26, 2020
@j82w j82w changed the title Performance: Adds optimized request headers1 Performance: Adds optimized request headers Oct 26, 2020
@j82w j82w merged commit 58c0744 into master Oct 26, 2020
@j82w j82w deleted the users/jawilley/perf/request_headers branch October 26, 2020 13:29
@ghost
Copy link

ghost commented Dec 15, 2021

Closing due to in-activity, pease feel free to re-open.

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.

3 participants