<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kryeo</title>
    <description>The latest articles on DEV Community by Kryeo (@kryeo).</description>
    <link>https://dev.to/kryeo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4208226%2F93d7a064-1e78-4c5a-8383-7c009cdd2c80.png</url>
      <title>DEV Community: Kryeo</title>
      <link>https://dev.to/kryeo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kryeo"/>
    <language>en</language>
    <item>
      <title>"Just use Shopify" is usually the right answer. Here's when it isn't.</title>
      <dc:creator>Kryeo</dc:creator>
      <pubDate>Sat, 21 Nov 2026 00:21:41 +0000</pubDate>
      <link>https://dev.to/kryeo/just-use-shopify-is-usually-the-right-answer-heres-when-it-isnt-3md0</link>
      <guid>https://dev.to/kryeo/just-use-shopify-is-usually-the-right-answer-heres-when-it-isnt-3md0</guid>
      <description>&lt;p&gt;We build custom commerce backends for a living. You'd expect us to tell everyone to leave Shopify.&lt;/p&gt;

&lt;p&gt;We don't. For most stores, &lt;strong&gt;"just use Shopify" is correct.&lt;/strong&gt; It's fast to launch, it's reliable, the app ecosystem is huge, and you don't need a developer to change a banner.&lt;/p&gt;

&lt;p&gt;But there's a point where the platform stops saving you time and starts costing it. Here's how we tell the difference.&lt;/p&gt;

&lt;h2&gt;
  
  
  5 signs a store has actually outgrown Shopify
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Your core logic is fighting the platform.&lt;/strong&gt;&lt;br&gt;
Custom B2B pricing per customer, quote-based ordering, unusual fulfilment, subscriptions with complicated rules, digital goods with their own delivery logic. If the thing that makes your business different needs three apps and a workaround to exist, that's a signal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Your app stack has become your architecture.&lt;/strong&gt;&lt;br&gt;
When the store depends on a dozen apps that each own a piece of the data, with their own billing, their own scripts on your storefront and their own failure modes, you already have a custom system. It's just one you don't control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Revenue-based fees are starting to hurt.&lt;/strong&gt;&lt;br&gt;
Platform plans plus transaction-based fees scale with your GMV. At some revenue level, the money you pay for the platform's convenience is larger than what it would cost to own the stack. Do the actual maths with your own numbers before deciding.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. You need more than one frontend.&lt;/strong&gt;&lt;br&gt;
A web store, a mobile app, a B2B portal and in-store screens, all from one catalogue. Headless Shopify can do this, but if you're going headless anyway, the backend choice becomes open again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. You need to own your data and your code.&lt;/strong&gt;&lt;br&gt;
Some businesses need full control over where data lives, how it's modelled and who can access it, for compliance, integrations or simply because the store &lt;em&gt;is&lt;/em&gt; the company.&lt;/p&gt;

&lt;p&gt;Two or more of these, and it's worth a serious look. Zero or one, and stay.&lt;/p&gt;

&lt;h2&gt;
  
  
  3 bad reasons to leave
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"Our site is slow."&lt;/strong&gt; That's almost always the theme, the images and the app scripts. Fix those first. A custom build can be slow too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"We want a unique design."&lt;/strong&gt; A custom theme or a headless frontend on Shopify gets you that without replacing the backend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"A developer told us custom is better."&lt;/strong&gt; Ask them who maintains it after launch, and what it costs per year. (Yes, we're aware of the irony.)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What leaving actually costs
&lt;/h2&gt;

&lt;p&gt;Self-hosting means everything Shopify did invisibly becomes your code: payment retries, multi-currency, inventory logic, admin tooling, uptime. That's not a reason not to do it. It's a reason to budget for it honestly.&lt;/p&gt;

&lt;h2&gt;
  
  
  The middle path people forget
&lt;/h2&gt;

&lt;p&gt;You don't have to choose all or nothing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Shopify + headless frontend:&lt;/strong&gt; keep the backend, own the storefront.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shopify + a custom service&lt;/strong&gt; for the one thing it can't do, like a pricing engine or a fulfilment service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full replatform&lt;/strong&gt; only when the core business logic itself has outgrown it.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;If you've moved off Shopify, or seriously considered it and stayed, what tipped the decision? I'm genuinely curious where other devs draw the line.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We put the numbers side by side in &lt;a href="https://kryeo.com/blog/headless-commerce-cost-breakdown" rel="noopener noreferrer"&gt;what a headless commerce build actually costs&lt;/a&gt;, and wrote a checklist for &lt;a href="https://kryeo.com/blog/when-to-replatform-ecommerce" rel="noopener noreferrer"&gt;when to replatform&lt;/a&gt;. For a real example of a store that did leave, here's &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;how we moved one off Shopify without touching its frontend&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We're &lt;a href="https://kryeo.com" rel="noopener noreferrer"&gt;Kryeo&lt;/a&gt;, two founders building headless commerce on Medusa, Directus and Next.js.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ecommerce</category>
      <category>webdev</category>
      <category>discuss</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Stop building admin panels from scratch. You're rebuilding the same 6 features every time.</title>
      <dc:creator>Kryeo</dc:creator>
      <pubDate>Tue, 17 Nov 2026 12:36:55 +0000</pubDate>
      <link>https://dev.to/kryeo/stop-building-admin-panels-from-scratch-youre-rebuilding-the-same-6-features-every-time-3abc</link>
      <guid>https://dev.to/kryeo/stop-building-admin-panels-from-scratch-youre-rebuilding-the-same-6-features-every-time-3abc</guid>
      <description>&lt;p&gt;Every project has the same moment.&lt;/p&gt;

&lt;p&gt;The app is working. The client is happy. Then someone asks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"How do we edit this stuff without asking a developer?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And a two-week detour called &lt;strong&gt;"just a quick admin panel"&lt;/strong&gt; begins.&lt;/p&gt;

&lt;p&gt;Look closely and every custom admin panel ends up with the same features. Here's the list, and what we do instead most of the time.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 6 features every admin panel grows
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A table view&lt;/strong&gt; with sorting, filtering, search and pagination. Then someone needs to filter by a related field.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create and edit forms&lt;/strong&gt;, with validation that matches the API's validation. (It never quite does.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Roles and permissions.&lt;/strong&gt; "Editors can change products but not prices." "Interns can see orders but not emails."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File and image uploads&lt;/strong&gt;, with resizing, because someone will upload a 14MB PNG.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An audit trail.&lt;/strong&gt; Who changed this price, and when? Usually asked right after something went wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A dashboard&lt;/strong&gt; with "just a few numbers".&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of these is hard on its own. Together they're a product, and you just signed up to maintain it forever. Every new database column means touching the table, the form, the validation and the permissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The alternative: put an admin on top of the database you already have
&lt;/h2&gt;

&lt;p&gt;Tools like &lt;strong&gt;Directus&lt;/strong&gt; connect to an existing SQL database (Postgres, MySQL, SQLite and others) and generate an admin app and a REST/GraphQL API from the schema. You get:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;data tables, forms and relations from your actual schema&lt;/li&gt;
&lt;li&gt;granular roles and field-level permissions&lt;/li&gt;
&lt;li&gt;file storage with image transformations&lt;/li&gt;
&lt;li&gt;an activity log and revisions&lt;/li&gt;
&lt;li&gt;dashboards ("Insights") and automation ("Flows")&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The part we like most: &lt;strong&gt;it doesn't own your data model.&lt;/strong&gt; It reads the schema you designed. If you remove it later, your database is still just your database.&lt;/p&gt;

&lt;h2&gt;
  
  
  When we still build a custom admin
&lt;/h2&gt;

&lt;p&gt;Directus isn't always the answer. We build custom when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The admin &lt;em&gt;is&lt;/em&gt; the product.&lt;/strong&gt; If operators spend all day in it, a purpose-built workflow beats a generic table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The workflow is the hard part, not the data.&lt;/strong&gt; Multi-step approvals, wizard-like flows and heavy domain logic fit awkwardly into generic CRUD.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your users aren't "admins".&lt;/strong&gt; Customer-facing portals need their own UX and branding.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Your data isn't in SQL.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A quick decision rule
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;If the request sounds like "let people edit the rows in these tables, safely", don't build it. If it sounds like "let people &lt;em&gt;do a job&lt;/em&gt;", maybe build it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Most "quick admin panel" requests are the first kind.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we tell clients
&lt;/h2&gt;

&lt;p&gt;The real cost of a custom admin isn't the first two weeks. It's every schema change for the next three years. Spend that budget on the parts of the product your customers actually see.&lt;/p&gt;




&lt;p&gt;What's the worst "quick admin panel" you've inherited? Bonus points if it had its own homegrown permission system.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The longer comparison, with a feature-by-feature table and the cases where custom wins, is on the Kryeo blog: &lt;a href="https://kryeo.com/blog/directus-vs-custom-admin-panel" rel="noopener noreferrer"&gt;Directus vs a custom admin panel&lt;/a&gt;. If you're going the Directus route, &lt;a href="https://kryeo.com/blog/directus-roles-permissions-security" rel="noopener noreferrer"&gt;our notes on roles and permissions&lt;/a&gt; cover the security side.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We're &lt;a href="https://kryeo.com" rel="noopener noreferrer"&gt;Kryeo&lt;/a&gt;, two founders building headless CMS and commerce platforms on Directus, Medusa and Next.js.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Stripe approved the payment. That's not the question a license-key store needs answered.</title>
      <dc:creator>Kryeo</dc:creator>
      <pubDate>Wed, 11 Nov 2026 20:00:47 +0000</pubDate>
      <link>https://dev.to/kryeo/stripe-approved-the-payment-thats-not-the-question-a-license-key-store-needs-answered-1j2o</link>
      <guid>https://dev.to/kryeo/stripe-approved-the-payment-thats-not-the-question-a-license-key-store-needs-answered-1j2o</guid>
      <description>&lt;p&gt;Here's a fraud scenario physical ecommerce rarely has to think about.&lt;/p&gt;

&lt;p&gt;Someone buys a game key with a stolen card. The key is revealed instantly. Within minutes it's redeemed, or resold on a grey-market site.&lt;/p&gt;

&lt;p&gt;Weeks later the chargeback arrives. You refund the money. &lt;strong&gt;You don't get the key back.&lt;/strong&gt; No package to intercept, no return to process, no address to flag. The product left the moment the page loaded.&lt;/p&gt;

&lt;p&gt;That's daily life for &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;Increddy&lt;/a&gt;, a license-key storefront, and it's why "Stripe handles fraud" wasn't enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why digital goods are a fraudster's favourite
&lt;/h2&gt;

&lt;p&gt;Payment processors rank digital goods among the highest-risk categories, and the reasons stack up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Instant delivery.&lt;/strong&gt; No shipping delay to catch a problem in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No address to verify.&lt;/strong&gt; Nothing has to match anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instantly resellable.&lt;/strong&gt; The value is liquid the second it's issued.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nothing to recover.&lt;/strong&gt; Once the key is revealed, it's gone.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Every risk decision that matters has to happen &lt;strong&gt;before&lt;/strong&gt; checkout completes. Afterwards, you're just counting losses.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What Stripe actually answers
&lt;/h2&gt;

&lt;p&gt;To be clear: Stripe's fraud tooling is good, and it stays in Increddy's stack. It scores the payment (card, device, transaction pattern) against signals from across Stripe's network.&lt;/p&gt;

&lt;p&gt;But it answers &lt;em&gt;"is this payment risky?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It doesn't answer &lt;em&gt;"is this payment risky **given that the product is an instantly resellable key we can never claw back?&lt;/em&gt;&lt;em&gt;"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Those are different questions, and a key store needs both answered.&lt;/p&gt;

&lt;h2&gt;
  
  
  A veto, not a footnote
&lt;/h2&gt;

&lt;p&gt;The design choice that matters isn't any single fraud rule. It's &lt;strong&gt;where the risk check sits.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A check that runs after Stripe approves is only reacting to a decision that's already been made. So Increddy's risk scoring is a first-class &lt;strong&gt;Medusa module inside the checkout flow&lt;/strong&gt; with the authority to &lt;strong&gt;block checkout completion on its own&lt;/strong&gt;, whatever Stripe returned.&lt;/p&gt;

&lt;p&gt;It gets a vote before the order exists, not a note attached to a transaction that already happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we're not telling you
&lt;/h2&gt;

&lt;p&gt;You might have noticed there's no list of signals or thresholds in this post. That's deliberate.&lt;/p&gt;

&lt;p&gt;It's the same reason banks don't publish their fraud rules: a risk system works partly because the people it targets can't read the rulebook. The architecture is worth sharing. The heuristics aren't, because publishing them would make them worse at their job.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule
&lt;/h2&gt;

&lt;p&gt;Treat fraud risk as a property of &lt;strong&gt;the product category&lt;/strong&gt;, not only the payment. If what you sell is valuable the instant it's delivered and impossible to take back, give your own risk logic a real seat at checkout, with real veto power.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The fraud layer was one of several custom modules&lt;/strong&gt; in Increddy's move off Shopify. &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;See the full case study on kryeo.com →&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The longer version of this post is &lt;a href="https://kryeo.com/blog/increddy-fraud-risk-scoring-digital-goods" rel="noopener noreferrer"&gt;on the Kryeo blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We're &lt;a href="https://kryeo.com" rel="noopener noreferrer"&gt;Kryeo&lt;/a&gt;. We build checkout and risk logic for headless stores through our &lt;a href="https://kryeo.com/services/medusa-development" rel="noopener noreferrer"&gt;Medusa development&lt;/a&gt; work.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>ecommerce</category>
      <category>stripe</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Our own status notes were wrong. The one rule that caught it before launch.</title>
      <dc:creator>Kryeo</dc:creator>
      <pubDate>Tue, 10 Nov 2026 14:03:24 +0000</pubDate>
      <link>https://dev.to/kryeo/our-own-status-notes-were-wrong-the-one-rule-that-caught-it-before-launch-4jd9</link>
      <guid>https://dev.to/kryeo/our-own-status-notes-were-wrong-the-one-rule-that-caught-it-before-launch-4jd9</guid>
      <description>&lt;p&gt;Here's an uncomfortable finding from a project we just shipped.&lt;/p&gt;

&lt;p&gt;Several claims in our backend team's own progress notes were &lt;strong&gt;wrong or incomplete.&lt;/strong&gt; Not because anyone was careless, and nobody was lying. A written status update is a &lt;em&gt;claim&lt;/em&gt;, and claims drift from reality the moment nobody re-checks them.&lt;/p&gt;

&lt;p&gt;We caught it during development, not in a staging walkthrough days before launch. Here's the setup, and the one rule that did the catching.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;We were replacing &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;Increddy&lt;/a&gt;'s commerce backend under a live storefront:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Next.js, deployed on Vercel, with its own owner&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Medusa v2, deployed on AWS EC2, owned by someone else&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Separate repositories, built in parallel&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The obvious reaction is "put it all in a monorepo."&lt;/p&gt;

&lt;p&gt;We didn't, because a shared folder doesn't solve this. It won't make the frontend dev guess what shape the API will return, or the backend dev guess what the frontend actually calls. &lt;strong&gt;The problem was the contract, not where the code lived.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The two documents
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A gap tracker.&lt;/strong&gt; Every frontend data need, mapped to the backend capability that serves it, marked &lt;em&gt;built&lt;/em&gt;, &lt;em&gt;planned&lt;/em&gt; or &lt;em&gt;missing&lt;/em&gt;. "Does the backend support X yet?" stopped being a Slack question and became something anyone could look up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Matched task lists with dependency IDs.&lt;/strong&gt; One list for the backend, one for the frontend, with each frontend task pointing at the exact backend task it was waiting on.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A task list tells you what's being worked on. &lt;strong&gt;Dependency IDs&lt;/strong&gt; tell you what's safe to start and what's still blocked. That's the question a team on a separate repo actually needs answered, without a meeting.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The rule that mattered more than the documents
&lt;/h2&gt;

&lt;p&gt;Documents drift too. A gap tracker can say "done" because someone updated it hopefully.&lt;/p&gt;

&lt;p&gt;So both teams had one standing instruction:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Verify every claim against running code and a live backend. Not against the other side's notes. Not against your own.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Your own&lt;/em&gt; is the important part. Checking other people's work is natural. Checking your own status notes against reality feels unnecessary, and that's exactly where the wrong claims were hiding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steal this
&lt;/h2&gt;

&lt;p&gt;If two teams can't share a codebase, don't force it. Give them:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;a &lt;strong&gt;living contract&lt;/strong&gt; (gap tracker plus dependency-linked tasks), cheap to maintain and checkable without a meeting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;one rule&lt;/strong&gt;: verify against running code, on both sides, including your own&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;strong&gt;What were these two teams building?&lt;/strong&gt; A full backend swap, Shopify to self-hosted Medusa, under a storefront that never went down. &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;Read the Increddy case study on kryeo.com →&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The longer write-up is &lt;a href="https://kryeo.com/blog/increddy-two-teams-separate-repos-contract-docs" rel="noopener noreferrer"&gt;on the Kryeo blog&lt;/a&gt;, and this is how we run every engagement: &lt;a href="https://kryeo.com/process" rel="noopener noreferrer"&gt;see our process&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We're &lt;a href="https://kryeo.com" rel="noopener noreferrer"&gt;Kryeo&lt;/a&gt;, a software agency building headless commerce on Medusa, Directus and Next.js.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>teamwork</category>
      <category>architecture</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Shopify was quietly doing 3 jobs for us. We only noticed when we left.</title>
      <dc:creator>Kryeo</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:47:12 +0000</pubDate>
      <link>https://dev.to/kryeo/shopify-was-quietly-doing-3-jobs-for-us-we-only-noticed-when-we-left-c75</link>
      <guid>https://dev.to/kryeo/shopify-was-quietly-doing-3-jobs-for-us-we-only-noticed-when-we-left-c75</guid>
      <description>&lt;p&gt;Every "leave Shopify" pitch talks about what you gain: no revenue share, no extension ceiling, full control.&lt;/p&gt;

