My use case: I want to build spring boot rest api ...
# announcements
r
My use case: I want to build spring boot rest api that get image from client and upload it to external (cloud) server. What should I use to upload image in background on external server and respond to clients immediately after request? RabbitMQ? Rqueue? Quartz scheduler? Any other approach?
j
Your cloud provider probably has a native asynchronous client. AWS S3 for example has one https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/index.html?com/amazonaws/services/s3/transfer/TransferManager.html. If it provides a RESTful API, Spring has a buil-in asynchronous WebClient.
r
I'm using Oracle SDK and it has one default client, but if I use web client, I need to add default headers and add interceptors and its lot of work. So I'm searching for solution where task can be executed in background using default Oracle client