Discussion about this post

User's avatar
Michael Jaeger's avatar

Thank you for sharing this insightful post. I am currently exploring Spring Boot and Quarkus, particularly in the context of streaming uploads.

In your article, you introduce the "uploadToS3" method for streaming files to S3. While this approach is technically sound, I initially interpreted it as a solution for streaming file uploads directly from the client to S3. Upon closer reading, I realized that the current implementation first uploads the file in its entirety to the Quarkus server, where it is stored on the filesystem (with the default configuration), and then streams it from disk to S3.

This method is certainly an improvement over keeping the entire file in memory. However, for optimal resource efficiency, it might be beneficial to stream the file directly from the client to the S3 bucket as the data is received.

For the benefit of future readers, a solution that enables true streaming from the client to S3 could be very valuable. I have experimented with such an approach, though I am unsure if it fully aligns with idiomatic Quarkus practices. If you are interested, I would be happy to write a short blog post about it for you to reference.

Expand full comment
4 more comments...

No posts