I use Google Cloud Storage for server-side content such as user videos, images, and profile pictures. I have some doubts about what is the best practice for implementing the Google concept for Google Signed URLs.
As for me
1st: - I can save the name of the object in the database and create a signed URL to receive this content every time. But there is an additional API call from the client side.
2nd: - I can generate a signed URL during the loading of the content and save it in the database with a long term. Thus, there are no additional API calls on the client side.
But what about the expiration of the URL. Please suggest me the best approach to its implementation.
source share