Repository navigation
feat: draft a tutorial, an event-sourced backend on Cloudflare Durable Objects - #29
Draft
benatespina wants to merge 2 commits into
Draft
benatespina wants to merge 2 commits into
benatespina wants to merge 2 commits into
Conversation
…e Objects From npm create bounda to npm run deploy in one sitting: the files the template writes, a pay-or-expire step with a second command and a delayed policy, tests in workerd, how it runs, what a command costs (8 rows for the template's placeOrder, measured on Bounda 0.3.0) and when one object per tenant is the wrong design. Kept as draft: true until a date is chosen. Translated into es, ja and pt-br; code untranslated.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
bounda-website | 20abd66 | Nov 08 2026, 10:04 AM |
…nd soften the policy's cost
Rows placed before the view gained status come back without one until the read
model is rebuilt; rebuildReadModel("orders") through connect was run against a
store with old rows and fills them. The tutorial app's cost is now stated as
roughly twice the template's rows and a second request, since the harness that
gave about 17 cannot pin down how many times the alarm is armed.
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.
Summary
kind: tutorialpost,draft: trueand with no publication date decided (the front matter carries 2026-11-07 as a placeholder; set the real one when it goes out).npm create bounda@latest my-app -- --runtime cloudflare(or the Deploy to Cloudflare button ofbounda-cloudflare-template) tonpm run deploy: a walk through the generated files, a real domain step (payOrder,expireOrderand a policy that schedules the expiry 30 minutes afterOrderPlaced, plus astatuscolumn in the read model), tests in workerd, deployment and the missing authentication ofcreateWorker.expirescene (?scene=expire).es,jaandpt-br; code blocks are copied verbatim from the English post.Reuses the numbers, the cost test and the sources of the discarded draft in #27.
How it was verified (2026-11-07)
create-bounda0.3.0 in a temp directory (wrangler 4.158.0,@cloudflare/vitest-plugin1.6.0, Vitest 5.1.0). Everytsblock that names a file was compared byte for byte with the file that compiled and passed in that project (src/worker.tsis shown without its doc comments).npm test: 7 tests on the template, 10 after step 5, all in workerd. Theorders.test.tsfailure the post warns about was hit for real.npm run typecheckandnpm run check(which runswrangler deploy --dry-run) pass. Nothing was deployed to a real account.npm run dev+ thecurlcalls: the JSON answers in the post are the real ones.status: Bounda adds the column at start-up and leaves old rows empty. Reproduced withwrangler dev --persist-toacross the change;connect(stub).rebuildReadModel("orders")answered{"events":3,"position":3,"done":true}and the rows came back with their status. The post now says so after step 4.pnpm buildandpnpm checkpass; all four versions reviewed inpnpm dev, desktop and mobile width.