Shopify Functions vs internationalization (Markets): the differences that actually decide it
The comparison only looks close on a slide. Shopify Functions works on one part of the operation and Shopify Markets on another, and the overlap in most stores is close to zero. What follows is the head-to-head on mechanism, cost and failure mode, because that is where the decision actually lives.
How Shopify Functions actually works
A Shopify Function is a small program compiled to WebAssembly that Shopify runs inside its own infrastructure at a fixed point in the cart or checkout flow. You write a GraphQL input query that selects the cart, customer and shop data the logic needs, and the function returns operations: apply this discount, hide that delivery option, block this checkout, merge these lines into a bundle. There is no server to host and no URL to call; the function ships inside an app and Shopify executes it.
Cart Transform, the API behind bundle apps, can expand one line into its components or merge lines into a bundle, and bundles cannot be sold with selling plans.
And how Shopify Markets works
The structural choices are the ones that are expensive to reverse. Subfolder, subdomain or country domain decides your URL architecture and hreflang setup for years, and product availability per market is where regulatory and licensing limits get encoded. Markets also splits the money question: automatic conversion at current exchange rates versus manual rates and per-market price adjustments, which is where margin quietly leaks when nobody owns the rounding rules.
Every plan includes unlimited markets; the Plus tier adds business entities and expansion stores rather than more markets, so market count is never the reason to upgrade.
Related reading on this site: a related guide: does checkout extensibility migration help with reverse logi and a related guide: how to choose b2b on shopify: the checks that matter before and more on showing the same recommendation five times is not persistenc.
The numbers and rules worth trusting
The documented ceilings are 11 million instructions, 128 kB of input, 20 kB of output and a 256 KiB binary for carts up to 200 line items.
Markets supports selling in over 130 currencies through Shopify Payments, with prices converted automatically or set manually per market.
Put side by side, the pattern is consistent. Shopify Functions lives or dies on its inputs; Shopify Markets lives or dies on the rules it has to obey. Neither forgives a sloppy setup, and neither rewards one either.
Where each one breaks
It fails at the edges of the cart. Logic that demos beautifully on three line items hits the instruction ceiling, the output limit, or a metafield size cap exactly when a wholesale order arrives.
It fails at the seams: a market enabled before its pricing, duties and availability are set sells the wrong catalog at the wrong price in the wrong currency, and the orders are real even though the setup was a draft.
Cost, stated plainly
The cost is developer time and the discipline of the limits. There is no per-run hosting bill, but there is also no debugging console in production; you design for the instruction budget or the function fails on your biggest carts first.
There is no separate Markets fee on standard use; the costs are translation, the margin decisions inside per-market pricing, and the operational load of returns and support across time zones.
Which one earns the budget first
If the store's problem is measurement you can trust, start with the tool whose mechanism touches that problem directly, and let the other wait a quarter. Funding Shopify Functions to fix a Shopify Markets problem, or the reverse, is the most common way this comparison ends badly. Run the winner for one full cycle, measure it against the split that matters, new versus returning or eligible versus ineligible, and only then revisit the second line item.
Frequently asked questions
Are Shopify Functions and Shopify Markets substitutes for each other?
No. Shopify Functions and Shopify Markets operate on different parts of the store and their costs land in different places. Stores sometimes fund them from one budget, but the work, the owner and the success metric are separate.
What is the most common mistake when adopting Shopify Functions?
Skipping the mechanism and judging the outcome in a blended report. It fails at the edges of the cart. Logic that demos beautifully on three line items hits the instruction ceiling, the output limit, or a metafield size cap exactly when a wholesale order arrives. The fix is to define the eligible population and the split you will judge before anything ships.
What should a store check before investing in Shopify Markets?
Whether the inputs are in shape. Duties and import taxes collected at checkout convert an unpredictable border charge into a line item, which is the difference between delivered-duty-paid and a refused parcel. If that foundation is missing, the spend produces activity instead of results.
How long before either shows a measurable result?
Shopify Functions shows signal inside one selling cycle if the measurement split is set up first. Internationalization and Shopify Markets takes longer to judge fairly because its effects compound across repeat visits and repeat orders, so give it a full quarter before calling it.