Skip to content

Conversation

@lcian
Copy link
Member

@lcian lcian commented Dec 19, 2025

Provides a simple implementation for the batch endpoint that simply loops through the requests in batch and executes them sequentially.
This is already an improvement over having to issue multiple single-object requests, and prepares us to work on the client-side implementation of batching.
The endpoint can be changed later to issue requests in batches to the underling StorageService to make this even more efficient.

@lcian lcian changed the base branch from main to lcian/feat/batching-server December 19, 2025 13:21
@lcian lcian changed the title Lcian/feat/batching service feat: Batching implementation Dec 19, 2025
@lcian lcian changed the title feat: Batching implementation feat: Batch endpoint implementation Dec 19, 2025
}

#[cfg(test)]
mod tests {
Copy link
Member Author

Choose a reason for hiding this comment

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

Sloppy test generated by Claude.
We will replace this with e2e tests using the clients after we have client implementations of batching.

let mut headers = metadata.to_headers("", false).unwrap();
headers.insert(
HEADER_BATCH_OPERATION_STATUS,
HeaderValue::from_static("200"),
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not implemented properly.
We should proceed with https://linear.app/getsentry/issue/FS-220/improve-error-handling.
Afterwards, we can implement this and IntoResponse properly based on the error.

@@ -0,0 +1,134 @@
//! Utilities to represent and serialize multipart parts.
Copy link
Member Author

Choose a reason for hiding this comment

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

The serialization has been adapted from https://crates.io/crates/multipart-stream
We might be able to get away with axum's MultipartForm instead.

@lcian lcian changed the title feat: Batch endpoint implementation feat(server): Implement batch endpoint Dec 19, 2025
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