@avenceslau@thomas_ankcorn Andre - this might be something you know. I had an alarm fail on me for the first time ever a few weeks back (i.e a pure failure - it was set but never ran). If you did have 10m DOs each with an individual alarm, what would be the expected failure rate?
Couldn't resist testing this. We've been building on Workers since the DO beta in 2020 and this is the kind of optimisation we end up digging into, so I deployed two workers to do some tests.
Your 30ms is most likely two cold starts on the in-leg. A new caller isolate has to open its outbound connection (~25ms), and a cold callee isolate adds another ~20ms. Warm, a public fetch is only 5-10ms. Any new isolate on either side will likely result in a similar delay, whether it comes from a deploy (isolates aren't shared across versions), an eviction or traffic landing on a fresh machine.
As the other commenters suggested, a service binding is the fix, and in my tests it removes the connection part. I also tested the 1 to N effect: 10 parallel public fetches took 20-80ms vs 0-20ms via binding/RPC. We'd pick RPC over binding fetch() because Smart Placement ignores RPC calls, so a later placement config can't accidentally move a callee to another colo and put the hop back.
Couldn't reproduce the 16ms tail though (return leg 2-3ms). Is that your own OTel client span? CF's tracing won't even link a public fetch across Workers.
Caveats: all from one colo (LHR) small sample etc.
@thomas_ankcorn Trying to think if I would have even been able to spot this regression before the tracing (and related UI) was released. Think it would have been significantly harder (as the aggregate numbers might have obscured what was happening).
FYI for people running Sentry v11 on a Cloudflare Durable Object: after upgrading @sentry/cloudflare, our alarms went from a ~25ms median to ~505ms of wall time. CPU time was unchanged, no trace data being sent, and none of our own code left a timer running.
v11 turns span streaming on by default, which sets a 500ms flush timer every time a root span ends, sampled or not (tracesSampleRate: 0 included). Workers can't unref it, so every DO fetch, alarm and WebSocket message stays open, and billed, until it fires.
It's not just our bill. Every DO on Sentry v11 with tracing on stays in memory up to 500ms after each event, and hibernatable WebSocket objects can't hibernate after a message. At Cloudflare's scale, that's a lot of objects awake for nothing.
Workaround: traceLifecycle: 'static'
Issue: https://t.co/fPPvBixtXw
Fix PR: https://t.co/tMeywxbEpa
Credit to @nevikashah and the team who made the improvements to observability on the Cloudflare Developer Platform - it made it much easier to spot the issue and resolve it.
https://t.co/pC4X8v6Mzx
Cloudflare Tracing is now in open beta 🚀
Our teams rely on traces everyday to understand what happens to a request as it moves through our platform. Cloudflare Traces brings that same visibility to you.
✅Get automatic spans throughout the entire request
✅Control what gets traced with trace rules
✅Propagate traces across your stack a la W3C trace context
✅Query traces through our dashboard, SQL API or Cloudflare MCP
✅Export traces to any OTLP-compatible destination
@mattsimpsn I started with durable objects during the beta (so I’ve seen a fair few of the rough edges!). Genuinely impressed with how far the observability stuff has come. Can’t think of much that is missing for now - think the base data + agents can take you a very long way.
A three-part series on building Unrational Games on Cloudflare: why we chose it, how the game scales, and what happened when we gave two System One models five thousand real poker decisions.
1. Thank you, John Graham-Cumming: https://t.co/GVAYkS3M2p
2. An infinitely scalable game on Cloudflare: https://t.co/ZtKh1XIUbZ
3. Poker vs Jev vs Clef: https://t.co/UXh6Lsxy67
Weeks late to this thread (and years late to the blog post which JGC asked me to write), but I thought it was relevant as this approach has been part of the Cloudflare (public) ethos for years. It was the reason I originally started building on Durable Objects (when it was little more than a blog post and a curl deployment script). Authenticity and conviction leave traces. https://t.co/GVAYkS3M2p
Yes I would agree. I guess the challenge is that, depending on your information diet, your exposure to ‘lazy’ text is somewhat context dependent.
Readability issues aside, I think I would probably have a fairly indifferent reaction to clearly AI authored text if it mostly reached me in the form of research reports rather than, say, the LinkedIn feed.
@wulfie_bain_ A combination of this article and the job description you just posted (about working with you in the Applied AI for Startups team) has me strongly considering applying. They should really have a 'serendipity' module in the E&M course!
No - I was just looking towards a longer time horizon when I think the regulatory capture will just be a moment in time.
I can also see how the likes of DK are trying to compete - they are basically using PM backends as a regulatory facade (and the front ends are looking like more standard products).
Note that I don’t have a dog in this fight (I don’t care which way it plays out ultimately). My strong suspicion is that the current principles make out handsomely, later investors (and some of the hedge funds dabbling in sports betting) get burned, and ultimately PM activity will settle as a niche for a certain cohort.
Hate to quote tweet (but I'm not trying to dunk on @capjack2000), but I want to pick up on his "Different country. Different culture" point as regards (I assume) why what happens with the PMs in the US will differ from what happened with e.g. Betfair.
There are obvious cultural differences between the US and European populaces, but to assert that capitalism and greed are going to drive Kalshi somewhere different from the equilibrium Betfair reached is, I think, to get two things wrong.
The first is a category error: the sub-populations of sports bettors/gamblers on the two continents are probably far more alike in terms of capitalistic tendencies (and dare I say, greed) than they are distinct. Gamblers are gamblers, whatever their flag.
The second is that greed really does decide the outcome, but in a different direction. It is capitalism and greed which drive the equilibrium state for the likes of DraftKings and Kalshi, and it was the same for Betfair.
Let's take two customers - the median one (by outcome) at DraftKings and the same at Kalshi. The DK customer is a net loser, but every month they have a certain budget for entertainment (and, although they wouldn't admit it, greed), and they enjoy making some spectacularly -EV parlay bets on whichever team they support.
They might also enjoy a bit of a play on the slot games in the week between sports fixtures. Sometimes they win, mostly they lose (although they would definitely prefer to win), but they have reached a sort of equilibrium - a certain amount each month spent on something they enjoy (even if it is occasionally frustrating). DraftKings engages them with bonuses, offers around their team and ongoing CRM emails etc. They generally still churn eventually - losing players always do.
The median customer at DK actually looks a lot like the rest. Sure, there are big differences in LTV between the whales and the median, but most are generally losers at some level (that's where the EBITDA comes from!), and the result is that the system effectively has an overall equilibrium.
The median customer at Kalshi is, crucially, also a net loser. But they are a touch more sophisticated - the product is, after all, a bit more like "trading", they've been told that it is "fairer" etc. Maybe this customer is still taking spectacularly -EV "combo" bets. Maybe they are quite a bit more sophisticated and taking other positions. Either way they are still down, and going lower.
Like DK, Kalshi engages them with offers, CRM etc, but can't quite match the generosity on bonuses that the likes of DK can for obvious reasons. Like the DK median customer, this one will churn eventually, although it will be a different type of churn. When you tell someone they are playing a game of skill/talent and they lose, their response is very different from when they lose a coin toss.
And this is the real divergence between the two systems. At Kalshi, once you get past the median customer you are into increasingly sophisticated gamblers, and these people very much have a view on who is on the other side of their trade. I've written before about poker's outcome players - a relatively small group who, on the whole, would rather not have to play each other (and drove the product design in their favour, just like people are doing on PMs). PM traders are the same. Everyone wants to trade against the level below them and avoid the level above, so each recreational player who churns leaves the next level up facing worse counterparties, who trade less or leave in turn, and so on up the chain.
That is what happened to Betfair. It didn't fail - it found an equilibrium, just a far lower one than the “better product” evangelists had promised, because the soft flow drained away and the chain folded in on itself. And the capitalism and greed that @capjack2000 describes are exactly what drove it there: sophisticated, but greedy, customers who are only playing to win, and an economically rational, capitalist operator (see the premium charge) taxing the winners once they were the only profitable segment left.
The US market is bigger. I actually quite like Kalshi’s disruption - it is, at the least, interesting from an industry insider perspective. US customers are different (to a certain degree), but I’ve seen nothing to suggest that it won’t just be the same thing playing out at a larger scale (although perhaps more slowly).
The forces, the greed, the capitalism and the incentives, look pretty much the same from where I am sitting.
https://t.co/kw3LGkGbVl
@UnrationalPhil Europeans are just insufferable about having to claim they did it first and it didn’t work.
Different country. Different culture.
Here’s what the US does better than any other country: GREED (we call it capitalism)
As long as there is greed, there is a way to exploit greed.
I wrote an essay on the impact of AI game development on the iGaming industry, "The value is now in the gap". Here the tldr version:
1. Anyone can build a slot game in a weekend now. That used to be evidence of a capable team. Today it is evidence of a subscription.
2. LLMs raised the floor for everyone at once, and what everyone can do separates no one.
3. So the value has moved to the gap - between what everyone can do easily and what a small set of people can reach.
4. Who gets above the floor? Fearless twenty year olds with no priors, and domain veterans who become one-person armies.
5. Because expertise steers a model somewhere it would not otherwise go. Without it you cannot get there. Not more slowly. Cannot.
6. The skill is not quite taste. It is looking at something competent and knowing it is not good enough. A model produces the median of everything it has seen - it cannot be disappointed.
7. We've seen how LLMs can aggregate everything ever said about, say, a sporting rivalry. They cannot capture the essence of it, because they cannot feel it.
8. Most companies are still spending at the floor. The costs are visible, the value is not, and the bottom line has not moved. There is no metric for the gap.
9. And the gap does not close as models improve. It moves with them.
10. The expensive part is people. The few who can tell good from competent are not numerous, not cheap - and the companies that can afford them are the worst fit for them.
11. Investors have the same problem: a demo used to be evidence, polish was more. The floor now produces both, and the old heuristics for spotting elite builders have stopped working.
12. Expect small companies to appear from nowhere - more polished, more efficient, and run by fewer people than the incumbents put in a single meeting.
Full essay link in first reply👇