&lt;p&gt;Fewer talk about what you lose, because what you lose is invisible. Shopify's best feature is all the work you never see it doing.&lt;/p&gt;

&lt;p&gt;When we moved &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;Increddy&lt;/a&gt;, a license-key storefront, onto a self-hosted Medusa v2 backend, three of those invisible jobs became ours overnight. If you're about to make the same move, here's the bill.&lt;/p&gt;

&lt;h2&gt;
  
  
  Job #1: Currency, all of it
&lt;/h2&gt;

&lt;p&gt;On Shopify, a merchant can sell in a dozen currencies without making a single decision about rounding, conversion or display.&lt;/p&gt;

&lt;p&gt;Self-hosted, &lt;em&gt;everything&lt;/em&gt; is a decision. Which currencies? What price does a product get in a currency nobody set a price for? What happens to the cart when a shopper switches currency halfway through?&lt;/p&gt;

&lt;p&gt;Then there's the one that nearly got us:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Medusa's core cart-update API resets the cart's currency to the store default on &lt;strong&gt;any&lt;/strong&gt; cart mutation.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Read that again. Add a coupon, update a line item, and your "cart follows your currency" feature quietly breaks. Nothing errors. The cart just changes currency on its own.&lt;/p&gt;

&lt;p&gt;The fix was narrow: avoid that endpoint for most updates and set currency-sensitive data when the cart is created. Finding it took reading what the framework actually does, not what the endpoint name suggests it does.&lt;/p&gt;

&lt;h2&gt;
  
  
  Job #2: Payments that misbehave
&lt;/h2&gt;

&lt;p&gt;Shopify treats authorization, capture, retries and webhook delivery as solved. You never think about it.&lt;/p&gt;

&lt;p&gt;Self-hosted, "the payment webhook retried" becomes your problem. So does the webhook that arrives twice, and the one that turns up after your system has already moved on.&lt;/p&gt;

&lt;p&gt;For a store where every successful payment has to produce exactly one license key, that's not a side quest. It's the main event. Increddy ended up with two independent triggers and a reconciliation sweep. (That design gets &lt;a href="https://kryeo.com/blog/increddy-license-key-reservation-idempotency" rel="noopener noreferrer"&gt;its own post&lt;/a&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Job #3: Inventory that isn't a number
&lt;/h2&gt;

&lt;p&gt;Shopify's inventory model is roughly "a count goes down when someone buys."&lt;/p&gt;

&lt;p&gt;A license-key business needs something else entirely: a pool of unique keys, each assigned exactly once, plus a defined plan for when the pool runs dry mid-checkout.&lt;/p&gt;

&lt;p&gt;Plot twist: Shopify doesn't give you that either. It needed custom logic on &lt;em&gt;any&lt;/em&gt; platform, which was part of why moving the backend made sense in the first place.&lt;/p&gt;

&lt;h2&gt;
  
  
  So... should you leave?
&lt;/h2&gt;

&lt;p&gt;Here's the honest trade:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Shopify's invisibility&lt;/strong&gt; costs a revenue share forever and a ceiling on custom logic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-hosting's visibility&lt;/strong&gt; costs the engineering hours to build and maintain all three jobs above.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For Increddy, the key-reservation logic &lt;em&gt;is&lt;/em&gt; the product, so owning it was worth it. For a simple catalogue with nothing unusual going on at checkout, it probably isn't.&lt;/p&gt;

&lt;p&gt;Know which one you are before you sign up.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;See what we actually built&lt;/strong&gt; for Increddy (the key engine, the fraud layer, the currency model) in the &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;full case study on kryeo.com →&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The longer write-up of this post, including a side-by-side of what Shopify provides vs. what we had to build, is &lt;a href="https://kryeo.com/blog/increddy-what-shopify-hides-until-you-self-host" rel="noopener noreferrer"&gt;on the Kryeo blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We're &lt;a href="https://kryeo.com" rel="noopener noreferrer"&gt;Kryeo&lt;/a&gt;. We help teams make exactly this call, and then build it, through our &lt;a href="https://kryeo.com/services/medusa-development" rel="noopener noreferrer"&gt;Medusa development&lt;/a&gt; work.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>medusa</category>
      <category>ecommerce</category>
      <category>webdev</category>
    </item>
    <item>
      <title>We sized a backend for 1M+ visitors it hadn't seen yet. Premature optimization?</title>
      <dc:creator>Kryeo</dc:creator>
      <pubDate>Sat, 07 Nov 2026 22:29:18 +0000</pubDate>
      <link>https://dev.to/kryeo/we-sized-a-backend-for-1m-visitors-it-hadnt-seen-yet-premature-optimization-3c9c</link>
      <guid>https://dev.to/kryeo/we-sized-a-backend-for-1m-visitors-it-hadnt-seen-yet-premature-optimization-3c9c</guid>
      <description>&lt;p&gt;"You aren't gonna need it."&lt;/p&gt;

&lt;p&gt;It's one of the best rules in software, and we broke it on purpose.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;Increddy&lt;/a&gt;'s backend is built to handle &lt;strong&gt;well over a million monthly visitors&lt;/strong&gt;, and we built it that way before the traffic existed to justify it. Here's why that wasn't gold-plating, and where we drew the line.&lt;/p&gt;

&lt;h2&gt;
  
  
  When YAGNI stops applying
&lt;/h2&gt;

&lt;p&gt;Over-engineering for traffic that never shows up wastes money and adds complexity nobody uses. That's real.&lt;/p&gt;

&lt;p&gt;Increddy is different for one reason: &lt;strong&gt;it buys traffic deliberately, and at volume.&lt;/strong&gt; For a store running paid acquisition, "what happens at 10x traffic?" isn't a thought experiment. It's next month's campaign.&lt;/p&gt;

&lt;p&gt;And outages don't usually come from anything exotic. They come from ordinary limits you hit for the first time, during the one week traffic finally shows up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a database connection cap nobody knew about&lt;/li&gt;
&lt;li&gt;a single instance that doesn't autoscale&lt;/li&gt;
&lt;li&gt;a cache that was never built&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Find any of those during a launch and the good news becomes an incident. Find them on a whiteboard and they cost nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack, layer by layer
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Edge: Cloudflare Workers.&lt;/strong&gt; These run close to the visitor, before the origin, and they run logic, not just cached files. A Worker can handle or short-circuit a request before it ever reaches EC2 or Postgres. That matters for paid campaign traffic, which comes in bursts, from everywhere, all aimed at the same few product pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Compute: EC2 behind an Application Load Balancer.&lt;/strong&gt; We went horizontal, not one bigger box. That's partly about capacity, and partly because one big instance is a single point of failure. With an ALB in front of several instances, the store survives an instance dying or a rolling deploy, not just a traffic spike. Autoscaling means the bill follows real usage instead of paying for worst-case capacity all month.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Async: Redis as the event bus.&lt;/strong&gt; Redis shows up twice. One role is the usual cache. The more important one is that it runs Medusa's event bus and workflow engine. Order placement and payment capture are processed asynchronously, so checkout stays fast under load instead of waiting on every downstream side effect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data: Postgres on RDS.&lt;/strong&gt; Managed, boring, and that's the point.&lt;/p&gt;

&lt;h2&gt;
  
  
  The mistake that costs the most to undo
&lt;/h2&gt;

&lt;p&gt;If you only take one thing from this post:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Retrofitting "this should have been a background job" into a synchronous request path, under load, is far more expensive than designing it async on day one.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Horizontal vs. vertical, sync vs. async, edge vs. origin: these are architecture decisions you make once, on purpose. They aren't knobs to tune after the post-mortem.&lt;/p&gt;

&lt;h2&gt;
  
  
  So where's the line?
&lt;/h2&gt;

&lt;p&gt;Size for the traffic &lt;strong&gt;the business plan actually implies&lt;/strong&gt;, not for an arbitrary safety margin. If nobody is planning to send you traffic, YAGNI wins. If someone is about to spend money sending you traffic, build ahead.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;This infrastructure sits under a full Shopify-to-Medusa rebuild&lt;/strong&gt;, including a key-delivery system that can't sell twice. &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;See the Increddy case study on kryeo.com →&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The detailed architecture write-up is &lt;a href="https://kryeo.com/blog/increddy-infrastructure-aws-alb-cloudflare-workers" rel="noopener noreferrer"&gt;on the Kryeo blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We're &lt;a href="https://kryeo.com" rel="noopener noreferrer"&gt;Kryeo&lt;/a&gt;. We design and size backends like this through our &lt;a href="https://kryeo.com/services/headless-commerce" rel="noopener noreferrer"&gt;headless commerce&lt;/a&gt; work.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloudflare</category>
      <category>architecture</category>
      <category>devops</category>
    </item>
    <item>
      <title>Sell the same key twice, or take money and deliver nothing: the bug every key store must make impossible</title>
      <dc:creator>Kryeo</dc:creator>
      <pubDate>Fri, 06 Nov 2026 07:11:23 +0000</pubDate>
      <link>https://dev.to/kryeo/sell-the-same-key-twice-or-take-money-and-deliver-nothing-the-bug-every-key-store-must-make-5fa9</link>
      <guid>https://dev.to/kryeo/sell-the-same-key-twice-or-take-money-and-deliver-nothing-the-bug-every-key-store-must-make-5fa9</guid>
      <description>&lt;p&gt;A digital-goods store can fail in exactly two ways that really matter:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;It sells the same license key to two people.&lt;/strong&gt; One of them gets an "already redeemed" error, a refund request and a chargeback.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It takes someone's money and assigns no key at all.&lt;/strong&gt; That's worse.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;Increddy&lt;/a&gt;, a storefront for game and software keys, preventing both is the whole job. Here's the problem as a puzzle. Try solving it before you scroll.&lt;/p&gt;

&lt;h2&gt;
  
  
  The puzzle
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A customer pays. Your backend receives &lt;code&gt;order.placed&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Your payment provider sends &lt;code&gt;payment.captured&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Either event can arrive more than once&lt;/strong&gt;, because providers retry by design.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;They don't always arrive in the order you expect.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Each order must end up with exactly one key. Not zero. Not two.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What's your design?&lt;/p&gt;

&lt;h2&gt;
  
  
  The answer most people reach first
&lt;/h2&gt;

&lt;p&gt;"Reserve a key when &lt;code&gt;order.placed&lt;/code&gt; fires."&lt;/p&gt;

&lt;p&gt;It works in every test you'll write. Then one busy weekend a webhook retries, the handler runs twice, and a customer gets two keys. Or the event never shows up, and they get nothing.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Retries aren't an edge case. They're the normal case. A system that only works when every webhook arrives exactly once works in staging and breaks in production.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The second answer (still wrong)
&lt;/h2&gt;

&lt;p&gt;"Fine, check whether the order already has a key before reserving one."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hasKey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;assignKey&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;// two handlers can both get here&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the bug that gets past code review. Two handlers can both run the check, both see "no key", and both write. Check-then-write has a race right in the gap between the check and the write.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we actually built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;One: make the write itself idempotent.&lt;/strong&gt; Idempotency lives at the data layer, not in an &lt;code&gt;if&lt;/code&gt; statement. A second attempt to reserve a key for an order that already has one is a no-op, however many handlers race to do it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two: two independent triggers.&lt;/strong&gt; &lt;code&gt;order.placed&lt;/code&gt; is the primary path. &lt;code&gt;payment.captured&lt;/code&gt; is a fully independent safety net. Since the write is idempotent, both can fire, both can retry, and the result is still exactly one key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three: a sweep for whatever slips through.&lt;/strong&gt; Some cases fall through both triggers, like a captured payment where no order event ever fires. So a job runs &lt;strong&gt;every 15 minutes&lt;/strong&gt;, finds payments captured more than 5 minutes ago with no key assigned, and fixes them.&lt;/p&gt;

&lt;p&gt;That job isn't a patch. Every event-driven system has a tail of cases that need a sweep, not a trigger. It's cheaper to build that in on day one than to find out you need it from a support ticket.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision that surprises everyone
&lt;/h2&gt;

&lt;p&gt;There's one more piece, and it runs against every inventory instinct you have: &lt;strong&gt;Increddy lets customers buy products that are sold out.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's on purpose, and why it's the right call for a key store is in &lt;a href="https://kryeo.com/blog/increddy-license-key-reservation-idempotency" rel="noopener noreferrer"&gt;the full write-up on our blog&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule to steal
&lt;/h2&gt;

&lt;p&gt;Make the &lt;strong&gt;state transition&lt;/strong&gt; idempotent ("this order has a key"), not the event that triggers it. Treat reconciliation as part of the design, not a fix after the first incident.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Want the whole picture?&lt;/strong&gt; The key engine was one module in a full backend rebuild under a live storefront. &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;Read the Increddy case study on kryeo.com →&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We're &lt;a href="https://kryeo.com" rel="noopener noreferrer"&gt;Kryeo&lt;/a&gt;. We build order-fulfillment logic like this as part of our &lt;a href="https://kryeo.com/services/medusa-development" rel="noopener noreferrer"&gt;Medusa development&lt;/a&gt; work.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>backend</category>
      <category>architecture</category>
      <category>medusa</category>
      <category>distributedsystems</category>
    </item>
    <item>
      <title>We swapped the entire backend of a live store. The frontend never found out.</title>
      <dc:creator>Kryeo</dc:creator>
      <pubDate>Wed, 04 Nov 2026 20:25:27 +0000</pubDate>
      <link>https://dev.to/kryeo/we-swapped-the-entire-backend-of-a-live-store-the-frontend-never-found-out-1poe</link>
      <guid>https://dev.to/kryeo/we-swapped-the-entire-backend-of-a-live-store-the-frontend-never-found-out-1poe</guid>
      <description>&lt;p&gt;Picture replacing a car's engine while someone is still driving it down the highway. No pit stop, no "back in two weeks" banner, and the driver shouldn't feel a thing.&lt;/p&gt;

&lt;p&gt;That was the brief for &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;Increddy&lt;/a&gt;, a storefront selling game and software license keys. It ran on Shopify. The commerce logic the business actually needed didn't fit Shopify well, so the backend had to go: cart, checkout, payments, inventory, all of it.&lt;/p&gt;

&lt;p&gt;The frontend had to stay. Same Next.js app, same Zustand stores, same React Query hooks, same customers who'd never know anything changed.&lt;/p&gt;

&lt;p&gt;Here are the three calls that made that work, and the one that sounds reckless but turned out to be the safest.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. We didn't write a spec. We read the frontend.
&lt;/h2&gt;

&lt;p&gt;The textbook move is a specification document: list the endpoints, define the payloads, hand it to the backend team.&lt;/p&gt;

&lt;p&gt;We skipped it.&lt;/p&gt;

&lt;p&gt;A spec written before the build is a guess about what the frontend needs. The frontend itself is the truth. So before writing any backend code, we went through the live frontend feature by feature and wrote down exactly what it called and exactly which fields it read off every response.&lt;/p&gt;

&lt;p&gt;That became the contract. Not what a commerce platform &lt;em&gt;usually&lt;/em&gt; returns, but what &lt;em&gt;this&lt;/em&gt; frontend actually reads.&lt;/p&gt;

&lt;p&gt;Specs drift from reality the moment someone finds a requirement mid-build. Code that's already running doesn't drift.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Two repos, two owners, one contract
&lt;/h2&gt;

&lt;p&gt;The frontend and backend lived in separate repositories, owned by different people, built in parallel.&lt;/p&gt;

&lt;p&gt;What kept them from drifting apart was a pair of boring documents: a gap tracker mapping every frontend data need to a backend capability, and matched task lists with dependency IDs so each side knew exactly what it was blocked on.&lt;/p&gt;

&lt;p&gt;The documents weren't the real secret, though. (That story is its own post in this series.)&lt;/p&gt;

&lt;h2&gt;
  
  
  3. We migrated zero orders. On purpose.
&lt;/h2&gt;

&lt;p&gt;This is the one people push back on.&lt;/p&gt;

&lt;p&gt;No Shopify orders. No customers. No catalogue rows. The new &lt;a href="https://medusajs.com" rel="noopener noreferrer"&gt;Medusa v2&lt;/a&gt; backend was built and populated from scratch.&lt;/p&gt;

&lt;p&gt;It sounds like throwing away history. But think about where replatforms usually hurt: a migration script that quietly maps some edge-case record wrong, and you find out from a support ticket three weeks after launch.&lt;/p&gt;

&lt;p&gt;Increddy's backend was being rebuilt, not translated. Starting clean removed the riskiest step entirely instead of trying to make it safe.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part nobody puts in the pitch deck
&lt;/h2&gt;

&lt;p&gt;Leaving Shopify means everything it did invisibly becomes code you write: multi-currency, payment orchestration, inventory logic. For a license-key store it also means building the one thing no platform gives you, a system that can never sell the same key twice.&lt;/p&gt;

&lt;p&gt;That is where the real engineering went, and it's where this series goes next.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full case study&lt;/strong&gt;, with the architecture, the results, and every module we built, is on our site: &lt;a href="https://kryeo.com/work/increddy" rel="noopener noreferrer"&gt;How we migrated Increddy to a self-hosted Medusa backend →&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the step-by-step migration write-up, including how the gap tracker was structured, read &lt;a href="https://kryeo.com/blog/increddy-shopify-to-medusa-migration" rel="noopener noreferrer"&gt;the long version on the Kryeo blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We're &lt;a href="https://kryeo.com" rel="noopener noreferrer"&gt;Kryeo&lt;/a&gt;. We build headless commerce on Medusa, Directus and Next.js. If you're weighing a move off Shopify, &lt;a href="https://kryeo.com/services/medusa-development" rel="noopener noreferrer"&gt;our Medusa development page&lt;/a&gt; is a good place to start.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>medusa</category>
      <category>ecommerce</category>
      <category>nextjs</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
