Repository navigation
Conversation
A tick carries only the products one datacenter served in that 500 ms slot, so the top five is a thin slice. Viewers that accumulate ticks over time to show what is popular at a datacenter get a better picture from ten. Previews now set the same value instead of falling back to the code default. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The hub now sends up to 10 products per datacenter per tick instead of 5 (
MAX_PRODUCTS_PER_COLO). Production and staging set it inworkers/public-log-stream/wrangler.toml. Previews now set it too, inwrangler.preview.toml, instead of falling back to the code default of 5.Why
A tick carries only what one datacenter served in one 500 ms slot, so its top five products are a thin slice. The globe on source.coop is gaining an accumulated per-datacenter popularity view built from successive ticks; ten products per tick gives it a better picture. Nothing else about the message changes.
Payload
A product entry is about 25 bytes, so the worst case is about 125 extra bytes per datacenter per tick. Only a datacenter that served more than five distinct products in one slot sends more than it does today, which is a few busy datacenters rather than the 250-odd that are active at any time. I have not measured the real tick size. Messages from the Durable Object to browsers are not billed.
Not changed
location-hub.ts(|| 5) applies only when the var is unset, and feat(log-stream): spread batches over ticks and replay recent activity #289 edits that file, so I left it alone to avoid a conflict.wrangler.preview.tomlstill carriesMAX_BROADCASTS_PER_EMIT, which nothing reads. It is unrelated to this change.🤖 Generated with Claude Code