hyper63 / hyper63/hyper

feat(connect): `storage.upload` and `storage.download` should attempt to use signed urls, if possible

Aperta
#526 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
storage storage upload limit upload
Lingua principale
TypeScript
Stelle
79
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

As an engineer maintaining the hyper cloud platform,
I would the like the `hyper-connect` SDK to use the `signedUrl` flow for `storage.upload` and `storage.download`, whenever possible
so that load can be distributed off of the hyper service and instead be placed directly on wrapped services.

## Background

Files can be uploaded and downloaded directly using hyper OSS and hyper cloud.
file serving can be considerable load on the system, especially with large files being uploaded or downloaded.
Hyper Storage adapters may implement the `useSignedUrl` flow for both `getObject` and `putObject`, which returns a presigned url that the consumer can then interact with, directly. `hyper-connect` being a consumer, we would like it to use this `signedUrl` flow whenever possible, to reduce load put onto the actual hyper system, as is one of the use cases for the `signedUrl` flow.

for `upload` and `download` `hyper-connect` should attempt to first obtain a presigned url from hyper, for each flow, respectively. If hyper-connect is not able to obtain a presigned url ie. the adapter doesn't support presigned url flow (probably should be a status code for this) ie. a local-only adapter, then `hyper-connect` should transparently fallback to using the regular `upload` and `download` directly through hyper.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dai punti di ingresso hyper-connect storage.upload e storage.download e traccia come gli adapter getObject e putObject espongono il supporto a signedUrl. Verifica che ogni flusso provi prima una URL presigned e ricada in modo trasparente sul normale percorso hyper quando l’adapter non è in grado di fornirne una; l’issue non indica file o test specifici.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
api, backend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.