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

fix(demos): change demodata signed urls to serve minio bytes instead #80

Merged
merged 19 commits into from
Jun 22, 2024

Conversation

jayceslesar
Copy link
Contributor

@jayceslesar jayceslesar commented Jun 22, 2024

We were polluting the domain namespace by putting making a minio bucket of demos. The API wanted us to hit domain/demos/some_url... but that overlaps with domain/demos/... which is the websocket domain.

This change was reverted in favor of just serving the minio objects as File Responses in litestar and is deemed okay because the strain the server was feeling before was due to postgres having to paginate the large object table whereas now we are just serving bytes back from minio.

@kavorite kavorite linked an issue Jun 22, 2024 that may be closed by this pull request
@jayceslesar jayceslesar changed the title fix(demos): signed urls fix(demos): change demodata signed urls to serve minio bytes instead Jun 22, 2024
@jayceslesar jayceslesar requested a review from kavorite June 22, 2024 16:12
Copy link
Contributor

@kavorite kavorite left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

masterbase/app.py Show resolved Hide resolved
vars.sh Show resolved Hide resolved
@jayceslesar jayceslesar merged commit 0dc7682 into main Jun 22, 2024
3 checks passed
@jayceslesar jayceslesar deleted the fix/signed-urls branch June 22, 2024 17:54
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.

Pre-signed URL redirects failing on /demodata
2 participants