Skip to content
Comparisons · · 3 min read

Pattern Routes Against One Link Per Destination

By Tolinku Staff
|
Pattern Routes Against One Link Per Destination

The choice between the two models looks like a preference on a feature list. It becomes an engineering commitment the moment your catalogue outgrows a spreadsheet.

This article is about the work itself: what you end up building and running when every destination needs its own stored link, and which parts a pattern removes.

The Sync Problem

A minted link is a copy of a fact that lives in your database. Copies drift.

Once links are records in someone else's system, you own a reconciliation job:

  1. Creation. Something has to notice a new product and mint a link for it, before anyone can share one.
  2. Update. A changed slug or a moved category means the stored destination is now wrong.
  3. Deletion. A discontinued product leaves a live link pointing at a dead page.
  4. Backfill. The first run has to cover everything that already exists, which is where rate limits bite.

None of this is hard. All of it is permanent, and it fails quietly: the symptom is a link that worked last quarter.

A pattern has no copy. /p/:id resolves against whatever your own system says today, so there is nothing to drift.

Rate Limits Are a Real Constraint

Backfilling a catalogue through an API is where teams first feel the model. A hundred thousand products at a few requests per second is hours of careful batching, retry handling and partial-failure recovery.

Then it happens again for every bulk change. Recategorise the catalogue and you are rewriting a hundred thousand records to keep them truthful.

Check the published rate limit before you commit to the record model, and multiply by your catalogue size rather than by your campaign count. The campaign count is the number people quote in demos, and it is not the number that hurts.

Deletion Is the Part Nobody Plans

Minted links accumulate. Three years in, nobody knows which are live, which were for a campaign that ended, and which point at products that no longer exist.

The questions worth answering before you are in that position:

  • Who deletes a link, and what happens to anyone who taps it afterwards?
  • Is there an audit trail showing who created it and for what?
  • Can you find orphans, meaning links whose destination no longer resolves?
  • Does deleting free the slug, and is reusing it safe?

With patterns, an unmatched path falls back to the web URL and the browser handles it the way it already handles a missing page. There is nothing to clean up because nothing was stored.

Where the Record Model Still Wins

This is not an argument that minted links are obsolete. They are the right shape for a large class of work:

  • A campaign link is a record by nature, with its own tags, expiry and owner
  • Print and broadcast need a short, stable id, not a path that mirrors your database
  • Per-link rules such as click caps, passwords and scheduled expiry attach to records
  • One-off destinations that have no pattern are simply links

The failure is not choosing records. It is choosing records for a catalogue, which is a different job wearing the same clothes.

What This Looks Like in Practice

# Record model, 40,000 products
POST /links  x 40,000        once, then on every create
PATCH /links/:id             on every slug or category change
DELETE /links/:id            on every discontinuation
                             plus a reconciliation job, forever

# Pattern model, 40,000 products
route: /p/:id                once

The second is not merely less code. It is less state, and state is the thing that goes wrong while you are not looking.

Tolinku supports both deliberately. Routes cover the catalogue, short links and QR codes cover the campaign artefacts, and both report into one analytics view. Setup for each is in the deep linking documentation.

The Question to Ask Yourself

How many destinations will exist in two years, and who is responsible for keeping each of them correct?

If the answer is a marketing team and a few hundred links, records are fine and simpler. If the answer is your database and a six-figure row count, a pattern is not a nicety, it is the only version of this that stays true.

The routing mechanism underneath is identical either way. Both rely on the association files Apple documents under associated domains and Google under App Links verification. What differs is how much bookkeeping you signed up for.

Get deep linking tips in your inbox

One email per week. No spam.

Ready to add deep linking to your app?

Set up Universal Links, App Links, deferred deep linking and analytics in minutes. Free to start.