How does the communication between a Laravel API consuming an Oracle Storage Cloud API work?

0

I am developing an API in laravel and to upload / download files I use the api Oracle Storage Cloud.

My question arises regarding communication between Client-Front > API Laravel > API Storage. Let's imagine the following senario:

1- Requests to download a file via the Front application

2- API Laravel authenticates to storage and requests the file

3- A Storage returns the file for the Laravel API

4- The Laravel API returns the file for the Front End Application

Finally, I would like to know if this is the correct way to implement it, I would like to know mainly about application performance, since the file still goes through the Laravel API before arriving at the client application.

Would it be nice to have a cache in the laravel API to decrease the response time of a file request? if so, this cache file would not consume much of the server's resource, would it become immense over time?

Or would it be better to implement a form of the front request a link to API, and from this link, request directly in the Storage API? If so, then the Storage authentication logic is in the API and it is probably impracticable to give authentication access to the storage for each API client.

If anyone can help, thank you.

    
asked by anonymous 27.09.2018 / 17:52

0 answers