<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tai Vong on Medium]]></title>
        <description><![CDATA[Stories by Tai Vong on Medium]]></description>
        <link>https://medium.com/@vchitai?source=rss-bacca62ea91f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NBq47EwWAIqyt4VYOWncQQ.jpeg</url>
            <title>Stories by Tai Vong on Medium</title>
            <link>https://medium.com/@vchitai?source=rss-bacca62ea91f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:17:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vchitai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Moving Fast Without Breaking Things — On building production systems before the team was ready]]></title>
            <link>https://engineering.gearment.com/moving-fast-without-breaking-things-on-building-production-systems-before-the-team-was-ready-1b060d0148d2?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b060d0148d2</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[design-principles]]></category>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Tue, 05 May 2026 13:40:28 GMT</pubDate>
            <atom:updated>2026-05-05T13:40:28.282Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part of the “Moving Fast Without Breaking Things” series</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LzQeq5Z7bBLvZSxbz8kTDA.jpeg" /></figure><p>Taking the lead in a small team does not mean knowing all the answers. It means being the first one into the fog — and being responsible for bringing everyone through it without losing anyone and without going the wrong way.</p><p>That is what the role felt like. Not authority. Navigation. The difference matters: authority assumes you know where you are. Navigation assumes you do not — and commits to finding the way regardless. If I went the wrong way, they all went the wrong way. If I moved too fast for them to follow, I would look back and find myself alone. The weight of that is different from any technical problem I have faced before or since.</p><p>The engineering stories I read online rarely talk about this feeling. They are usually told from a position of strength: senior colleagues who have seen the terrain before, budgets that allow for mistakes, teams where someone always knows the answer. Those are good stories. This is not one of them.</p><p>This series is for the people navigating the same fog — the team builders figuring it out under real constraints, who cannot hire their way out of the problem, who have to make something reliable before the team is ready to make it reliable. The principles here are the tools I used to navigate. Not to eliminate the uncertainty, but to make sure that when we moved, we moved together, in the right direction, without leaving anyone behind.</p><p>— -</p><p>I was handed three junior engineers, a deadline, and a legacy system with no documentation.</p><p>The CTO who assigned me the task was a consultant — present for guidance, not for building. Every architectural decision, every convention, every call on how the team would work was mine to figure out.</p><p>None of the three engineers had built a backend system before. I had. But I had never managed a team where I could not assume the people implementing the system already knew the patterns.</p><p>The standard answer when inheriting a task like this is to mentor: transfer the knowledge through code reviews, pair programming, documentation. I tried this for about two weeks before realizing the math did not work. Mentoring produces results over years. We had six months to ship something real.</p><p>The question had to change.</p><h3>The Wrong Frame</h3><p>When you cannot hire your way out of a problem, the instinct is to lower expectations — reduce scope, simplify the system, avoid anything complex until the team grows into it. We tried to resist this. The product requirements were not negotiable, the timeline was not negotiable, and the team was what it was.</p><p>So instead of asking “how do I transfer my knowledge to the team?” I started asking: “how do I make the right behavior the default, regardless of whether the team has my knowledge?”</p><p>The distinction matters. Knowledge transfer has a ceiling: it scales with the number of experienced people who can do the transferring. A system that encodes the right behavior as a constraint has no such ceiling. The constraint applies to the first engineer and the twentieth equally. It applies to the person who built the system and the person who joins two years later with no context about why the rules exist.</p><p>What I was trying to prevent was not ignorance — that’s temporary. What I was trying to prevent was the specific class of mistake that is invisible until it causes damage: a field named inconsistently across layers, an API contract changed without updating the consumer, a service boundary drawn in the wrong place that would require a painful refactor six months later when everything had been built on top of it.</p><p>These mistakes don’t happen because engineers are careless. They happen because the right behavior requires knowledge the person making the decision does not yet have.</p><p>The answer was constraints — not rules written in a document, but encoded into the system itself. Machine-checkable. Applied uniformly to every contribution. From the first PR to the ten-thousandth.</p><h3>Starting With the SDLC</h3><p>I mapped the Software Development Lifecycle — not as a process diagram, but as a question: where are the handoffs?</p><p>A feature starts as a concept in a product spec. It becomes a named entity in a service definition. It becomes a data structure in a handler. It becomes a row in a database. It becomes a TypeScript type in the frontend. It becomes an event on a Kafka topic. It becomes a column in a data pipeline. It becomes a metric on a dashboard.</p><p>At every one of these transitions, there is a boundary — a place where one person’s output becomes another person’s expectation. These are the moving parts. These are the places where drift happens. Where names diverge. Where assumptions accumulate silently. Where a junior engineer, without the context to know better, makes a reasonable local decision that creates a serious downstream problem three months later.</p><p>The boundaries — not the interiors between them — are where constraints belong.</p><h3>Constrain the Boundaries. Free the Interiors.</h3><p>This is the principle that shaped every architectural decision we made.</p><p>A boundary is any place where one component’s contract becomes another component’s assumption. The proto definition is a boundary: it is what the backend promises and what the frontend expects. The database schema is a boundary between the application and its data. The Kafka topic schema is a boundary between the service that produces events and the services that consume them.</p><p>Inside a component — the business logic, the implementation details, the internal data structures — flexibility is a feature. Code can be refactored, optimized, reorganized without affecting anything outside the boundary. That is precisely what a boundary is for: isolating the interior from the exterior so that each side can evolve independently.</p><p>At the boundary itself, carelessness is expensive. A field renamed without updating the consumer is invisible until a user hits the code path. A service boundary drawn without considering domain ownership creates coupling that only reveals itself when both sides need to change simultaneously.</p><p>So: constrain the boundary. Make violations fail loudly, at compile time, before anyone can deploy. Inside that boundary — give the team complete freedom.</p><p>The Go service can restructure its domain model. The handler can be rewritten for performance. The repository layer can change its query strategy. None of that affects the outside world as long as the boundary holds.</p><p>For a junior team, this separation is not just an architecture pattern. It is a working model: know where the rules are strict, know where you can experiment. The boundaries are the strict part. The interiors are where you learn.</p><h3>DDD as the Structural Constraint</h3><p>The hardest boundary to get right is the one between services — which things belong together and which things should be separated.</p><p>We did not start by asking “how many microservices should we have?” We started by asking “what are the natural boundaries of this business?”</p><p>Fulfillment is a different domain from finance. Order management has different rules, different actors, and different lifecycle events than inventory. Identity and access management cuts across everything but is owned by nothing except itself. These boundaries came from the business domain, not from a deployment diagram or a performance requirement.</p><p>This is what Eric Evans described as <strong><em>Bounded Contexts</em></strong> — clear boundaries within which a particular model applies and a particular language is consistent. Inside the order management context, “draft” means something specific. Inside the fulfillment context, a “production order” is a different concept entirely. The same physical package carries different names in different contexts because it means different things to the people working in those contexts.</p><p>The proto definition is the explicit statement of what a bounded context exposes at its boundary — not its internal model, not its database schema, but the contract it shows to the outside world. The structural constraint is: services own domains. They do not share databases. They do not share business logic. They communicate at the boundary, through the contract.</p><p>For three junior engineers who had never designed a distributed system, this was not a theory to understand. It was a rule to follow. When the question was “where does this code belong?” the answer was “which domain does it serve?” DDD made that question answerable without a senior engineer in the room.</p><h3>Conway’s Law, Inverted</h3><p>Conway’s Law observes that organizations design systems that mirror their communication structure. If your backend and frontend engineers communicate poorly, your API boundary will accumulate the drift of that miscommunication.</p><p>We used this in reverse.</p><p>Instead of letting the team’s existing communication patterns determine the system’s structure, we designed the communication structure first — and let the team adapt to it. The proto definition became the communication protocol between backend and frontend. The DDD service boundaries became the communication protocol between domains. The naming conventions became the communication protocol between engineers, product managers, and data engineers who all needed to talk about the same concepts.</p><p>The constraints were not a reflection of how the team worked. They were instructions for how the team would work.</p><p>This inversion is only possible at the start — before the team has built habits and assumptions around a different structure. Starting from zero, with no legacy codebase and no inherited conventions, was not a disadvantage. It was the opportunity to set the constraints before anyone had reason to resist them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kLd1arwdc6HdCrDRV96fwA.jpeg" /></figure><h3>What the Constraints Look Like in Practice</h3><p>The constraints we built fall into a few types, each targeting a specific boundary in the SDLC:</p><p><strong>Linguistic constraints </strong>— at the boundary between business language and system language. When a concept is introduced, it gets named once, in a <em>.proto</em> file, in a PR that product, frontend, backend, and data engineers all review. That name propagates everywhere: the Go handler, the TypeScript client, the Kafka topic, the monitoring dashboard. Not as a convention people are asked to follow, but as the literal source every other layer derives from. A junior engineer who cannot remember what the entity is called looks at the proto and finds the answer.</p><p><strong>Contractual constraints</strong> — at the boundary between backend and frontend. Generated TypeScript clients from the same proto source as the Go server stubs. A field rename in the proto triggers a TypeScript compiler error in the frontend build. The compiler catches what a junior engineer might not think to check — not because the engineer is bad, but because the constraint does not depend on anyone remembering anything.</p><p><strong>Structural constraints</strong> — at the boundary between domains. DDD-informed service boundaries, each service owning exactly one domain. The rule is simple enough for a junior to follow without fully understanding why: if you are not sure which service this belongs in, find the domain and you have found the service.</p><p><strong>Operational constraints</strong> — at the boundary between development and production. Immutable image tags encoding the git SHA and deployment target. Migration files that cannot be edited after they run. Generated code owned by the generator, never modified by hand. The constraint makes the most dangerous operations require deliberate additional steps — friction exactly where speed is most expensive.</p><p>Each of these is a chapter in this series. Each one represents a class of handoff that can go wrong, and a constraint designed to make it go right by default.</p><h3>The Result</h3><p>Six months after we started, the first users were onboarding on the new platform.</p><p>Not a prototype. A production system processing real orders, integrated with live marketplaces, stable enough to trust with real sellers. Built by three engineers who had never done it before.</p><p>Two years later: a 20-person team shipping features every week. Order volume 10x. 99.99% uptime. Zero-downtime deployments. Full traffic migration from the legacy system. The engineers who started as juniors had become the ones others learned from.</p><p>The constraints held as the team grew. When a new engineer joined — whether the fourth or the twentieth — they joined a system with clear answers to the questions that consume early-career engineers: Where does this code belong? What should this be called? Who is authorized to call this? How do I know if this change breaks something? The constraints encoded the answers before the questions were asked, freeing each new engineer to focus on the actual work.</p><p>Onboarding cost days, not months. Not because the system was simple — it was not. Because the rules for navigating it were in the system itself, not in the heads of the people who had been there longest.</p><h3>Conclusion</h3><p>The lesson is not about the specific tools — proto, buf, DDD, hexagonal architecture. It is about the approach: find the boundaries where mistakes are expensive, and make the right behavior at those boundaries the default.</p><p>A senior engineer carries years of pattern recognition. They know intuitively where drift happens, what makes a naming convention sustainable, why a service boundary drawn in the wrong place becomes a maintenance burden. That knowledge is valuable. It is also not transferable fast enough when the team is three people and the runway is six months.</p><p>Encode it instead. Put it at the boundary where the mistake would happen. Make the right behavior the path of least resistance. Make the wrong behavior fail loudly — before it reaches a production order.</p><p>Design the constraints. The discipline follows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b060d0148d2" width="1" height="1" alt=""><hr><p><a href="https://engineering.gearment.com/moving-fast-without-breaking-things-on-building-production-systems-before-the-team-was-ready-1b060d0148d2">Moving Fast Without Breaking Things — On building production systems before the team was ready</a> was originally published in <a href="https://engineering.gearment.com/">Gearment Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your API Contract Is a Team Agreement, Not a Document]]></title>
            <link>https://engineering.gearment.com/your-api-contract-is-a-team-agreement-not-a-document-b5c9e2112741?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5c9e2112741</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Sat, 02 May 2026 14:09:24 GMT</pubDate>
            <atom:updated>2026-05-02T14:09:24.067Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part of the “Moving Fast Without Breaking Things” series — This is what three years of running microservices in production looks like from the inside — a print-on-demand platform serving real sellers, real orders, real money. We made good decisions. We also made decisions that, looking back, reveal how naive we were about problems we thought we’d solved.</em></p><p>The history of API integration is the history of maintaining two representations of the same contract and paying for every time they drift. REST left the contract in your head. OpenAPI left it in a YAML file. Neither prevented the classic failure mode: the Go backend changes a field; the TypeScript frontend doesn’t know until a user triggers the code path.</p><p>At Gearment, we generate a TypeScript package from the same protobuf definitions that generate our Go server code. When a field changes in the proto, the TypeScript compiler fails on the frontend — before the PR merges, before the container ships.</p><p>This article is about how that system works, why it matters, and what it cost us to build.</p><p>— -</p><h3>The Problem Is Not the Bug. It’s the Delay.</h3><p>Imagine this scenario. A backend engineer renames a field: <em>platform_ref</em> becomes <em>external_ref</em>. It’s a 30-second change in a proto file. The Go compiler approves it — the handler and mapper are updated in the same PR. The code ships. CI passes.</p><p>Three days later, a seller reports that their store integration is silently dropping data. The frontend was reading <em>platform_ref</em>. The field is gone. The frontend received <em>undefined</em>. No error. No warning. Just silent data loss.</p><p>This is not a hypothetical. The delay between “a field changed” and “someone noticed” — that’s where the cost lives. Not in the bug itself, but in the fact that the bug was invisible to every automated system until a user found it.</p><p>The question worth asking is: at which layer should this failure be visible? And the answer is: as early as possible. A type error caught by the compiler costs seconds. Caught in a code review, it costs minutes. Caught in staging, it costs hours. Caught by a seller in production, it costs money, trust, and an incident report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTP0bxrzawUlTmPpecf2mw.jpeg" /><figcaption><em>One change. Three days later, a seller finds the bug. The delay is the real cost — not the bug itself.</em></figcaption></figure><h3>The Contract That Lives in Two Places</h3><p>When you have a Go backend and a TypeScript frontend, you’re implicitly maintaining two representations of the same API contract. The question isn’t whether you’re doing this — you are, by default. The question is how synchronized those two representations will be six months from now.</p><p>The instinct is to solve it with documentation or discipline. You write an OpenAPI spec. You run a code generator that produces TypeScript types from it. This is better than nothing: at least both sides claim to derive from the same source. But OpenAPI describes shapes, not behavior. It generates types, not clients. You still need a REST layer — routes, HTTP methods, query parameters, response envelopes — and that layer is its own contract, sitting between the OpenAPI spec and the TypeScript code, maintained by whoever is paying attention that week.</p><p>The deeper problem with documentation-as-contract is that it’s optional. Nothing breaks when the spec drifts from the implementation. The spec is adjacent to the code, not load-bearing. You have to choose to update it.</p><p>Proto takes a different position: the contract is the compilation unit. There is no Go handler stub without the proto. There is no TypeScript client without the proto. When the backend engineer renames a field, the proto changes — and <strong>buf generate</strong> recomputes both the Go server code and the TypeScript client from the updated source. The frontend doesn’t receive a new document to read and hopefully act on. It receives a compile error at every callsite that used the old field name.</p><p>This is the shift that matters: from “contracts that should be kept in sync” to “a single artifact that derives everything else.” The trade-off is real — you’re committing to a specific protocol stack, a code generation pipeline, and a CI step that publishes the generated package. The team has a learning curve. The tooling adds operational weight.</p><p>What you get in return is that an entire class of production bugs becomes structurally impossible. Not hard to catch — impossible.</p><h3>Move the Error Left</h3><p>There’s a principle in software reliability that cost is proportional to where in the lifecycle you catch a failure. Catching a type error in the compiler is the cheapest possible intervention — it requires zero human time outside the developer who made the change.</p><p>This idea — “shift left” — is usually applied to testing: write tests earlier, find bugs sooner. But it applies equally to the language boundary. If your frontend type definitions are manually maintained, the contract check happens in production, when a user hits the code path. If they’re generated from the same source as the backend, the contract check happens at compile time.</p><p>We didn’t arrive at this through abstract reasoning. We arrived at it after the third time someone asked “why is this field undefined?” and the answer was “the backend changed it two weeks ago.” At some point, the cost of discovering that answer in production exceeded the cost of building the system that prevents it.</p><h3>The Enabling Technology</h3><p>Protobuf solves the “same source” problem. But protobuf alone generates binary-encoded messages over HTTP/2 — which browsers can’t send directly. The missing piece is a protocol that makes gRPC compatible with browser environments.</p><p>Connect-RPC solves this. It’s a protocol built on top of gRPC semantics that communicates over HTTP/1.1 and HTTP/2, supports the standard Content-Type: application/json that browsers send, and maintains full compatibility with the gRPC specification. A browser can call a Connect-RPC endpoint directly, without a gateway, without a REST translation layer, without a proxy that translates between two different protocols.</p><p>This matters for the type safety story because it eliminates the REST layer that would otherwise sit between the Go service and the TypeScript client. That REST layer — if it existed — would be a second contract. Routes, HTTP methods, query parameter names, response envelopes — all of it would need to be kept in sync with the proto separately. Connect-RPC makes it unnecessary.</p><p>The practical result: when <strong>buf generate</strong> runs, it produces both the Go server stubs and the TypeScript client from the same proto file. The client the browser uses and the server it calls are both derived from the same source. If the source changes, both sides change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9IVwkttIqzRT0-mGQutHIg.jpeg" /><figcaption><em>One source, two outputs. The REST translation layer that would have been a third contract to maintain simply doesn’t exist.</em></figcaption></figure><h3>The Generated Client as a Versioned Dependency</h3><p>The key architectural decision that makes this work is treating the generated TypeScript client as a versioned npm package — not a build step, not a local file, but a dependency that frontend apps install and pin like any other library.</p><p>The generation itself is configured in a single file (<strong>buf.gen.yaml</strong> or an equivalent) that specifies which <strong>buf</strong> plugins to run and where to emit the output. For a Connect-RPC stack with React frontends, you typically need three plugins: one that generates TypeScript message types from proto definitions (<strong>bufbuild/es</strong>), one that generates typed service clients (<strong>connectrpc/es</strong>), and optionally one that generates React Query hooks for each RPC (<strong>connectrpc/query-es</strong>).</p><pre>version: v2<br>plugins:<br>- remote: buf.build/bufbuild/es:v1.9.0<br>out: ../web<br>opt: [target=ts]<br>- remote: buf.build/connectrpc/es:v1.5.0<br>out: ../web<br>opt: [target=ts]<br>- remote: buf.build/connectrpc/query-es:v1.4.2<br>out: ../web<br>opt: [target=ts]</pre><p>CI runs <strong>buf generate</strong> on every proto change, packages the output directory as an npm package, and publishes it. Every proto change bumps the package version. Frontend apps receive it as a normal dependency upgrade — except the upgrade is triggered by a backend proto change, not a frontend decision.</p><p>At Gearment, this package is <strong>@gearment/nextapi</strong>, published to GitHub Packages. It’s currently at version 1.360.3. That version number is a record of how many times the system has generated and published the contract — once per CI run that touched a proto file over three years. The frontend apps import from it like any other library:</p><pre>import { OrderDraftAPIClient } from &#39;@gearment/nextapi/api/pod/v1/order_draft_connect&#39;;<br>import type { UserCreateOrderDraftRequest } from &#39;@gearment/nextapi/api/pod/v1/order_draft_pb&#39;;</pre><p>There is no hand-written type in any frontend codebase that describes an API shape. Every type that crosses the language boundary comes from <strong>buf generate</strong>. The implication is worth stating plainly: if you want to change what the frontend can see, you change the proto. There is no other path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R7ftfwT5Eo5IUzvDULfGRg.jpeg" /><figcaption><em>Every proto change triggers a publish. The version number is a timestamp of how many times the contract has evolved.</em></figcaption></figure><p><strong>A Real Example: The Field That Stopped at the Compiler</strong></p><p>Here’s a concrete case. In the <strong>OrderAPI</strong>, the request message for creating an order includes:</p><pre>message UserCreateOrderRequest {<br>  string store_id = 1;<br>  common.platform.v1.MarketplacePlatform order_platform = 2 <br>    [(buf.validate.field) = {enum: {defined_only: true}<br>      required: true<br>    }];<br>  string platform_ref = 3 [(buf.validate.field).string = {max_len: 64}];<br>  // … other fields<br>  repeated LineItem line_items = 7 [(buf.validate.field).repeated = {min_items: 1}];<br>}</pre><p>Suppose a backend engineer decides to rename <em>platform_ref</em> to <em>external_ref</em> to better reflect that the value comes from an external marketplace. In a world of manual type definitions, this change ships, the frontend still reads <em>order.platform_ref</em>, gets <em>undefined</em>, and the marketplace reference is silently dropped from every order until someone notices.</p><p>With end-to-end code generation, the sequence is different:</p><p>1. The engineer renames the field in the proto</p><p>2. <strong>buf breaking</strong> runs in CI — if any consumer has a structural dependency on the old field name, this step fails the PR</p><p>3. <strong>buf generate</strong> regenerates <strong>@gearment/nextapi</strong> with the new field name</p><p>4. The frontend build runs — TypeScript fails at every callsite that accesses .<strong>platform_ref</strong></p><p>5. The PR cannot merge until the frontend is updated</p><p>The error appears in the frontend repo’s CI run for the same PR that changed the backend. Not two weeks later. Not when a seller triggers the code path. At the PR stage, where the fix is a five-minute change.</p><p>This is the compounding value of making the compiler your integration test.</p><h3>What It Actually Costs</h3><p>The system works. After three years, we wouldn’t go back. But the friction is real, and it tends to show up in specific ways that are worth naming.</p><p>The onboarding problem is the most persistent one. Engineers who’ve only worked with REST APIs have a muscle memory for “add the field to the response object.” That instinct doesn’t transfer here. Adding a field to the API means editing a proto definition, running <strong>buf generate</strong>, updating the Go handler, and waiting for CI to publish the new package version before the frontend can consume it. The workflow is more deliberate — and that deliberateness is exactly what produces the safety guarantees — but every new engineer has to unlearn the shortcut before the workflow feels natural.</p><p>Bundle size is a problem that scales with the size of your API surface. A package that contains generated types for every service in your platform is large. Tree-shaking mitigates this, but only if import paths are granular enough for the bundler to eliminate unused code. Early on we had frontend apps importing from a barrel file that defeated tree-shaking entirely and ballooned the bundle. It was fixable, but it required deliberate import discipline that REST-based codebases don’t need.</p><p>The one thing this setup doesn’t solve well is the negotiation between API producers and consumers when a breaking change is genuinely necessary. <strong>buf breaking</strong> will tell you that you’re breaking something. It won’t tell you which frontend components need updating or how long the migration will take. That coordination is still a human problem. The tooling catches the structural violation; the cross-team conversation about when to remove the old field is still yours to have.</p><h3>The Compounding Effect</h3><p>There’s a property of this system that isn’t obvious until you’ve been running it for a while: it gets better over time.</p><p>Every proto field has been reviewed and named deliberately. Every <strong>buf.validate</strong> constraint is visible to every developer who reads the contract. The generated TypeScript package is at version 1.360.3 — meaning every one of those CI runs was an opportunity to catch a type inconsistency before it reached production.</p><p>After three years and 214 proto files, we don’t have conversations that start “what does this field do?” We have the proto definition. We don’t have conversations about “what’s the frontend type for this?” We have the generated package. We don’t have production incidents from field renames — or when we do, they’re caught at the PR stage with a compiler error, not in production with a user report.</p><p>This is the characteristic of a well-designed constraint: it prevents a class of problems at the cost of some upfront friction, and the friction decreases as the team internalizes the workflow while the prevention continues.</p><h3>The AI Dividend</h3><p>There’s a side effect of this setup that we didn’t plan for when we designed it, but that’s become one of the most tangible benefits for a lean team: AI coding assistants work significantly better on a type-safe, code-generated codebase.</p><p>When an engineer asks an AI assistant to implement a new handler, the AI can read the proto definition and know exactly what the request looks like, what fields are required, what validation rules apply, and what the response shape must be. It doesn’t have to guess. The proto is the specification, and it’s right there in the file the AI is reading. For a boilerplate-heavy task — mapping a proto response to a domain model, writing a repository method that matches a service interface — the AI produces accurate code because the types leave no room for ambiguity.</p><p>The more interesting property is what happens when the AI gets it wrong. If an AI suggests a field name that doesn’t exist in the proto, the TypeScript compiler fails. If it generates a handler that returns the wrong response shape, the Go compiler fails. The same system that enforces correctness between human engineers enforces correctness on AI-generated code. The compiler doesn’t care who wrote the suggestion — it only cares whether it matches the contract.</p><p>For a lean team, this compound effect matters. Code generation removes the repetitive scaffolding work. AI handles the boilerplate within the scaffolding. Strong types catch the mistakes both make. The result is that a small team can maintain an API surface that would normally require significantly more people to keep consistent — not because the team is working harder, but because the contracts do the coordination work that headcount would otherwise do.</p><h3>Conclusion</h3><p>The deeper point is about what the contract does for the team, not just the codebase. A shared type system enforced by the compiler is a form of coordination that doesn’t require meetings, doesn’t require everyone to have read the same documentation, and doesn’t degrade as the team grows. The proto is the agreement. The generated code is the proof that everyone is honoring it. For a lean team moving fast, that’s not a nice-to-have — it’s how you stay coherent without slowing down.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5c9e2112741" width="1" height="1" alt=""><hr><p><a href="https://engineering.gearment.com/your-api-contract-is-a-team-agreement-not-a-document-b5c9e2112741">Your API Contract Is a Team Agreement, Not a Document</a> was originally published in <a href="https://engineering.gearment.com/">Gearment Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Gearment’s CDN on Cloudflare Workers: How We Overcame the Limits of Edge Computing at…]]></title>
            <link>https://engineering.gearment.com/building-gearments-cdn-on-cloudflare-workers-how-we-overcame-the-limits-of-edge-computing-at-2bf3ce83dcd1?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bf3ce83dcd1</guid>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Fri, 03 Apr 2026 09:01:39 GMT</pubDate>
            <atom:updated>2026-04-03T09:01:39.684Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building Gearment’s CDN on Cloudflare Workers: How We Overcame the Limits of Edge Computing at Scale</h3><p>Gearment is a print-on-demand fulfillment platform. We handle everything from production to delivery for 30,000+ merchants running their own stores. Every order involves artwork, product mockups, and shipping labels — all of which need to be stored, served, and transformed at different points in the workflow.</p><p>At 110TB of S3 storage and growing, the naive approach — put a standard CDN in front of S3 — started showing its cracks quickly.</p><p>The requirements didn’t fit neatly into what off-the-shelf CDNs offer:</p><p>- Artwork needs watermarks when merchants preview it, but the same file needs to go to the printer <strong>without</strong> any overlay.<br>- Some files are simply too large for Cloudflare’s built-in image resizer — and you find that out in production, not in staging.<br>- Private files (invoices, documents, internal assets) need access control — but standing up an auth service for every request adds latency and operational overhead.<br>- Shipping labels arrive as ZPL text from carriers and need to become PDFs before merchants can download them.</p><p>Standard CDN rules and Lambda@Edge workarounds could handle one or two of these. Not all of them — not cleanly, not at scale. We needed something programmable at the edge.</p><h3>Why Cloudflare Workers</h3><p>Before Cloudflare Workers, our stack looked like this: traffic came in through Cloudflare, got routed to CloudFront, and CloudFront served files from S3. There was no official integration between Cloudflare and CloudFront — we were essentially running two CDNs in sequence, paying for both, and getting the complexity of both with the flexibility of neither.</p><p>On top of that, we ran dedicated image rendering servers. Resizing, format conversion, watermarking — all handled by separate infrastructure that we had to provision, maintain, and scale.</p><p>The migration goal was simple: eliminate the middle layers. Cloudflare Workers let us retrieve files directly from S3, handle caching and authentication in code, and kill the CloudFront distribution entirely. For image transformation, we replaced the rendering servers with a hybrid: Cloudflare Images for most files, and a Lambda-based resize pipeline for files that exceeded what Cloudflare could handle.</p><p>The result: fewer moving parts, lower cost, and a system we could actually reason about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4CNuYZ5gpIvpG4qXutvjEg.png" /></figure><p>Why Workers specifically:</p><ul><li><strong>No cold starts</strong>. Workers run on V8 isolates, not containers. Sub-millisecond startup, globally distributed across 300+ PoPs.</li><li><strong>Built-in image resizing</strong>. Cloudflare’s cf.image API lets you resize, convert to WebP, and composite images declaratively — no ImageMagick, no separate microservice for the common case.</li><li><strong>R2 with zero egress</strong>. At 110TB, egress fees from S3 alone would be significant. R2 is S3-compatible and charges nothing for egress. For a storage-heavy platform, that delta matters.</li><li><strong>Full programmability</strong>. Workers are TypeScript. Routing logic, access control, transformation — all in code, versioned, testable, deployable through a single pipeline.</li></ul><p>We organized everything as a monorepo: six Workers, each with a single responsibility, managed with pnpm workspaces and Turborepo.</p><h3>Overcome #1: When the Edge Isn’t Enough — Dual Image Transformation</h3><p>The first wall we hit was Cloudflare’s image resize limit.</p><p>Cloudflare Image Resizing is fast and convenient — you pass a cf.image object with your desired dimensions and format, and Cloudflare handles the transformation at the edge:</p><pre>const resizeOptions = {<br>  cf: {<br>    cacheTtl: 86400,<br>    image: {<br>      width: 480,<br>      height: 480,<br>      fit: &#39;contain&#39;,<br>      format: &#39;webp&#39;,<br>    },<br>  },<br>};<br><br>return fetch(signedS3Url, resizeOptions);</pre><p>This works perfectly for most files. But high-resolution print artwork — the kind POD merchants upload — can be 50MB, 100MB, or more. When the file exceeds Cloudflare’s limits, the response comes back as a 403 or 413, and you’re left with nothing to serve.</p><p>We couldn’t tell merchants to compress their files. Print quality depends on resolution. So we built a second transformation path.</p><h4>The async Lambda pipeline</h4><p>When a resize request fails, the CDN Worker doesn’t just return an error. It checks whether a pre-resized version of the file already exists in S3 under a resized/ prefix:</p><pre>s3://bucket/resized/{original-path}</pre><p>If the pre-resized file exists, we serve it directly — no Cloudflare resizing needed. If it doesn’t exist, the Worker writes a small trigger file to S3:</p><pre>const triggerKey = `triggers/${requestPath}.trigger`;<br>const triggerBody = JSON.stringify({<br>  source: requestPath,<br>  created_at: new Date().toISOString(),<br>});<br><br>await aws.fetch(triggerS3Url, {<br>  method: &#39;PUT&#39;,<br>  headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>  body: triggerBody,<br>});</pre><p>An AWS Lambda function watches for new objects under triggers/. When it finds one, it fetches the original file from S3, resizes it using Sharp (which handles large files without Cloudflare’s constraints), and saves the output to resized/. The next request to the CDN finds the pre-processed file and serves it without going anywhere near Cloudflare’s image resizer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l4sfFalzDbAgSNTCswIKRw.jpeg" /></figure><p>The edge handles what it can. For everything else, we made the system call for help — and cache the result so it never has to again.</p><h3>Overcome #2: Security and Performance Without Extra Services</h3><h4>Zero-Trust File Access Without an Auth Server</h4><p>Not all files on Gearment are public. Invoices, internal documents, and certain merchant assets need access control. The typical solution is a backend auth service: request comes in, Worker calls the auth service, auth service checks permissions, returns a token, Worker serves the file.</p><p>That’s a round-trip we didn’t want to pay on every request.</p><p>Instead, we implemented URL footprinting — a stateless access control mechanism. When the backend generates a signed URL for a private file, it computes an HMAC-SHA512 hash of the path and a timestamp using a shared secret:</p><pre>function verifyFootprint(path: string, timestamp: string, secret: string, providedHash: string) {<br>  const computedHash = createHash(&#39;sha512&#39;)<br>    .update(`${timestamp}${path}${secret}`)<br>    .digest(&#39;hex&#39;);<br>  return computedHash === providedHash;<br>}</pre><p>The URL looks like:</p><pre>/path/to/file/footprint/t=1234567890;h=&lt;sha512-hash&gt;</pre><p>The Worker verifies the hash inline. No external call. No database. No auth service. If the hash doesn’t match, the request gets a 403. If it matches, the file is served.</p><p>Timestamps prevent replay attacks — expired footprints are rejected without needing a blocklist. The entire access control system lives in a hash function and a secret rotation policy.</p><h4>R2 as a Persistent Warm Cache</h4><p>For CMS assets — images, banners, marketing materials — we needed a cache that survived Cloudflare’s edge cache evictions. Edge caches are ephemeral; low-traffic assets get evicted quickly, pushing requests back to the origin.</p><p>Our CMS Worker uses R2 as a persistent intermediate layer:</p><ol><li>Request arrives. Check Cloudflare’s edge cache first.</li><li>Cache miss. Check R2 bucket.</li><li>R2 miss. Fetch from origin. Serve the response.</li><li>Background. Write the fetched asset to R2 using ctx.waitUntil() — async, non-blocking.</li></ol><pre>if (cachedResponse) {<br>  return handleResponse(cachedResponse); // Edge cache hit<br>}<br><br>const object = await env.CMS_BUCKET.get(r2Key);<br>if (object) {<br>  return handleResponse(new Response(object.body, { headers })); // R2 hit<br>}<br><br>// Origin fetch<br>const response = await fetch(accessURL, { cf: { cacheTtl: 900 } });<br><br>// Write to R2 without blocking the response<br>ctx.waitUntil(<br>  env.CMS_BUCKET.put(r2Key, response.clone().body, {<br>    httpMetadata: { contentType },<br>  })<br>);<br><br>return handleResponse(response);</pre><p>The <strong>waitUntil</strong> pattern is key. The response is already on its way to the client before R2 even starts writing. On the next request, the asset is in R2. The origin never gets hit twice for the same file.</p><p>Since R2 has zero egress fees, we don’t have to think about cost when deciding what to cache. Everything gets cached. At 110TB, that makes a real difference in origin load.</p><h3>Other Obstacles Along the Way</h3><p>Not every challenge warranted its own architecture section, but a few are worth naming:</p><p><strong>Content protection vs. print fidelity.</strong> Merchant artwork displayed in the dashboard carries a semi-transparent watermark overlay — composited at the edge via cf.image.draw. The same file served with a /print suffix strips the overlay for the printing pipeline. Same file, two use cases, one URL convention.</p><p><strong>Shipping labels as a CDN concern.</strong> Carriers send ZPL text. Merchants need PDFs. The storage Worker fetches the ZPL, injects tracking QR codes where applicable, sends it to Labelary’s API for conversion, caches the resulting PDF in R2, and returns it — all within a single request. We didn’t build a document service. We made the CDN do it.</p><p><strong>Multi-environment routing.</strong> Dev, staging, and production environments are resolved at runtime by hostname — same Worker code, different credentials and buckets. Environment config doesn’t live in the deployment pipeline; it lives in the request URL.</p><p><strong>CORS at the edge.</strong> With multiple domains across environments, CORS headers needed to be computed per-request against an allowlist rather than set statically. A simple wildcard * wasn’t acceptable for credentialed requests.</p><h4>What This Unlocked</h4><p>The architecture we landed on isn’t complex — it’s composed. Each Worker has one job. Each layer has a fallback. Each request is handled as close to the user as possible.</p><p>The numbers tell the story:</p><p>- 10M+ requests served per month — across 30,000+ merchants, globally, with no dedicated image server.<br>- S3 storage costs cut from $2,000 → $1,000/month — by moving 110TB to a lower storage tier, something the previous CloudFront-coupled architecture made difficult to do cleanly.<br>- CloudFront distribution costs eliminated — by routing traffic through Cloudflare Workers directly to S3, we removed an entire billing layer from the stack.<br>- No auth service to maintain — footprint signing handles private file access with a hash function and a secret.<br>- Large file resizing doesn’t block users — the async Lambda pipeline handles it out-of-band, and the first-request penalty is a one-time cost per file.</p><p>Cutting $1,000/month from storage costs might sound modest. At startup scale, it isn’t — and it compounds as storage grows.</p><p>Edge computing isn’t a silver bullet. Cloudflare Workers has limits — on file sizes, on CPU time, on what you can do in a single request. But knowing where those limits are is exactly what lets you design around them.</p><p>We didn’t overcome Cloudflare’s constraints by leaving Cloudflare. We overcame them by treating each constraint as a design prompt: <em>if the edge can’t do this, what’s the cleanest way to hand it off?</em></p><p>That question — asked consistently across every layer — is what the architecture is built on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bf3ce83dcd1" width="1" height="1" alt=""><hr><p><a href="https://engineering.gearment.com/building-gearments-cdn-on-cloudflare-workers-how-we-overcame-the-limits-of-edge-computing-at-2bf3ce83dcd1">Building Gearment’s CDN on Cloudflare Workers: How We Overcame the Limits of Edge Computing at…</a> was originally published in <a href="https://engineering.gearment.com/">Gearment Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Expensive Part of Cheap Code]]></title>
            <link>https://vchitai.medium.com/the-expensive-part-of-cheap-code-d84792bb4f3a?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d84792bb4f3a</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 15:57:07 GMT</pubDate>
            <atom:updated>2026-03-27T15:57:07.510Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wWYoQ98XSw5f9KZOaYIzeQ.jpeg" /></figure><p>A new engineer joined our team recently. Smart, capable, armed with AI agents that could scaffold an entire service in an afternoon. Within the first week, they opened a pull request with a note: “Why is this service structured like this? I asked Claude and it suggested a cleaner approach.”</p><p>They were not wrong. The suggested architecture was cleaner, more idiomatic, easier to test. If we were building it today, we would probably do it that way.</p><p>But we did not build it today. We built it two years ago, with a different team, different constraints, different tools. And this is just how software works. Every codebase is a fossil record — layers of decisions made under conditions that no longer exist. Constraints that have been lifted. Team compositions that have changed. Tools that have been replaced.</p><p>The interesting thing is not that old code looks outdated. Of course it does. The interesting thing is that it works. It shipped. It solved the problem it needed to solve at the time. And now someone with better tools looks at it and wonders why anyone would build it that way — the same way we will look at today’s AI-assisted code in five years and wonder the same thing.</p><p>This is the nature of the industry. Every generation of engineers inherits decisions they would not have made, made by people who did not have their tools. And every generation leaves behind decisions the next one will question. It is not a bug. It is how software evolves.</p><p>So in an industry where today’s best practice is tomorrow’s tech debt — what actually matters? What survives?</p><h3>Architecture Is About People</h3><p>Early in my career, I thought architecture meant drawing boxes and arrows. Pick the right pattern — microservices, event-driven, hexagonal — and the system would be good. I was wrong.</p><p>The best architecture I have ever worked with was not technically impressive. It was a set of services that happened to match exactly how our teams were organized. Each team owned one or two services, had full control over their deploy pipeline, and rarely needed to coordinate with other teams for routine work. New features shipped fast. On-call was manageable. People were happy.</p><p>The worst architecture I have worked with was technically beautiful. Clean separation of concerns, elegant abstractions, thoughtful use of design patterns. But it was built by one team and handed to three. No one understood the boundaries. Every feature required changes in four services. Deploy coordination became a full-time job.</p><p>Conway’s Law is not just an observation — it is a warning. Your system will eventually mirror your organization, whether you design it that way or not. You can fight this, and you will lose. Or you can embrace it and let your team structure inform your service boundaries.</p><p>I learned this the hard way in the early days of a startup. Small budget. A team of mostly junior engineers, myself included. No luxury of senior developers who could just “do the right thing” by instinct.</p><p>The conventional wisdom would say: keep it simple, use REST, figure out contracts later. But I knew what would happen. With junior engineers on both sides, the frontend and backend would slowly drift apart. Someone would rename a field and forget to tell the other side. Someone would assume a response shape that never existed. We would spend half our time debugging integration issues instead of building features.</p><p>So I made a bet that felt heavy at the time: ConnectRPC with Protocol Buffers, end to end. One shared schema that generated types for both frontend and backend. Strict contracts enforced by the compiler, not by code review. If you changed the API shape, both sides knew immediately — not three days later when QA found a broken page.</p><p>It was more setup than a simple REST API. The team had to learn protobuf, understand code generation, get comfortable with a less familiar toolchain. Some people questioned whether it was overkill.</p><p>But here is what happened: junior engineers who would have spent hours debugging mismatched JSON fields were instead caught by the compiler in seconds. API changes became mechanical — update the proto, regenerate, fix the type errors, done. Code reviews could focus on business logic instead of “did you match the response schema?” The strict framework did the job that senior engineers would have done through experience and discipline.</p><p>A team of seniors might not need this. They have the habits, the instincts, the muscle memory to keep things consistent without strict tooling. But I did not have a team of seniors. I had the team I had, and the architecture needed to work for them — not for some ideal team that did not exist.</p><p>This reframing changed how I think about scalability. When someone says “this system needs to scale,” I used to think about traffic, throughput, database sharding. Now my first question is: how many people need to work on this simultaneously without stepping on each other?</p><p>Traffic scaling is largely a solved problem. Throw money at your cloud provider. But team scaling — enabling ten developers to be as productive as they were when there were three — that is an architecture problem. And it is the one that actually determines whether your product succeeds or fails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56a-T-piTVxNZtcX0geKIw.jpeg" /></figure><h3>Two-Way Doors</h3><p>Jeff Bezos has this concept of one-way doors and two-way doors. One-way doors are decisions that are nearly impossible to reverse. Two-way doors are decisions you can walk back through if they do not work out.</p><p>Most technical decisions are two-way doors. Your choice of programming language, web framework, state management library, CI/CD tool, even your cloud provider — these feel permanent but they are not. Swapping them is expensive, sure. It takes effort and time. But it is doable. Companies do it all the time.</p><p>The real one-way doors in software are fewer than you think, but they matter more than anything:</p><p>- <strong>Your public API contract.</strong> Once external consumers depend on it, every change is a negotiation.</p><p>- <strong>Your core data model.</strong> Migrating a live database with years of data is not just a technical problem — it is a political one.</p><p>- <strong>Your service boundaries.</strong> Splitting a monolith is hard. Merging two services is harder. Doing either while shipping features is a nightmare.</p><p>- <strong>Your promises to users.</strong> Once you launch a feature, someone depends on it. Removing it means breaking trust.</p><p>The problem I see in most teams is a mismatch. They treat two-way doors like one-way doors — agonizing over framework choices in week-long meetings, creating evaluation matrices for decisions that could be reversed in a sprint. Meanwhile, they rush through one-way doors — casually designing a database schema in a pull request description, or shipping a public API endpoint without thinking about how it will evolve.</p><p>The skill is not in making the right decision. It is in recognizing which type of door you are walking through. For two-way doors, decide fast, learn fast, adjust. For one-way doors, slow down, write it down, get more eyes on it.</p><p>And here is the meta-skill: <strong>design your systems so that more doors become two-way. </strong>This is what good abstraction is for. Not to make code pretty, but to make decisions reversible. Put an interface between your service and the message broker — now swapping Kafka for NATS is a two-way door. Version your API from day one — now evolving it is a two-way door. Use feature flags — now launching is a two-way door.</p><p>The goal is not to avoid making mistakes. It is to make mistakes cheap.</p><h3>The Values That Compound</h3><p>I have been writing software professionally for several years now. In that time, I have used more languages, frameworks, and tools than I can count. Most of them are already obsolete or will be soon.</p><p>But some things I learned early on have only become more valuable over time. These are the skills that compound — the things that get more useful the longer you practice them, regardless of what technology you are using.</p><p><strong>Communication.</strong> The ability to explain a technical decision to someone who does not share your context. Writing a clear RFC that a new team member can understand. Giving code review feedback that teaches instead of criticizes. Saying “I do not know” in a meeting instead of hand-waving.</p><p>I used to think communication was a soft skill — nice to have, not essential. I was very wrong. The best technical decision, poorly communicated, is worse than a mediocre decision that everyone understands and buys into. Alignment beats optimization. Every time.</p><p><strong>Abstraction thinking. </strong>Knowing when to hide complexity and when to expose it. When to build a reusable component and when to just copy-paste. When a new abstraction layer helps and when it is just another thing to maintain.</p><p>The irony is that junior developers often create too many abstractions (DRY everything!) while senior developers know that a little duplication is healthier than a bad abstraction. The skill is not in abstracting — it is in knowing the cost of each layer you add.</p><p><strong>Trade-off reasoning. </strong>There is no “best practice” in a vacuum. There are only trade-offs that make sense in a given context. Choosing consistency over availability is not right or wrong — it depends on whether you are building a banking system or a social feed. Picking a monolith over microservices is not outdated — it depends on whether you have two developers or twenty.</p><p>The engineers I admire most are not the ones with the strongest opinions. They are the ones who can articulate the trade-offs clearly: “We are choosing X, which gives us A and B, at the cost of C. We accept this trade-off because D.” That sentence is worth more than any architectural diagram.</p><p><strong>Empathy.</strong> Code is read more than it is written. APIs are used by people who were not in the room when you designed them. Systems are operated by on-call engineers at 3am who have never seen your code before.</p><p>Building for the person who comes after you is not altruism. It is engineering. The variable name that saves someone ten minutes of confusion. The error message that tells the operator what actually went wrong. The API response that includes enough context for the consumer to debug their own issue. These small acts of empathy compound into systems that are genuinely good to work with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jT-ECvFxISCGrINuaMAUcg.jpeg" /></figure><h3>AI Raises the Stakes</h3><p>Everything I have described — team-aware architecture, reversible decisions, communication, abstraction, trade-offs, empathy — has been true for decades. But AI is making these skills more important, not less.</p><p>Here is why: AI makes implementation cheap. When you can generate a working prototype in an afternoon, the bottleneck shifts. It is no longer “can we build this?” It is “should we build this?” And “should” is a question that requires all the skills above.</p><p>When everyone on the team can produce code faster, the cost of building the wrong thing goes up. Not because the code costs more, but because the opportunity cost is higher. You could have built something else in that same afternoon. The engineers who thrive are the ones who kill features before they get built — who have the judgment to say “this solves a problem nobody has” or “this creates a two-way door where we need a wall.”</p><p>AI also changes how teams work together. Code review is different when half the code was generated. You are not reviewing someone’s thought process anymore — you are reviewing output. This requires a different kind of attention. More focus on “does this actually solve the problem?” and less on “is this idiomatic?”</p><p>Pair programming with AI is not like pair programming with a person. You do not negotiate approaches. You prompt, evaluate, adjust, prompt again. The skill is in evaluation — knowing whether the output is good enough, catching the subtle bugs that look correct at first glance, recognizing when the AI confidently chose the wrong abstraction.</p><p>But the core has not changed. You still need to communicate decisions clearly. You still need to think about abstractions. You still need to reason about trade-offs. You still need empathy for the humans in the system — the users, the operators, the next developer.</p><p>If anything, AI amplifies the gap between engineers who have these skills and those who do not. When everyone has access to the same AI tools, the differentiator is not who can prompt better — it is who knows what to build, how to structure it for a team, and which decisions to spend time on.</p><h3>The Compound Interest of Boring Skills</h3><p>I keep coming back to that pull request from the new engineer. They were right. The code could be better. It can always be better. That is the easy part.</p><p>The hard part is knowing that every codebase you touch was someone’s best answer to a question you never had to ask. And the code you write today, with all your shiny AI tools, will look just as dated to whoever comes next. That is not a tragedy. That is the job.</p><p>The most valuable things in software engineering are boring. Communication is boring. Thinking carefully about boundaries is boring. Writing clear documentation is boring. Designing for reversibility is boring. Having empathy for the next person is boring.</p><p>But these are the things that compound. They get more valuable every year, regardless of what language you write in, what cloud you deploy to, or how much of your code an AI generates. They are the things that do not change.</p><p>And in an industry addicted to change, that might be the most valuable thing of all.</p><p>— -</p><p><em>Code has never been cheaper to produce. Knowing what code to write has never been more expensive.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d84792bb4f3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Understanding Every Line to Trusting the Black Box: A Developer’s Journey]]></title>
            <link>https://vchitai.medium.com/from-understanding-every-line-to-trusting-the-black-box-a-developers-journey-31a20f39d135?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/31a20f39d135</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Sun, 11 Jan 2026 15:16:40 GMT</pubDate>
            <atom:updated>2026-01-11T15:16:40.726Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Fog covering a landscape — like the mist hiding what’s inside our systems" src="https://cdn-images-1.medium.com/max/1024/1*4pGVIusiI1HN9sS8baCwMQ.jpeg" /><figcaption>The mist hiding what’s inside our systems</figcaption></figure><p>I have always been the type of engineer who needs to understand everything. Every line of code, every algorithm, every decision behind the architecture. That’s how I was trained, and that’s how I believed good engineering should be done.</p><p>But recently, something has changed. We are moving from an era where developers understood their tools completely to an era where we orchestrate systems that even their creators cannot fully explain. This is the age of black box programming.</p><h3>The Traditional Way: You Own What You Understand</h3><p>Back in my early days as a backend engineer, debugging meant tracing through every function call. I remember spending weeks understanding how database indexes work internally, how B-trees are structured, how the query optimizer makes decisions. That knowledge became my weapon.</p><p>This is what I call “whitebox programming” — you see through the glass, you understand the mechanism, you own the solution. Senior engineers were measured by their depth of understanding. Code reviews demanded explanations for every choice.</p><p>But looking back, the cracks were already forming. Do I really understand how the V8 engine optimizes my JavaScript? Do I understand every line in the 1,500 npm packages my project depends on? The truth is, we have been living with black boxes for a long time. We just chose not to see them.</p><h3>The Crypto Wake-Up Call: Data You Cannot Control</h3><p>Then I moved to crypto. This is where the real black box journey began.</p><p>In traditional backend development, you own your data. It sits in your database, under your control. Blockchain flips this assumption entirely.</p><p>The blockchain is the ultimate black box from a backend perspective. You do not control when blocks are produced. You do not control transaction ordering. The chain produces data at its own pace, following consensus rules involving thousands of nodes you have never seen.</p><p>My first instinct was to fight this — build systems that process on-chain events in real-time, maintain perfect consistency between chain state and my database. It did not work.</p><p>The breakthrough came when I stopped thinking about “processing” blockchain data and started thinking about “synchronizing” with it. Your backend becomes a listener, an observer. You do not process transactions — you watch them happen and update your local view accordingly.</p><p>This means accepting eventual consistency, handling reorgs gracefully, and optimizing for gas costs instead of compute costs. The “indexer mindset” emerged: instead of building systems that process data, you build systems that index data. Your value is not in the processing logic — it is in how you structure the indexed data and present information to users.</p><p>This experience prepared me for AI in ways I did not expect. Both involve working with systems you cannot fully control. Both shift your focus from implementation details to interface design and data flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ojfmlcSNmmjVJApmYxl9kw.jpeg" /><figcaption>Abstract network of connected nodes</figcaption></figure><h3>The AI Leap: Trusting What You Cannot Explain</h3><p>My first real encounter with AI in production was building a content moderation system. The traditional approach would involve regex patterns, keyword matching, heuristics. I understood this approach. I could explain every decision.</p><p>But we needed to detect subtle harassment, understand context, handle multiple languages. So we used an AI model.</p><p>The model worked remarkably well. But I could not explain why it made certain decisions. When it flagged a comment as toxic, I could not point to a specific rule. The decision emerged from complex interactions between weights that no human could trace.</p><p>This felt wrong at first. But then I realized: the model’s accuracy was higher than any rule-based system we could build. The black box was outperforming the glass box.</p><p>I went through what I now recognize as the five stages of black box acceptance: Denial (“I will just learn how neural networks work deeply”), Anger (“This is not real engineering”), Bargaining (“Maybe I can build interpretability tools”), Depression (“What is the point of being a developer?”), and finally Acceptance (“My job is to build things that work and solve problems”).</p><h3>The New Engineering Mindset</h3><p>So how do you actually work with something you cannot fully understand?</p><p>I found myself changing habits without realizing it. These days I spend way more time thinking about how to ask the right question than how to write the solution. Sounds weird, but when the AI does most of the heavy lifting, your job becomes framing the problem correctly. Give it bad context, you get garbage. Give it good context, you get something surprisingly useful. It is like learning a new language — not code, but intent.</p><p>Testing changed too. I used to write unit tests that check if function X returns Y. Now half my tests are basically “does this output look sane?” — more like QA than traditional testing. You cannot verify the reasoning inside a neural network, so you verify the results instead. If it works consistently across a thousand edge cases, maybe that is good enough.</p><p>And I got paranoid. Every time I ship something with AI in it, I ask myself: what is the dumbest thing this could possibly say? Then I build walls around it. Not because I do not trust the tech, but because I have seen it hallucinate confidently at 3am when no one is watching.</p><h3>From Coder to Architect</h3><p>If AI can write code, what is the point of being a developer? I used to lose sleep over this question. Now I think it misses the point entirely.</p><p>Here is what actually happened to my job: I stopped writing code all day and started thinking about what to build. Sounds obvious, but it is a real shift. When implementation is cheap, the expensive part becomes knowing what is worth implementing. I catch myself in more user calls, more whiteboard sessions, more “wait, do we actually need this?” conversations than ever before.</p><p>The best engineers I work with these days are not the fastest coders. They are the ones who kill features before they get built. They smell scope creep from a mile away. They know that in a world where you can build anything quickly, building the wrong thing is the real waste.</p><p>My actual day-to-day now looks more like architecture than coding. Where does this system talk to that system? What happens when the blockchain is slow? What happens when the AI returns nonsense? How do we swap out this model for a better one next year without rewriting everything? These are the questions that keep me busy.</p><p>I still write code, but it is different. More glue, less logic. More wrappers that hide the weird behavior of black boxes behind clean interfaces. The craft is not in the algorithm anymore — it is in making unpredictable systems behave predictably from the outside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nslqz6cTUwEnfwKfd9IZWQ.jpeg" /></figure><h3>Looking Forward</h3><p>The mist is thicker now than when I started my career. I cannot see as far into my own systems as I used to. But I have learned that this is okay.</p><p>My job was never to understand everything — it was to build things that work, that solve problems, that make people’s lives better.</p><p>The tools have changed. The abstraction layers have grown taller. The black boxes have become more prevalent. But the mission remains the same. And as long as that mission drives us, we will find ways to navigate whatever comes next.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31a20f39d135" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Loomy: A Modern, Type-Safe Worker Pool for Go]]></title>
            <link>https://vchitai.medium.com/loomy-a-modern-type-safe-worker-pool-for-go-2376a1c66ed2?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2376a1c66ed2</guid>
            <category><![CDATA[worker-pool]]></category>
            <category><![CDATA[concurrency]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Wed, 19 Nov 2025 15:40:25 GMT</pubDate>
            <atom:updated>2025-11-19T15:40:25.604Z</atom:updated>
            <content:encoded><![CDATA[<p>Concurrency is one of Go’s superpowers, but managing worker pools efficiently can be challenging. Today, I’m excited to introduce <strong>loomy</strong> — a production-ready, generic worker pool library that makes concurrent processing simple, safe, and elegant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kPy2gIkWqGZhSuLV7EQYfw.gif" /></figure><h3>Why Another Worker Pool Library?</h3><p>When building high-performance Go applications, you often need to:</p><p>- Process tasks concurrently with a controlled number of workers</p><p>- Handle timeouts and cancellations gracefully</p><p>- Manage worker lifecycle (scaling up/down dynamically)</p><p>- Monitor job execution with hooks</p><p>- Recover from panics without crashing the entire pool</p><p>While Go’s goroutines and channels are powerful primitives, implementing all these features correctly requires careful attention to synchronization, resource management, and error handling. <strong>Loomy</strong> provides a battle-tested abstraction that handles these concerns for you.</p><h3>What Makes Loomy Different?</h3><h4><strong>Type Safety with Generics</strong></h4><p>Loomy leverages Go 1.18+ generics to provide compile-time type safety:</p><pre>// Create a pool that processes integers and returns strings<br>pool := loomy.NewFunc(10, func(ctx context.Context, num int) (string, error) {<br>    result := fmt.Sprintf(&quot;Processed: %d&quot;, num * 2)<br>    return result, nil<br>})<br>defer pool.Close()<br><br>// Type-safe processing<br>result, err := pool.Process(42)<br>// result is string, not interface{}</pre><p>No more `interface{}` casting or runtime type assertions!</p><h4><strong>Context-Aware Processing</strong></h4><p>Every worker receives a `context.Context` for proper cancellation control:</p><pre>pool := loomy.NewFunc(5, func(ctx context.Context, task Task) (Result, error) {<br>    select {<br>    case &lt;-ctx.Done():<br>        // Handle cancellation gracefully<br>        return Result{}, ctx.Err()<br>    case result := &lt;-processingChannel:<br>        return result, nil<br>    }<br>})<br><br>// Process with timeout<br>ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)<br>defer cancel()<br><br>result, err := pool.ProcessCtx(ctx, myTask)<br>if err == context.DeadlineExceeded {<br>    log.Println(&quot;Task timed out&quot;)<br>}</pre><p>The context cancels automatically on:</p><p>- Explicit timeout via `ProcessTimed()` or `ProcessCtx()`</p><p>- Pool shutdown</p><p>- Worker interruption</p><h4><strong>Graceful Shutdown</strong></h4><p>Loomy provides multiple shutdown strategies:</p><pre>// Wait for all in-flight jobs to complete (up to 1 minute)<br>pool.Close()<br><br>// Interrupt all workers immediately and wait for cleanup<br>pool.CloseWithTimeout(5 * time.Second)<br><br>// Best of both worlds: try graceful, fall back to interrupt<br>pool.GracefulShutdown(30*time.Second, 5*time.Second)</pre><h4><strong>Dynamic Worker Scaling</strong></h4><p>Scale your worker pool up or down at runtime:</p><pre>pool := loomy.NewFunc(5, workerFunc)<br><br>// Scale up during peak hours<br>pool.SetSize(20)<br><br>// Scale down during off-peak<br>pool.SetSize(5)</pre><p>Workers are added or removed smoothly without disrupting in-flight jobs. It’s easier for you to control the rhythms.</p><h4><strong>Lifecycle Hooks for Observability</strong></h4><p>Monitor your worker pool with comprehensive hooks:</p><pre>type MyHooks struct{}<br><br>func (h *MyHooks) OnWorkerStart(workerID int) {<br>    metrics.Increment(&quot;worker.started&quot;)<br>}<br><br>func (h *MyHooks) OnJobStart(payload Task) {<br>    log.Printf(&quot;Starting job: %v&quot;, payload)<br>}<br><br>func (h *MyHooks) OnJobComplete(payload Task, result Result, duration time.Duration) {<br>    metrics.RecordDuration(&quot;job.duration&quot;, duration)<br>}<br><br>func (h *MyHooks) OnJobPanic(payload Task, recovered interface{}) {<br>    log.Errorf(&quot;Job panicked: %v&quot;, recovered)<br>    errorReporter.Report(recovered)<br>}<br><br>pool.SetHooks(&amp;MyHooks{})</pre><p>Perfect for integrating with your monitoring and observability stack!</p><h4><strong>Automatic Panic Recovery</strong></h4><p>Workers automatically recover from panics, ensuring one bad job doesn’t crash your entire pool:</p><pre>pool := loomy.NewFunc(3, func(ctx context.Context, num int) (int, error) {<br>    if num == 13 {<br>        panic(&quot;unlucky number!&quot;)<br>    }<br>    return num * 2, nil<br>})<br><br>// This won&#39;t crash the pool<br>_, err := pool.Process(13)<br>// err will be ErrJobPanicked<br>// Worker recovers and continues processing other jobs</pre><h3>Real-World Use Cases</h3><h4>API Client-side Rate Limiting</h4><pre>// Process API requests with max 10 concurrent calls<br>apiPool := loomy.NewFunc(10, func(ctx context.Context, req APIRequest) (APIResponse, error) {<br>    return httpClient.Do(ctx, req)<br>})<br><br>// Process requests with timeout<br>for _, req := range requests {<br>    resp, err := apiPool.ProcessTimed(req, 30*time.Second)<br>    if err != nil {<br>        log.Printf(&quot;Request failed: %v&quot;, err)<br>        continue<br>    }<br>    handleResponse(resp)<br>}</pre><h4>Batch Processing Control</h4><pre>// Process database records in batches<br>dbPool := loomy.NewFunc(5, func(ctx context.Context, record Record) (ProcessedRecord, error) {<br>    // Heavy processing with DB calls<br>    return processRecord(ctx, db, record)<br>})<br><br>for _, record := range records {<br>    go func(r Record) {<br>        result, err := dbPool.Process(r)<br>        resultsChan &lt;- ProcessResult{result, err}<br>    }(record)<br>}</pre><h4>Image Processing Pipeline</h4><p>Better control your workload size</p><pre>// Resize images concurrently<br>imagePool := loomy.NewFunc(runtime.NumCPU(), func(ctx context.Context, img Image) (Image, error) {<br>    return resize(img, 800, 600)<br>})<br><br>// Process images in parallel<br>var wg sync.WaitGroup<br>for _, img := range images {<br>    wg.Add(1)<br>    go func(image Image) {<br>        defer wg.Done()<br>        resized, err := imagePool.Process(image)<br>        if err != nil {<br>            log.Printf(&quot;Failed to resize: %v&quot;, err)<br>            return<br>        }<br>        save(resized)<br>    }(img)<br>}<br>wg.Wait()</pre><h4>Performance &amp; Reliability</h4><p>Loomy is built with production use in mind:</p><p>- <strong>Race-free:</strong> All concurrent access is properly synchronized with mutexes</p><p>- <strong>Well-tested:</strong> 95.9% code coverage with comprehensive test suite</p><p>- <strong>Zero allocations</strong> in hot paths for maximum performance</p><p>- <strong>Memory efficient</strong>: Workers reuse goroutines instead of spawning new ones</p><p>- <strong>Battle-tested</strong>: Used in production systems handling millions of jobs in Gearment system</p><h3>Getting Started</h3><p>Install loomy:</p><pre>go get github.com/gearment/loomy</pre><p>Basic usage:</p><pre>package main<br><br>import (<br>    &quot;context&quot;<br>    &quot;fmt&quot;<br>    &quot;github.com/gearment/loomy&quot;<br>)<br><br>func main() {<br>    // Create a pool with 5 workers<br>    pool := loomy.NewFunc(5, func(ctx context.Context, num int) (int, error) {<br>        return num * num, nil<br>    })<br>    defer pool.Close()<br><br>    // Process work items<br>    result, err := pool.Process(10)<br>    if err != nil {<br>        panic(err)<br>    }<br><br>    fmt.Printf(&quot;Result: %d\n&quot;, result) // Output: Result: 100<br>}</pre><h3>Contributing</h3><p>Loomy is open source and welcomes contributions! Whether it’s:</p><p>- Bug reports and fixes</p><p>- Feature requests and implementations</p><p>- Documentation improvements</p><p>- Performance optimizations</p><p>Check out the <a href="https://github.com/gearment/loomy">GitHub repository</a> to get involved.</p><h3>Conclusion</h3><p>Building concurrent systems in Go should be simple and safe. <strong>Loomy</strong> provides a robust, type-safe worker pool that handles the complexity of worker management, allowing you to focus on your business logic.</p><p>Key features:</p><p>- ✅ Type-safe with generics</p><p>- ✅ Context-aware cancellation</p><p>- ✅ Graceful shutdown</p><p>- ✅ Dynamic scaling</p><p>- ✅ Lifecycle hooks</p><p>- ✅ Panic recovery</p><p>- ✅ Production-ready</p><p>Give it a try in your next Go project and let me know what you think!</p><p><strong>Links:</strong></p><p>- 📦 <a href="https://github.com/gearment/loomy">GitHub Repository</a></p><p>- 📚 <a href="https://pkg.go.dev/github.com/gearment/loomy">Documentation</a></p><p>- 🐛 <a href="https://github.com/gearment/loomy/issues">Report Issues</a></p><p><em>Happy concurrent programming!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2376a1c66ed2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Nx to Moonrepo: The small change that made our CI/CD breathe]]></title>
            <link>https://engineering.gearment.com/from-nx-to-moonrepo-the-small-change-that-made-our-ci-cd-breathe-b848dbbdc715?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b848dbbdc715</guid>
            <category><![CDATA[monorepo]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Sat, 08 Nov 2025 04:16:43 GMT</pubDate>
            <atom:updated>2025-11-19T15:10:41.512Z</atom:updated>
            <content:encoded><![CDATA[<p>We run a Go-first monorepo. Nx worked for years, but every Go lane still installed Node and warmed a JavaScript workspace it didn’t use. The per-run tax was small; at scale it became drag. We wanted a pipeline that matched reality: mostly Go lanes, runtime-neutral execution, deterministic caching, and a DRY, auditable config model.</p><h3>Why</h3><p>We picked Nx early because we needed monorepo primitives fast — an affected graph to run only what changed, computation caching, and shared conventions for targets/scripts. It let us wrap Go tasks with run-commands and standardize pipelines across teams without inventing a build system. It was the quickest path to a consistent CI while the repo was still maturing.</p><p>A few months in, small Go PRs felt slower than they should. CI minutes crept up, and step-time charts kept putting setup-node and the npm cache dance near the top on Go lanes. Every Go PR began with a ritual that didn’t belong to Go:</p><ol><li>Install Node</li><li>Warm a JS workspace</li><li>Execute go build / go test via run-commands</li></ol><p>Individually minor; multiplied by developers × jobs × PRs, it turned into real drag. We also saw occasional cache misses when outputs weren’t tightly scoped and drift across near-identical project.json files because defaults hinge on target names.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HTl4GmY8ErHipsjKFCfBOA.jpeg" /></figure><h3>The switch</h3><p>We switched to Moonrepo and used proto to manage toolchains. The difference wasn’t the number of commands; it was the runtime footprint. On Go lanes we install Go, nothing else. No Node runtime and no package‑manager warm‑up for jobs that don’t need JS. We pin toolchains at the repo level, install only what each job uses, and let moon execute.</p><p><strong>Execution.</strong> Moon’s runner is runtime‑neutral for our Go lanes, so environment steps disappeared and cold starts dropped.</p><p><strong>Caching via IO contracts.</strong> Each task declares inputs/outputs; matching hashes restore artifacts instead of rebuilding. Nx can be deterministic too when IO is clean; our friction was duplication and naming discipline. In Moon, IO can live at the root or directly under a project. We centralized common IO once, overrode only exceptions, isolated non‑deterministic files (timestamps, build IDs), and kept one output folder per task.</p><p><strong>Remote cache.</strong> We pointed Moon’s cache to storage we already run and kept artifacts small and scoped, so hits became predictable.</p><h4><strong>Task inheritance vs Nx.</strong></h4><p>Nx didn’t force us to copy-paste project.json — we did that to ourselves. But in Nx, global defaults hang off target names, so staying in sync relies on naming discipline and generators. Human nature crept in; drift followed. Moon’s inheritance model made it harder to shoot our own feet.</p><p>Before (Nx, three similar services, three similar files)</p><pre>{<br>  &quot;name&quot;: &quot;service-a&quot;,<br>  &quot;targets&quot;: {<br>    &quot;build&quot;: { &quot;executor&quot;: &quot;nx:run-commands&quot;, &quot;options&quot;: { &quot;command&quot;: &quot;go build -o bin/service-a ./cmd/service-a&quot; } },<br>    &quot;test&quot;:  { &quot;executor&quot;: &quot;nx:run-commands&quot;, &quot;options&quot;: { &quot;command&quot;: &quot;go test ./...&quot; } }<br>  }<br>}</pre><p>…repeat for service-b, service-c, and hope names stay aligned.</p><p>After (Moonrepo, policy once, projects inherit)</p><pre># root<br>tasks:<br>  presets:<br>    go.build:<br>      command: &quot;go build -o bin/{{projectName}} ./cmd/{{projectName}}&quot;<br>      inputs: [&quot;go.mod&quot;,&quot;go.sum&quot;,&quot;cmd/**&quot;,&quot;internal/**&quot;,&quot;pkg/**&quot;]<br>      outputs: [&quot;bin/{{projectName}}&quot;]<br>      env: { CGO_ENABLED: &quot;0&quot; }<br>      options: { cache: true }<br>    go.test:<br>      command: &quot;go test ./...&quot;<br>      inputs: [&quot;go.mod&quot;,&quot;go.sum&quot;,&quot;**/*.go&quot;]<br>      outputs: [&quot;.cache/test/{{projectName}}&quot;]<br>      options: { cache: true }</pre><pre># services/service-a/project.yml<br>type: app<br>language: go<br>tags: [go]<br>tasks:<br>  build: { extends: go.build }<br>  test:  { extends: go.test }</pre><h3>What improved</h3><p>We kept seeing the same thing on every run:</p><ul><li>We removed <em>setup-node</em> from each CI action. For us that step cost a few seconds to provision Node plus tens of seconds to restore/save the npm cache.</li><li>Cold starts fell immediately on non-JS jobs.</li><li>Warm runs got faster once outputs were explicit and small.</li><li>Overall pipeline time shifted from “environment” to real work.</li><li>Boilerplate shrank — new services start from a tiny skeleton, and changes propagate cleanly.</li></ul><h3>Trade‑offs</h3><p>Nx’s generator ecosystem remains excellent for JS‑heavy workspaces; if we introduce a TypeScript‑heavy frontend, that lane can still use Nx without colliding with Moon on the backend.</p><p>Moonrepo’s inheritance is powerful and demands discipline; we added lint rules to catch missing outputs. For a Go‑first picture, the trade‑offs made sense. We needed runtime‑neutral execution on Go lanes, explicit IO contracts that drive caching, and a DRY configuration model that scales. Moonrepo, together with proto, gave us a smaller runtime footprint, transparent IO, and inheritance that lets policy flow. The rest followed—less ceremony, more real work, and a monorepo that finally breathes the way we build it.</p><h3>Conclusion</h3><p>Microservices let us think in replaceable moving parts. The pipeline should reflect the same philosophy: do <strong>only</strong> what the job needs, nothing more. Nx was great when our center of gravity was Node. As the stack matured, Moonrepo let us step back to basics — clean task graphs, deterministic caching, and toolchains on demand.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b848dbbdc715" width="1" height="1" alt=""><hr><p><a href="https://engineering.gearment.com/from-nx-to-moonrepo-the-small-change-that-made-our-ci-cd-breathe-b848dbbdc715">From Nx to Moonrepo: The small change that made our CI/CD breathe</a> was originally published in <a href="https://engineering.gearment.com/">Gearment Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Think Like an Investor — In Life, Not Just in Money]]></title>
            <link>https://vchitai.medium.com/think-like-an-investor-in-life-not-just-in-money-5e778767fd00?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e778767fd00</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Sun, 13 Jul 2025 01:58:05 GMT</pubDate>
            <atom:updated>2025-07-13T01:58:05.379Z</atom:updated>
            <content:encoded><![CDATA[<h3>Think Like an Investor — In Life, Not Just in Money</h3><p>Most people invest money. Few invest <em>like</em> investors.</p><p>We tend to associate investing with markets — stocks, crypto, real estate. But the most valuable form of investing isn’t financial. It’s mental. It’s how we approach risk, uncertainty, and decision-making.</p><p>This essay was inspired by a key idea from <em>Thinking in Bets</em> by Annie Duke: life is not chess. It’s poker. You make decisions under uncertainty. You can play a hand perfectly and still lose — or play it recklessly and win.</p><p>That insight changed how I approached nearly everything: my time, relationships, habits, and energy. I started seeing life as a portfolio, shaped not by certainty but by bets — bets made with imperfect information and limited time.</p><p>And here’s the truth: the investor mindset — thinking in probabilities, seeking asymmetric returns, understanding compounding — is one of the most robust frameworks for navigating life.</p><h3>Investor Thinking Is Decision Thinking</h3><p>Good investors don’t try to be certain. They try to be <em>approximately right, consistently</em>.</p><p>They ask questions like:</p><ul><li>What’s the upside?</li><li>What’s the downside?</li><li>What’s the probability of each?</li><li>And crucially: what happens if I’m wrong?</li></ul><p>These are questions we rarely apply to everyday choices. Take career decisions. Most people ask, “Does this job pay well?” — but an investor-minded person would ask, “What does this lead to in three to five years? What does this unlock that other options don’t?”</p><p>The same goes for relationships. Compatibility now is a starting point, but a better question is, “Are we likely to grow well together over time?”</p><p>Or consider burnout. Pushing through might seem admirable, but investor thinking reframes it: “What is the long-term cost of running at a deficit?” Often, the biggest risk isn’t quitting — it’s staying stuck.</p><p>This mindset shifts you away from outcome-chasing and toward process quality. It’s not “did this work?” but “was this a good decision given what I knew at the time?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*UKA-Q-6hFUiW4hIA.jpg" /></figure><h3>Build a Life Portfolio</h3><p>In finance, putting everything into one stock is a recipe for disaster. The same principle applies to life.</p><p>A well-constructed life is diversified. Not scattered, but intentionally balanced — across effort, attention, and time. Think of it like managing asset classes.</p><p>Your health, for example, is like a bond. It doesn’t spike with excitement, but it’s the backbone of everything else. When it fails, everything else goes with it.</p><p>Skills are like growth stocks. They don’t pay off immediately, but invested in consistently, they unlock compounding returns later. Think in years, not months.</p><p>Relationships are your emotional dividends. The ones you nurture with attention and honesty — those pay off over time.</p><p>Then you have your experiments. Side projects, stretch goals, that “maybe I should try…” itch. These are options. The worst-case is they fail. The best-case is they change your trajectory.</p><p>And finally, there are the distractions — the endless scroll, the performative meetings, the reactive yeses. These look busy, feel urgent, and usually offer no return.</p><p>You can’t eliminate risk, but you can manage exposure. Good investors rebalance. So should you.</p><h3>Time Is the Scarce Currency</h3><p>Money can be earned back. Time cannot.</p><p>We often behave like time is infinite. We’ll start that project next quarter. We’ll fix the relationship later. We’ll rest “once things settle down.”</p><p>But an investor knows that holding onto dead assets drags the whole portfolio. Time works the same way. A job that no longer grows you, a habit that drains energy, a project you no longer believe in — all of them quietly burn time you can’t reclaim.</p><p>Every “yes” is a time contract, often denominated in years. And most people sign without reading the fine print.</p><p>What makes this tricky is that time doesn’t scream when it’s wasted. It just disappears.</p><h3>Compounding Is the Game</h3><p>If there’s one thing every investor respects — and most people overlook — it’s compound growth.</p><p>In the beginning, compounding is boring. You read a few pages a day. You stretch for ten minutes. You write a paragraph. It feels like nothing. But it isn’t nothing.</p><p>Over time, consistency stops being invisible and starts being inevitable.</p><p>One hour of reading a day turns into 40+ books a year. One conversation of radical honesty per week transforms a fragile relationship into a resilient one. Ten minutes of focused work before everyone else wakes up rewires your self-image from “scattered” to “disciplined.”</p><p>The math of compounding is exponential. The psychology of compounding is patience. That’s why it’s hard. But it’s also why it works.</p><h3>Think in Probabilities, Not Absolutes</h3><p>One of the central insights from <em>Thinking in Bets</em> is this: stop judging decisions by their outcomes.</p><p>You can make a smart decision and get a bad result. Or a dumb one and get lucky. That’s variance — and variance is everywhere.</p><p>We’re wired to want certainty. But investor thinking asks: “What’s the expected value of this move?” You don’t need perfect accuracy — you just need to play the right hand often enough, with the right edge.</p><p>Want to launch something? Maybe the odds of it working are 20%. But if the cost is low and the upside is life-changing, it’s worth it. The logic is simple: make low-cost bets with uncapped upside and let time do its work.</p><p>You don’t need to be right all the time. You just need to be right <em>enough</em>, on things that matter.</p><h3>The Real ROI: Time Freedom</h3><p>Most people chase wealth. Smart investors chase <em>leverage</em>. The highest form of leverage isn’t money — it’s control over how you spend your time.</p><p>Freedom to choose what you work on. When you rest. Who you spend time with. What problems are worth solving.</p><p>Everything compounds toward or away from that freedom. And everything you say yes to today is either an investment in that direction, or a distraction from it.</p><p>This doesn’t mean abandoning responsibility. It means orienting effort toward alignment. Owning your time isn’t about escaping effort — it’s about <em>earning</em> the right kind of effort.</p><h3>Final Thought</h3><p>Investor thinking is not about being cold or calculating. It’s about being awake.</p><p>Awake to the hidden costs of inaction. Awake to the compounding nature of small behaviors. Awake to how randomness shapes outcomes, and how your response to randomness shapes everything else.</p><p>When you think like an investor, you stop reacting to noise and start building for long-term signal.</p><p>You stop asking, “Did I win?” and start asking, “Did I place a good bet?”</p><p>Because in the end, life is the ultimate portfolio. And you are already investing — whether you realize it or not.</p><p>The question is: <em>are you investing well?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e778767fd00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to Using Generics in Go]]></title>
            <link>https://vchitai.medium.com/a-beginners-guide-to-using-generics-in-go-953b970621c6?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/953b970621c6</guid>
            <category><![CDATA[generics]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[dry]]></category>
            <category><![CDATA[solid]]></category>
            <category><![CDATA[go]]></category>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Sun, 18 Aug 2024 10:13:25 GMT</pubDate>
            <atom:updated>2024-08-20T15:53:19.263Z</atom:updated>
            <content:encoded><![CDATA[<p>The simplicity, effectiveness, and robust type system of Go have made it a popular language. However, it creates many obstacles to implementing something that must be repeated from time to time in order to complete something simple without the ability to reuse. Because of generics, a feature that many developers using many other languages like Java or C++ are using every day, they were absent from it for a very long period of time. Since the release of Go 1.18, Go developers have received support for type parameters, also known as generics. Now the tide has turned.</p><p>In this article, we’ll discuss what generics are, their benefits, and how to utilize them in your Go code. Regardless of your level of experience with Go, this will help you understand the fundamentals of generics and how they may improve your projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*TnlMpVMqO9H7lSgThjTyew.png" /></figure><h3>Why will you need Generics?</h3><p>Imagine you’re building a data structure like a linked list or a binary tree. Prior to Go 1.18, you had to write distinct implementations for each data type you want to store — one for integers, another for strings, and so on. This approach leads to code duplication and increased maintenance overhead. Another way to achieve that is to passing interface{} type from time to time. However, repetitive code or the usage of interface{} types can cause unexpected bugs or harm your program performance.</p><p>Generics solve this problem elegantly by allowing you to create a single, type-safe implementation that works with any data type.</p><p>There are various advantages can be obtained:</p><ul><li><strong>Type Safety</strong>: Generics guarantee consistency in the type provided to a function or type using the constraint during the compile time, hence decreasing runtime errors.</li><li><strong>Code Reusability</strong>: This prevents code duplication by allowing you to write functions or types once and utilize them with other types.</li><li><strong>Improved Readability</strong>: By eliminating boilerplate code, generic functions and types can improve the readability and maintainability of your software.</li></ul><h3>Syntax of Generics</h3><p>Let’s start with a simple example. Suppose you want to write a function that accepts two parameters and returns the greater of those two. You were forced to write unique functions for int, float64, and other types before generics existed. There was no other option.</p><pre>func MaxInt(a, b int) int {<br>    if a &gt; b {<br>        return a<br>    }<br>    return b<br>}<br>func MaxFloat64(a, b float64) float64 {<br>    if a &gt; b {<br>        return a<br>    }<br>    return b<br>}</pre><p>Now you can create a single function that works with any type by using generics.</p><pre>func Max[T any](a, b T) T {<br>    if a &gt; b {<br>        return a<br>    }<br>    return b<br>}</pre><p>In this example:</p><ul><li>T is a type parameter. It can be any type.</li><li>any is a predefined constraint that allows any type. We&#39;ll explore constraints in more detail later.</li></ul><p>You can then use the Max function with any comparable type:</p><pre>func main() {<br>    fmt.Println(Max(3, 5))           // Output: 5<br>    fmt.Println(Max(2.5, 7.3))       // Output: 7.3<br>    fmt.Println(Max(&quot;apple&quot;, &quot;pear&quot;)) // Output: pear<br>}</pre><h3>The Type Constraints</h3><p>The technique to restrict the kinds that can be used with a generic function or type is to use constraints. The Max function in the preceding example is compatible with any type that allows comparison using the &gt; operator.</p><p>You can set your own limitations if you’d like to further limit the types. Let’s make an example constraint that only accepts numeric types:</p><pre>type Number interface {<br>    int | int32 | int64 | float32 | float64<br>}<br><br>func Add[T Number](a, b T) T {<br>    return a + b<br>}</pre><p>Here:</p><ul><li>The constraint Number annotate the function to only permits int, int32, int64, float32, and float64.</li><li>Currently, the Add function is limited to numeric types (which supported the + operator). Potential compile-time mistakes are avoided by this constraint, which guarantees that the Add function can only be invoked with numeric types.</li></ul><h3>Generic Data Structures</h3><p>Another advantage is that we can use generics to design data structures that work with any type. For example, let’s create a generic stack:</p><pre>type Stack[T any] struct {<br>    items []T<br>}<br>func (s *Stack[T]) Push(item T) {<br>    s.items = append(s.items, item)<br>}<br>func (s *Stack[T]) Pop() T {<br>    if len(s.items) == 0 {<br>        var zero T<br>        return zero<br>    }<br>    item := s.items[len(s.items)-1]<br>    s.items = s.items[:len(s.items)-1]<br>    return item<br>}</pre><p>In this example:</p><ul><li>Stack[T any] defines a generic stack that can hold items of any type.</li><li>The Push method adds an item to the stack.</li><li>The Pop method removes and returns the last item from the stack.</li></ul><p>You can then create a stack for any type:</p><pre><br>func main() {<br>    intStack := Stack[int]{}<br>    intStack.Push(1)<br>    intStack.Push(2)<br>    fmt.Println(intStack.Pop()) // Output: 2<br>    stringStack := Stack[string]{}<br>    stringStack.Push(&quot;hello&quot;)<br>    stringStack.Push(&quot;world&quot;)<br>    fmt.Println(stringStack.Pop()) // Output: world<br>}</pre><h3>Type Inference</h3><p>As you can see, if we want the Stack to be compatible with a specific type, we should explicitly declare the type along with the usage. Type inference is a mechanism by which the compiler deduces the types of variables or type parameters based on the context in which they are used. When you call a generic function, the compiler can figure out what the type parameter should be based on the arguments you pass to the function. This simplifies the code, making it cleaner and easier to read.</p><p>For example, consider a simple generic function:</p><pre>func Print[T any](value T) {<br>    fmt.Println(value)<br>}</pre><p>Here, T is a type parameter that can be any type. When you call Print, Go can infer the type of T based on the argument you pass:</p><pre>func main() {<br>    Print(42)        // T is inferred as int<br>    Print(&quot;hello&quot;)   // T is inferred as string<br>    Print(3.14)      // T is inferred as float64<br>}</pre><p>In each case, the compiler automatically determines the type of T based on the type of the argument passed to Print.</p><h3>The ~ Keyword</h3><p>The ~ keyword is helpful when you want your generic functions or types to work not just with a base type (like int or float64) but also with any user-defined types that have the same underlying type. This is particularly useful when you want to create constraints that are not just limited to a single type but also apply to types that are built on top of that base type.</p><p>Let’s start with a basic example. Suppose you want to write a generic function that works with any numeric type. You might define a constraint that allows any type with an underlying type of int:</p><pre>type Numeric interface {<br>    ~int | ~float64<br>}<br>func Add[T Numeric](a, b T) T {<br>    return a + b<br>}</pre><p>In this example:</p><ul><li>~int means any type whose underlying type is int, including int itself and any custom type like MyInt that is defined based on int.</li><li>~float64 means any type whose underlying type is float64.</li></ul><p>Now, the Add function can be used with int, float64, or any custom type derived from these:</p><pre>type MyInt int<br>func main() {<br>    fmt.Println(Add(10, 20))           // T is int<br>    fmt.Println(Add(3.5, 2.5))         // T is float64<br>    fmt.Println(Add(MyInt(10), MyInt(5))) // T is MyInt<br>}</pre><p>Without the ~ keyword, the Add function would only work with int and float64, excluding MyInt and other similar types.</p><h3>Conclusion</h3><p>In my perspective, Go Generics is truly a game changer. The principle of Go in my belief always is to prefer code generator to meta-programming. The underlying technique behind the Go generics is still code generation because whenever you call the generic function, the compiler will first try to interpolate your argument and compile a new function with appropriate parameters for you. It helps reduce the time spent generating codes for many different types of Go by many times.</p><p>Another advantage it brings, in my opinion, is the ability to apply the SOLID principles more easily to your Go code while keeping the DRY principle. Despite the fact that generics are powerful, they should be used judiciously. If a function or type is only ever going to be used with one type, there’s no need to make it generic.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=953b970621c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ConnectRPC, a great extension for gRPC]]></title>
            <link>https://engineering.gearment.com/connectrpc-a-great-extension-for-grpc-07089792961f?source=rss-bacca62ea91f------2</link>
            <guid isPermaLink="false">https://medium.com/p/07089792961f</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[protobuf]]></category>
            <category><![CDATA[go]]></category>
            <category><![CDATA[grpc]]></category>
            <dc:creator><![CDATA[Tai Vong]]></dc:creator>
            <pubDate>Sun, 26 Nov 2023 08:53:27 GMT</pubDate>
            <atom:updated>2025-11-19T15:09:16.875Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been spending many years working with gRPC and Protocol Buffers (protobuf) for microservices architecture. Typically, many people, myself included, use gRPC with protobuf in an intuitive way to share the server contract. For me, gRPC services and protobuf definitions represent the next generation of server-client implementation. For a long time, people were entangled with technologies like Swagger, OpenAPI, and JSON schema for HTTP. With HTTP/2, we began adopting new technologies that manipulate binary data streams to deliver the fastest performance.</p><p>This performance tweaking can be immensely beneficial. The decrease in transaction time saves you from the pressure of fault tolerance over a period. Additionally, from enterprises’ perspective, a smooth user experience (UX) can be ensured with this improvement.</p><h3>The way we are developing gRPC applications</h3><p>I have been using the gRPC framework for a while. gRPC has been actively developed and battle-tested through use cases at Google. Despite the fact that the gRPC framework has many advantages, it is challenging to apply it in the real world due to some reasons.</p><p>One of the reasons is that your client technology and frontend developers sometimes cannot adapt to the new technology. For many startup enterprises, choosing a technology that is future-proof can save you a longer path to the future. However, to be compatible with the current developers’ situations, we may need to consider a solution that provides the ability to quickly plug and play for the client first. After that, we can proceed with other plans. We definitely cannot afford the time for testing the new technology because despite the fact that the gRPC client can be generated and used with the frontend immediately, every new technology may require a different set of debugging experiences to handle and develop it.</p><p>In order to resolve those problems, for every team using gRPC, we must implement a sidecar service with gRPC gateway to translate the HTTP/1 request/response to protobuf binary streams and handle them. For internal communication between backend services, we can use gRPC calls seamlessly because we understand how the technology can be leveraged to reduce transaction time. gRPC gateway can also be easily extended with many available plugins, such as payload logging, authentication, metrics, and tracing solutions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sE7L5TWnfgbZHRdnH9lBsg.png" /></figure><p>However, I cannot say that I love the development of the gRPC gateway because I have been working with it since its first versions. The interface keeps changing every time I upgrade the core library. Another reason is that it adds a topping layer to your application, making the transport benefits vanish.</p><p>The development of the gRPC gateway ecosystem is still in a limited state; the plugin openapiv2 was developed a long time ago, and they haven’t upgraded it to support OpenAPI v3. If you are struggling with this, you can give this tool a try.</p><p><a href="https://github.com/google/gnostic-grpc">GitHub - google/gnostic-grpc: A gnostic plugin that converts an OpenAPI API description into a description of a gRPC service that can be used to implement that API using gRPC-JSON Transcoding.</a></p><p>Though there is no official announcement or tutorial for this project, I found it very helpful when you want to revamp your documentation for the next version.</p><h3>ConnectRPC</h3><p>Therefore, if you are an innovative developer or a startup, I think you should give ConnectRPC, the next framework created by the Buf team, a try.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sPHpzkZ2TNAMlMAQ.png" /></figure><p><a href="https://connectrpc.com/">Connect</a></p><blockquote>Connect is a family of libraries for building browser and gRPC-compatible HTTP APIs: you write a short <a href="https://developers.google.com/protocol-buffers">Protocol Buffer</a> schema and implement your application logic, and Connect generates code to handle marshaling, routing, compression, and content type negotiation. It also generates an idiomatic, type-safe client in any supported language.</blockquote><p>The goal of this platform is to help us build a server that can handle all types of low-level protocols like HTTP 1–2–3 while keeping the interface simple enough for developers to quickly develop their applications. I have started a project using this and achieved ease of development.</p><ul><li>It has a lean interface and offers high customization anytime if you want a feature to be compatible with each specific low-level protocol (e.g., set a custom HTTP status code for HTTP/1 compatibility).</li><li>You only need to manage a single server instance. Not an extra processor.</li><li>The new Connect protocol is easy to work with (a little bit like Twirp), making the client compatible and easily upgradeable when you decide to move to use HTTP/2 and HTTP/3 infrastructure.</li><li>The interceptors are up-to-date with the current status of Go development (using generics and Google’s cel-go, which I find pretty lovely).</li></ul><p>You can find some examples of making ConnectRPC work on its homepage. I think you may find it surprising to get a server that supports many use cases, what we need to work with the gRPC framework, in just a few lines of code.</p><pre>curl \<br>    --header &#39;Content-Type: application/json&#39; \<br>    --data &#39;{&quot;sentence&quot;: &quot;I feel happy.&quot;}&#39; \<br>    https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Say</pre><pre><br>grpcurl \<br>    -d &#39;{&quot;sentence&quot;: &quot;I feel happy.&quot;}&#39; \<br>    demo.connectrpc.com:443 \<br>    connectrpc.eliza.v1.ElizaService/Say</pre><p>The protocol may end up with some weird addresses like above. However, I have been a fan of RPC over REST for some time because I realized that it’s pretty hard for me to encapsulate all the use cases that I have down to only some HTTP verbs and object relationships in REST principles.</p><h3>Conclusion</h3><p>Recently, the Buf team announced their new project, ConnectRPC. I had a chance to try it, and it fits my needs really well, and the architecture is fairly lean and extensible. It can be a great alternative if you are looking for something to replace the gRPC gateway or a great implementation for your gRPC application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07089792961f" width="1" height="1" alt=""><hr><p><a href="https://engineering.gearment.com/connectrpc-a-great-extension-for-grpc-07089792961f">ConnectRPC, a great extension for gRPC</a> was originally published in <a href="https://engineering.gearment.com/">Gearment Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>