Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only use Prout on endpoints without heavy caching #466

Closed

Conversation

rtyley
Copy link
Member

@rtyley rtyley commented Mar 20, 2024

Following on from #465, of these two checkpoint endpoints:

...because of the long cache time on Checker, I think it's going to be too confusing to point Prout at it?

image
https://prout-bot.herokuapp.com/view/guardian/typerighter

I think if Prout was making a POST request to checker.typerighter.gutools.co.uk, it would presumably get a fresh response from the cache, but it would probably also need to authenticate, for which in Prout there's no mechanism available at the moment.

Of these two endpoints:

* https://manager.typerighter.gutools.co.uk/healthcheck - goes direct to ELB
* https://checker.typerighter.gutools.co.uk/healthcheck - is behind Cloudfront, and seems to have 1-hour cache time

...because of the long cache time on https://checker.typerighter.gutools.co.uk/healthcheck,
I think it's going to be too confusing to point Prout at it?

I think if Prout was making a POST request to checker.typerighter.gutools.co.uk, it would
presumably get a fresh response from the cache, but it would probably also need to
authenticate, for which in Prout there's no mechanism available at the moment.
@rtyley rtyley requested a review from a team as a code owner March 20, 2024 18:26
@jonathonherbert
Copy link
Contributor

Thanks for this, @rtyley! I don't think we should be caching at all – #468 explains why, and removes caching entirely, which should mean this is unnecessary ✨

@jonathonherbert jonathonherbert deleted the only-use-prout-on-endpoints-without-heavy-caching branch April 29, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants