Seeking for advice here. My workflow is as below: ...
# announcements
r
Seeking for advice here. My workflow is as below: Mobile app send photo/video to spring boot backend, spring boot upload it to cloud object storage and add metadata to database. Question is: While spring boot is uploading file to cloud, how to respond mobile client immediately and notify them about upload success? I thought of creating work request and let client poll it.
f
I did sth similar with springs
@Async
maybe that helps. However in most cases uploading the data from a client to the backend takes significantly more time and most cloud storages uploads from within the network should only take a small portion of the total time. So you might try to optimize on the wrong end here.
r
I used springs
@Async
too, but was thinking about that point if I can improve. Anyway you're correct. Just fire and forgot options is fine.