From pull request to productionFrom pull request to production States shown: Live, Being built, In trial, Planned. Solid lines: data flows today. This quarter: 1. Cache every build (Build); 2. Scan every image (Checks); 3. Release to 5% first (Release). Blocks, left to right: - Code: Pull request; Code review. Owner: Every team - Build [step 1]: Compile; Unit tests; Container image; Build cache (being built). Owner: Build team - Checks [step 2]: Integration tests; Security scan (being built); Load test (planned). Owner: Quality team - Release [step 3]: Staging; Canary, 5% of users (in trial); Production. Owner: Platform team Lines: - Code -> Build - Build -> Checks - Checks -> Release - Release -> Code, labeled "If errors rise: roll back and tell the author"EXAMPLEFrom pull request to productionLiveBeing builtIn trialPlannedData flows todayThis quarter:1Cache every build2Scan every image3Release to 5% firstCodePull requestCode reviewOwner: Every team1BuildCompileUnit testsContainer imageBuild cacheOwner: Build team2ChecksIntegration testsSecurity scanLoad testOwner: Quality team3ReleaseStagingCanary, 5% of usersProductionOwner: Platform teamIf errors rise: roll back and tell the author PythonFrom pull request to productionA release pipeline from pull request to production, with a rollback lane Source
How an email is deliveredHow an email is delivered Written as JSON: no Python needed. Draw it with: open-diagram draw examples/email_delivery.json States shown: Live, Being built, In trial, Planned. Solid lines: data flows today. This year: 1. Sign every message (Sending server); 2. Check every link (Receiving server). Blocks, left to right: - Mail app: Write; Attach files; Send - Sending server [step 1] (The sender's provider): Queue; Digital signature (being built); Retry if busy - Receiving server [step 2] (The recipient's provider): Check the sender; Spam filter; Link scanner (planned) - Inbox: Phone; Laptop; Smartwatch (in trial) Lines: - Mail app -> Sending server - Sending server -> Receiving server, labeled "over the internet" - Receiving server -> Inbox - Receiving server -> Sending server, labeled "If delivery fails, a bounce message goes back"EXAMPLEHow an email is deliveredWritten as JSON: no Python needed. Draw it with: open-diagram draw examples/email_delivery.jsonLiveBeing builtIn trialPlannedData flows todayThis year:1Sign every message2Check every linkMail appWriteAttach filesSend1Sending serverThe sender's providerQueueDigital signatureRetry if busy2Receiving serverThe recipient's providerCheck the senderSpam filterLink scannerInboxPhoneLaptopSmartwatchover the internetIf delivery fails, a bounce message goes back JSONHow an email is deliveredHow an email is delivered, written as JSON instead of Python Source
How a new account is createdHow a new account is created States shown: Live, Being built, Planned. Solid lines: data flows today. Dotted lines: connection to build. Blocks, left to right: - Sign-up form - Check details - Create account - Send welcome email - Set up profile (being built) - Start free trial (planned) - Ready to use Groups: - Account service: Create account, Send welcome email, Set up profile, Start free trial Lines: - Sign-up form -> Check details - Check details -> Create account, labeled "valid" - Check details -> Sign-up form, labeled "try again" - Create account -> Send welcome email - Create account -> Set up profile - Create account -> Start free trial (connection to build) - Send welcome email -> Ready to use - Set up profile -> Ready to use - Sign-up form -> Ready to useHow a new account is createdLiveBeing builtPlannedData flows todayConnection to buildAccount serviceSign-up formCheck detailsReady to useCreate accountSend welcome emailSet up profileStart free trialvalidtry again MermaidHow a new account is createdA sign-up flow imported from a Mermaid flowchart Source