Closed johngian closed 2 years ago
@johngian I have worked on an architecture that's similar to what you're describing. I put together a post on it here though much of the post is about using serverless tech. The final architecture is kind of the inverse of what you're proposing. Here's the request flow:
Essentially you have a CDN point to an S3 bucket, if the S3 bucket produces a miss, then the request is redirected to the tegola endpoint which proceeds as normal.
Do you think something like this would work for you?
I have to check our caching layers and how this would be implemented in our deployment scenario. Thanks @ARolek for the information.
@johngian I'm going to close this now, but feel free to re-open if you need additional help on this issue.
From what I understand from the codebase, currently, the supported request/response flow for for the s3 caching backend is:
I think it would be a useful feature for some deployment scenarios to optionally support returning an HTTP redirect to S3 (or potentially a CDN in front of S3 or any other compatible API) instead of increasing the load and latency on the server side to fetch the s3 cached results and respond.