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

Test-Proxy can optionally compress request/response #9411

Open
scbedd opened this issue Nov 21, 2024 · 0 comments
Open

Test-Proxy can optionally compress request/response #9411

scbedd opened this issue Nov 21, 2024 · 0 comments
Assignees
Labels
Asset-Sync Any issues relating to moving test assets out of repos.

Comments

@scbedd
Copy link
Member

scbedd commented Nov 21, 2024

Teams discussion

The test-proxy should support a new flag that be set when StartRecording is being invoked - CompressAtRest. (Working title)

  • If set, right before the proxy writes the recording to disk, we should compress the request and response bodies of each entry.
  • This means that the request and response payloads on disk will not be human readable
  • When loading a recording from StartPlayback, these bodies should be decompressed to their original format.

All of this should be entirely transparent to the users other than:

  • The CompressAtRest boolean passed in StartRecording
  • The files at rest will have zipped bodies

It's a actually a bit of an interesting question, because the compressed bytes will need to be encoded to some serialized format, and I'm not actually certain if that'll save us space. OR the recording won't be json anymore.

@scbedd scbedd self-assigned this Nov 21, 2024
@scbedd scbedd added the Asset-Sync Any issues relating to moving test assets out of repos. label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Asset-Sync Any issues relating to moving test assets out of repos.
Projects
None yet
Development

No branches or pull requests

1 participant