AWS S3 with Spring WebFlux

Eric Anicet
6 min readDec 26, 2022

In this story, we are going to explore how to use AWS S3 with Asynchronous programming using Spring WebFlux Rest API.

· Prerequisites
· Overview
What is Amazon S3?
Setting Up S3 bucket
· Spring Webflux Application
Configuring S3 clients
Upload Object
Download the file from AWS S3
AWSS3Controller
· Test the REST APIs
· Conclusion
· References

The AWS SDK for Java 1.x has asynchronous clients that are wrappers around a thread pool and blocking synchronous clients that don’t provide the full benefit of nonblocking I/O. The AWS SDK for Java 2.x provides features for non-blocking asynchronous clients that implement high concurrency across a few threads.

In this story, we are going to explore how to use AWS S3 with Asynchronous programming using Spring WebFlux as a Backend application.

Prerequisites

This is the list of all the prerequisites for following this story:

  • Spring Boot 3
  • Maven 3.8.+
  • Java 17

--

--