https://kotlinlang.org logo
#announcements
Title
# announcements
r

rajesh

01/17/2021, 6:04 PM
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

jbnizet

01/17/2021, 6:23 PM
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

rajesh

01/18/2021, 3:41 AM
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
4 Views