Latest / Ship It Weekly - DevOps, SRE, Platform and Cloud Engineering News / Cloudflare’s Workers Scheduler, AWS DBs on Vercel, and JIT Admin Access
Transcript
- 0:00Thank you. Hey, I'm Brian Teller. I work in DevOps
- 0:09and SRE and I run Teller's Tech. Ship It Weekly
- 0:13is where I filter the noise and pull out what
- 0:15actually matters when you're the one running
- 0:18infrastructure and owning reliability. If something's
- 0:22hype, I'll call it hype. If it changes how you
- 0:25operate, I'll break it down in plain English.
- 0:28Most weeks, this is a quick news recap. In between
- 0:31those, I drop interview episodes with folks across
- 0:34the DevOps world. Happy holidays. Merry Christmas,
- 0:38all that good stuff. It's the day after Christmas,
- 0:41so if you're listening while hiding from your
- 0:43family, checking one thing real quick, I respect
- 0:46it. Quick piece of housekeeping, the new site
- 0:49is live at shipitweekly .fm. That's where I'm
- 0:53putting links and show notes. Also, I'm looking
- 0:55for interview guests. If you're building real
- 0:58infra or platform stuff and you want to come
- 1:01on for a chill conversation episode, hit the
- 1:04email on shipitweekly .fm. If you've got war
- 1:07stories, even better. And one quick ask before
- 1:10we start. If the show has been useful, hit follow
- 1:13or subscribe wherever you are listening. And
- 1:15if you've got 10 seconds, a rating or review
- 1:18really helps way more than it should. All right,
- 1:21three main stories for today. First, Cloudflare
- 1:24wrote up how they built an internal maintenance
- 1:27scheduler on workers. This is real platform engineering.
- 1:31Memory limits. data modeling, query optimization,
- 1:35caching, Parquet for historical analysis. Second,
- 1:39AWS databases are now available directly in Vercel
- 1:43marketplace. It's a quiet shift, but it's a big
- 1:46one. Devs can click button real AWS databases
- 1:50from inside Vercel, but you still have to own
- 1:53governance, billing, and the blast radius. Third,
- 1:56there's an open source project from AWS called
- 1:59Team. Temporary Elevated Access Management, and
- 2:03it's built around IAM Identity Center. It's approval
- 2:06-based, time -bound access. This is one of those
- 2:09everybody wants it, few implement it cleanly
- 2:12problems. Then we'll do a lightning round, and
- 2:14we'll close with Mark Brooker's What Now? Handling
- 2:17Errors in Large Systems. Let's get into it. Cloudflare
- 2:21has a really good post on how they built an internal
- 2:24maintenance brain on workers. The core problem
- 2:27is kind of obvious once you hear it. when you
- 2:29run infra at their scale you cannot rely on humans
- 2:33to remember every dependency and every weird
- 2:36routing rule and every if these two things go
- 2:39down at the same time a customer special setup
- 2:42gets wrecked scenario so they built a centralized
- 2:46scheduler that treats maintenance like a set
- 2:49of constraints like we must always have at least
- 2:53one of these routers active or this customer
- 2:56pins traffic through these data centers, so don't
- 3:00take all of them out at once. The fun part is
- 3:03how they got it working within worker's limits.
- 3:06Their first naive approach was basically load
- 3:09everything into one worker. All the relationships,
- 3:12all the product config, all the metrics, then
- 3:16compute constraints. And even in proof of concept,
- 3:19they hit out of memory errors. So they took a
- 3:22step back and said, okay. Workers have limits.
- 3:26We can't treat this like a giant in -memory analytics
- 3:29job. We need to only load the data that matters
- 3:32for the specific maintenance request. If you
- 3:35get a maintenance request for your router in
- 3:37Frankfurt, you probably do not need to load Australia.
- 3:41You need the dependency neighborhood around that
- 3:43router. that pushed them into graph modeling
- 3:46they describe constraints as objects and associations
- 3:50basically vertices and edges routers are objects
- 3:54pulls are objects and the dependencies are associations
- 3:57and then they built a typed association interface
- 4:01so the constraint logic stays simple but the
- 4:04backing implementation can get smarter over time
- 4:07then they flip their data fetching style instead
- 4:10of pulling down huge responses and filtering
- 4:13locally They started doing targeted requests
- 4:16through the graph interface. They claim response
- 4:19sizes dropped by 100 times in one spot. That's
- 4:23huge. Also, it's the exact kind of win you get
- 4:26when you stop shipping your entire dataset into
- 4:30your app layer just to throw most of it away.
- 4:33Of course, that created the next problem. sub
- 4:36-request limits. They traded a few massive requests
- 4:39for a ton of tiny requests. And then they started
- 4:43breaching sub -request limits. So they built
- 4:46a fetch pipeline with request deduping, a small
- 4:50LRU cache, edge caching via caches .default,
- 4:54and sane retry and back off. After tuning, they
- 4:59were seeing about a 99 % cache hit rate on those
- 5:02fetches. That's wild. And it's It's also how
- 5:05you make something like this survive at scale
- 5:08without tuning your internal APIs into a creator.
- 5:12Then there's a super relatable metric story.
- 5:14They use Thanos for Prometheus queries, and they
- 5:18call out what a lot of teams do by accident.
- 5:21Ask for everything. Get megabytes back, parse
- 5:25JSON into single -threaded runtime, then filter
- 5:29most of it out. That's basically self -inflicted
- 5:32pain. instead they use the graph to find the
- 5:35specific relationships first then issue much
- 5:39more targeted thanos queries they say average
- 5:41response size went from multiple megabytes to
- 5:44about one kilobyte in one case so the theme of
- 5:48this story is stop dragging huge blobs of data
- 5:51into your application just so you can toss 99
- 5:54of it and then they bring it home with historical
- 5:57analysis real time is one thing historical is
- 6:01a different because now you're scanning months
- 6:04of data to see if your logic is actually safe
- 6:07and accurate. They talk about how Prometheus
- 6:10TSDB blocks are not really designed for object
- 6:14storage access patterns and how that turns into
- 6:16a lot of random reads. So they adopt a parquet
- 6:19conversation layer for historical data. Columnar
- 6:23format. better stats, and you can fetch what
- 6:26you need without slamming object storage with
- 6:28random IO. Takeaways you can steal even if you're
- 6:31not Cloudflare. If you're building platform brains
- 6:34like schedulers, deploy orchestrators, policy
- 6:38evaluators, you will hit limits. Memory, CPU,
- 6:42API quotas, request fanout. You win by changing
- 6:47the shape of the problem, not brute forcing it.
- 6:50Graph interfaces are a cheat code for dependency
- 6:53-heavy domains. And targeted queries plus caching
- 6:57plus backoff is still undefeated. All right,
- 7:00let's move from Cloudflare did adult engineering
- 7:03to developers can click -button databases. AWS
- 7:07announced that AWS databases are now available
- 7:10on the Vercel marketplace. The headline is simple.
- 7:14From Vercel, you can provision and connect to
- 7:17Aurora Postgres, Aurora DSQL, and DynamoDB in
- 7:22seconds. And here's the part platform folks should
- 7:25not ignore. The onboarding path is basically
- 7:28create a new AWS account from Vercel with some
- 7:32starter credits. So the dev experience is you're
- 7:35already in Vercel. You click a thing, and now
- 7:38you have a database, and the app is wired up.
- 7:41That is great for Velocity. It is also the kind
- 7:44of thing that bypasses governance if you don't
- 7:47get in front of it. Even the AWS side is legit.
- 7:50You still have to deal with who owns that AWS
- 7:53account long term. Is it inside your AWS organization
- 7:57or is it an orphan account that exists because
- 8:00Vercel made it easy? How do SCPs apply? How do
- 8:05guardrails apply? How do you do tagging and cost
- 8:07allocation so finance doesn't show up later asking
- 8:11why there are mystery accounts? What does networking
- 8:14look like? Are public endpoints acceptable? Do
- 8:17you need private connectivity? Do you have a
- 8:20VPC strategy that fits Vercel -first teams? What's
- 8:24your audit baseline? Cloud trail? Config? Detective
- 8:28controls? All the boring stuff. Also, Region
- 8:32selection matters for data, residency, and latency.
- 8:36It's not just pick whatever. Vercel also hinted
- 8:39this is evolving. They're talking about coming
- 8:42soon support for provisioning into an existing
- 8:45AWS account, not just a new one. If that lands
- 8:48cleanly, that's the version I'd actually want
- 8:51as a platform team because now you can meet developers
- 8:54where they are without losing governance. So
- 8:57the takeaway, if your dev platform can create
- 9:00AWS resources, your governance has to meet it
- 9:03there. The database is easy. The ownership model
- 9:06is the hard part. All right. Story 3 is about
- 9:10access, which matters even more once you have
- 9:13more accounts and more surfaces. TEAM stands
- 9:15for Temporary Elevated Access Management. It's
- 9:19an open -source solution built around AWS IAM
- 9:22Identity Center. The pitch is basically approval
- 9:26-based, time -bound elevated access to AWS accounts.
- 9:30Users request elevated access for a specific
- 9:32period of time, with a reason. Approvers approve
- 9:36or deny it. If approved, access is granted. When
- 9:39time expires, it is automatically removed. That
- 9:42automatic removal is the whole point. Because
- 9:45most orgs fail here. Someone gets admin just
- 9:48for this incident, and then it stays for months.
- 9:52Privilege creep becomes the default. Team also
- 9:55leans into auditing and visibility. Who requested
- 9:58what, who approved it, when it expired, plus
- 10:01session logging. How I'd frame it. This is not
- 10:05your break glass story. Break glass is the world
- 10:08is on fire and we need access right now. It should
- 10:11be rare, noisy, and heavily monitored. Team is
- 10:16the daily, I need admin for 45 minutes to do
- 10:19this legit change workflow. If you want this
- 10:21to actually work culturally, approvals need to
- 10:24be fast enough that people don't route around
- 10:27it. And the default permission sets need to be
- 10:30sane so elevation is actually meaningful, not
- 10:33just ceremony. If you are already on IAM Identity
- 10:37Center and you've been hand -waving we should
- 10:39do JIT access, team is at least worth a look.
- 10:43Even if you don't adopt it, it's a good reference
- 10:45for what time -bound elevation can look like
- 10:48without building everything from scratch. Alright,
- 10:51time for the lightning round. GitHub Actions
- 10:54improved performance on the workflows page. Small
- 10:57change, but if you live in Actions, you'll feel
- 10:59it. Big workflows render better now, lazy loading,
- 11:03and you can filter jobs by status so you can
- 11:06just see failures or in -progress stuff. During
- 11:09an incident, this is a real quality of life upgrade.
- 11:12Next, the weird one, Lambda managed instances.
- 11:16This is basically run Lambda functions on EC2,
- 11:19but AWS manages the lifecycle of those instances
- 11:22for you. It's meant for steady state workloads
- 11:25and specialized compute needs. It also changes
- 11:28concurrency and execution assumptions a bit.
- 11:31So you actually need to care about thread safety
- 11:34and shared state in ways you might not with regular
- 11:37Lambda. Interesting, slightly cursed. But I get
- 11:40why it exists. Atmos quick hit. There's a Cloud
- 11:43Posse Atmos issue where vendoring a component
- 11:47with an invalid URL triggers a weird GitHub username
- 11:50prompt. I'm mentioning it less because of the
- 11:53bug and more because Atmos is clearly turning
- 11:57into a bigger workflow ecosystem now. CLI, dev
- 12:01containers, IDE integrations, the whole thing.
- 12:04And last, k8sdiagram .fun. It's a free Kubernetes
- 12:09diagram builder that can also generate YAML for
- 12:13common resources. I would not blindly apply auto
- 12:17-generated YAML to prod, but for teaching, prototyping,
- 12:21or explaining architecture to humans, it's actually
- 12:23super handy. All right, let's close with the
- 12:27human story, because this ties into everything
- 12:29we just talked about. Mark Brooker wrote a post
- 12:32called, What Now? Handling errors in large systems.
- 12:36It's basically an interactive error handling
- 12:39game. You decide whether a system should crash
- 12:42or keep going when something goes wrong. And
- 12:45then he explains his take. The key idea is simple.
- 12:48And it's something we forget all the time. Error
- 12:51handling isn't a local decision. It's a global
- 12:54property of the system. We love to argue about
- 12:57one line of code. Should this crash? Should this
- 13:00retry? Should this be best effort? Mark's point
- 13:03is, that decision only makes sense if you understand
- 13:07the architecture around it. He asks questions
- 13:10like, are failures correlated? If the same bad
- 13:13input can hit every node, crashing can amplify
- 13:17the blast radius. Can a higher layer handle the
- 13:20air? Some architectures are designed to tolerate
- 13:23a few crashes. None are designed to tolerate
- 13:26a ton of crashes continuously. Is it actually
- 13:29safe to keep crashing? Is it actually safe to
- 13:32keep running? Sometimes continuing means silent
- 13:35corruption, which is worse than a crash. Then
- 13:38he ties it to blast radius reduction. Cell -based
- 13:42architectures, independent regions, isolating
- 13:45failures so you don't have a single mistake become
- 13:48a global outage. That connects to today's stories
- 13:51perfectly. Cloudflare's scheduler exists because
- 13:55humans will guess wrong sometimes, and the systems
- 13:58need to prevent correlated failure. The Vercel
- 14:01Marketplace DB story is a new surface area. The
- 14:05failure modes aren't just technical, they're
- 14:08governance and ownership failures. And team is
- 14:11literally about reducing the risk of one person
- 14:13with standing admin turning a mistake into a
- 14:17disaster. So yeah. If you want a good mindset
- 14:20going into next year, stop treating air handling
- 14:23like a code style preference. Treat it like architecture.
- 14:27All right, that's it for this episode of Ship
- 14:30It Weekly. We covered Cloudflare's maintenance
- 14:32scheduler on workers and the platform limits
- 14:35force better design lessons. AWS databases inside
- 14:38the Vercel marketplace and what that means for
- 14:41governance and blast radius. And team as a practical
- 14:45path to time -bound elevated access with IAM
- 14:49Identity Center. If you got something out of
- 14:52this, hit follow or subscribe wherever you are
- 14:55listening. And if you can, leave a quick rating
- 14:58or review. It's annoying how much that helps
- 15:01the show. Links and show notes are on shipitweekly
- 15:04.fm. And one last reminder, I'm looking for interview
- 15:08guests. If you want to come on and talk through
- 15:11real DevOps or platform work you're doing, hit
- 15:14the email on the site. I'm Brian. Thanks for
- 15:16listening. Happy holidays. And I'll see you next
- 15:19week, which is technically next year.