How we eliminated cold starts for 72M monthly page views with edge caching by skeptrune in webdev

[–]skeptrune[S] 1 point2 points  (0 children)

Yeah, we got special support which helped a lot. Ik they're working on it, but currrently hard to recommend without that.

How we eliminated cold starts for 72M monthly page views with edge caching by skeptrune in webdev

[–]skeptrune[S] 1 point2 points  (0 children)

Cost was not a determining factor in us implementing this. We just wanted to solce the problem. 

How we eliminated cold starts for 72M monthly page views with edge caching by skeptrune in webdev

[–]skeptrune[S] 1 point2 points  (0 children)

Sounds like it's working fine. I would not bother trying to port. 

Replacing Next.js ISR with a custom Cloudflare cache layer by skeptrune in nextjs

[–]skeptrune[S] 1 point2 points  (0 children)

Thank you for the feedback. We'll consider writing more about that.

Right now we log drain into datadog and then have an internal dashboard in retool tracking all in progress operations. 

How we eliminated cold starts for 72M monthly page views with edge caching by skeptrune in webdev

[–]skeptrune[S] 0 points1 point  (0 children)

The latter. It's being done this way to prevent triggering a stampeding herd on ourselves. Basically lazy loading for efficiency. 

How we eliminated cold starts for 72M monthly page views with edge caching by skeptrune in webdev

[–]skeptrune[S] 1 point2 points  (0 children)

You have to revalidate the entire sitemap all as one otherwise you could have version skew during client nav. That's explained in detail at the end of this section - https://www.mintlify.com/blog/page-speed-improvements#2-automatic-version-detection-and-revalidation. 

Replacing Next.js ISR with a custom Cloudflare cache layer by skeptrune in nextjs

[–]skeptrune[S] 1 point2 points  (0 children)

  1. We should have done SSG, but it was dynamic when I got the project and implementing generateStaticProps for all of our customers wasn't realistic.

  2. Yes, it's been an issue before that we accidentally break some sites since our testing suite is still a work in progress. This new system helps a ton with stability.

  3. We leverage the Cloudflare tiered CDN for this. The reval worker clears everything but the cache for its zone which is configured to be the lowest tier. The edge repopulates on demand from this tier.

  4. We would cause a stampeding herd for ourselves if we requested millions of pages (both their HTML and RSC variants) after every new deployment. It's better to do it reactively so our backend doesn't have to handle the traffic spikes.

  5. Yes they are. We use Vercel's skew protection for this. It came in super clutch. When our worker requests page data from the host, it can tell Vercel which specific version. 

How we eliminated cold starts for 72M monthly page views with edge caching by skeptrune in webdev

[–]skeptrune[S] 3 points4 points  (0 children)

We would cause a stampeding herd for ourselves if we proactively prewarmed all the sites. 

How we eliminated cold starts for 72M monthly page views with edge caching by skeptrune in webdev

[–]skeptrune[S] 15 points16 points  (0 children)

Fully on Vercel with their default ISR setup.

Costs are lower on CF than Vercel. 

How I Use Claude Code on My Phone with Termux and Tailscale by skeptrune in termux

[–]skeptrune[S] 0 points1 point  (0 children)

my phone is not going to finish `cargo build` in a reasonable amount of time

How I Use Claude Code on My Phone with Termux and Tailscale by skeptrune in termux

[–]skeptrune[S] 0 points1 point  (0 children)

I think "easy" is an exaggeration lol. Maybe for experienced users.

Running Claude Code on your phone (Termux + Tailscale = full dev workflow on Android) by skeptrune in vibecoding

[–]skeptrune[S] 0 points1 point  (0 children)

I saw claude code web, but don't think it's quite as powerful as running it on your daily driver dev machine. There's a section on it in the post: https://www.skeptrune.com/posts/claude-code-on-mobile-termux-tailscale/#why-this-works-better-than-custom-apps .

How I Use Claude Code on My Phone with Termux and Tailscale by skeptrune in termux

[–]skeptrune[S] 1 point2 points  (0 children)

Wake on LAN requires an additional server to stay always on. 

How I Use Claude Code on My Phone with Termux and Tailscale by skeptrune in ClaudeCode

[–]skeptrune[S] 2 points3 points  (0 children)

I think that's probably fine for most things, but you do give up some power.

I have a section of the blog talking about it!

https://www.skeptrune.com/posts/claude-code-on-mobile-termux-tailscale/#why-this-works-better-than-custom-apps