forked from bcgov/common-object-management-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Auth Read Object
Csaky edited this page Jul 17, 2023
·
1 revision
Reference: API Specification for more details.
A common use case for COMS is to download a specific object from object storage.
Depending on the download
mode specified in the request, the COMS readObject
endpoint will return one of the follwoing:
- The file directly from S3, by first doing a HTTP 302 redirect to a temporary pre-signed S3 object URL
- The file streamed/proxied through COMS
- The temporary pre-signed S3 object URL itself
COMS uses the redirect flow by default because it avoids unnecessary network hops. For significantly large object transactions, redirection also has the added benefit of maximizing COMS microservice availability. Since the large transaction does not pass through COMS, it is able to remain capable of handling other client requests.
Figure 2 - The general network flow for a typical COMS object request
Return Home
1. API User Guide:
2. Deployment Guide
3. The Hosted Service: