You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API supports retrieving reports generated during a fixed time interval. This means that report batches for all intervals that have occurred in the past can be cached in CDN, optimizing latency and cost.
Cloudfront is the CDN product that is available in AWS and can be used for this purpose. Some of the tasks that can be accomplished.
API Gateway endpoint to be edge-optimized
Enable caching using query string parameters as keys (intervalNumber is passed is as a query string parameter)
Automate setting up the Cloudfront infrastructure using Terraform
Terraform deployment of behaviours across CDN distribution takes a long time due to rollout to edge locations - can it be sped up?
Will POSTing of reports be required via the cloudfront url?
Will the domain api.coepi.org or cdn.coepi.org need to be moved to the cloudfront URL?
What are the requirements for invalidations (i.e. when to forcibly clear the cache)
For development - when testing
For in production - manual invalidations of cache
What are the best settings for TTL?
What report request query strings can be used for caching (if any): E.g. could we cache a report request for a particular date with an Interval number equivalent to 6 hours. This would potentially mean that no new reports would be included in a report request within the 6 hour cache time?
What would a 6 hour window relate to in terms of intervalNumber and intervalLengthMs query strings?
What can we estimate for “on-demand” capacity planning?:
What will be the typical size (in Bytes) of a typical report request (this will impact AWS cloudfront pricing)
How many report requests per hour or day or week or month?
This is required to see what the cost/benefits are?
How is it best to test this?
I had a look at Bhushans proposal - and I wonder is caching compatible with “Implementing geo-hashing so the devices only need to download keys for the device location, for maximizing scalability”
The API supports retrieving reports generated during a fixed time interval. This means that report batches for all intervals that have occurred in the past can be cached in CDN, optimizing latency and cost.
Cloudfront is the CDN product that is available in AWS and can be used for this purpose. Some of the tasks that can be accomplished.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html
The text was updated successfully, but these errors were encountered: