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

Don't cache the checker healthcheck endpoint #468

Merged
merged 3 commits into from
Feb 4, 2025

Conversation

jonathonherbert
Copy link
Contributor

What does this change?

Don't use caching for the Checker service, to enable the lovely Prout-bot to do its work (#465.)

We use Cloudfront to improve service latency for global users by removing TCP slowstart and reducing TLS handshake latency – we don't care about caching content.

(Initially this PR just removed caching for the healthcheck endpoint (620eb37), but on reflection I think removing caching entirely is more appropriate.)

How to test

Deploy to CODE or PROD. You should no longer see X-Cache: Hit from cloudfront headers on requests.

Copy link
Contributor

@simonbyford simonbyford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a reasonable change. Unfortunately when I deployed the change to CODE, I was greeted by this error:

Screenshot 2024-07-31 at 16 17 50

https://checker.typerighter.code.dev-gutools.co.uk/rules

I appreciate it's been a while since you proposed this change. Do you remember seeing anything like this in your testing?

@jonathonherbert
Copy link
Contributor Author

Thanks for testing thoroughly! I'll revisit this PR soon.

@jonathonherbert jonathonherbert force-pushed the jsh/do-not-cache-healthcheck branch from be905fc to 387ef20 Compare January 23, 2025 11:54
@jonathonherbert
Copy link
Contributor Author

... for a given value of soon 😅 76fef75 should fix.

Copy link
Contributor

@rhystmills rhystmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good on CODE 👍

@jonathonherbert jonathonherbert force-pushed the jsh/do-not-cache-healthcheck branch from 76fef75 to e959a14 Compare January 23, 2025 13:49
@jonathonherbert jonathonherbert force-pushed the jsh/do-not-cache-healthcheck branch from e959a14 to aca4db0 Compare February 4, 2025 09:57
@jonathonherbert jonathonherbert merged commit d2b447c into main Feb 4, 2025
4 checks passed
@jonathonherbert jonathonherbert deleted the jsh/do-not-cache-healthcheck branch February 4, 2025 10:17
@prout-bot
Copy link

Seen on Rule Manager (merged by @jonathonherbert 10 minutes and 39 seconds ago) Please check your changes!

@prout-bot
Copy link

Overdue on Checker (merged by @jonathonherbert 15 minutes and 6 seconds ago) What's gone wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants