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

feat: option to initialize storage servers without chunker #202

Closed
wants to merge 1 commit into from

Conversation

jmwoliver
Copy link

@jmwoliver jmwoliver commented Oct 21, 2024

Description

The goal with this change is to allow storage servers to be initialized without needing a database to be running first.

By allowing the storage server to start without the chunker, it can still use Put() without chunking. When WriteChunked() or ReadChunked() are needed by the storage server, it first checks that the chunker is not nil. If it is, it will throw an error.

Initial work needed for https://github.com/rstudio/package-manager/issues/13651.

The goal with this change is to allow storage servers
to be initialized without needing a database to be running
first.

By allowing the storage server to start without the chunker,
it can still use Put() without chunking. When WriteChunked()
or ReadChunked() are needed by the storage server, it first
checks that the chunker is not nil. If it is, it will throw
an error.
@tylfin
Copy link
Member

tylfin commented Oct 22, 2024

What does the Chunker use the database for? Is there an opportunity to decouple the two entirely?

@jmwoliver
Copy link
Author

We went a different route in PPM that didn't require platform-lib changes. Closing.

@jmwoliver jmwoliver closed this Oct 25, 2024
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.

2 participants