I am currently trying to develop a "social media like" app as a personal project (to learn more) I am currently designing the way my object storage will notify that an object has been successfully stored...
I can think of two ways of notifying my spring boot backend that my object was successfully stored into my bucket :
- Via the response of the request to the presigned link, the client notifies the success to the backend
- Via an AWS lambda function called once an object is stored that will request to my backend
I don't know what is better and would like to know more about the pros and cons of the two methods I proposed
An Amazon S3 event can be triggered when an object is created in a bucket. It can:
I'd recommend either polling SQS or receiving an HTTP/S message.