nas Infrastructure
Cost Analysis · Confidential
nas / Infrastructure Cost Analysis
June 2026 · Confidential
100 Merchants · 3,000 Advocates · Railway
$398
per month, all-in

The complete nas platform — 11 production services, PostgreSQL, Redis, and error tracking — fully operational at 100 merchants and 3,000 advocates.

$0.16
per advocate / month
$3.98
per merchant / month
~$3,400
year-1 total (ramp incl.)
$0.031
per attributed conversion
For Everyone
What are we actually paying for?

Four buckets cover everything. No surprises, no hidden fees.

$370
Servers & Databases
Railway hosts everything — 8 backend services (Phase 1; Storefront deferred to Phase 2), PostgreSQL, Redis, and a full staging environment. This is nas's engine: redirect links, attribute sales, manage advocate enrollments.
$0*
Advocate Login (OTP — TBD)
Advocates sign up once via an invite link and get a 30-day session cookie — they are not re-prompted every visit. Login OTPs only fire on first signup or when a session expires. Provider not chosen yet; currently console-logged in the pilot. Estimated <$5/mo at scale (≈600 OTPs/month vs the 4,700 creator-app assumption).
$28
Error Monitoring + Domains
Sentry catches bugs before anyone notices them ($26/mo). Plus joinnas.io + voucheg.com domains ($2/mo). Everything else — DNS, CI/CD, email — runs on free tiers.
Cost Breakdown
Where every dollar goes

Compute and databases together are 86% of total cost. Everything else is a rounding error.

Technical Detail
Service-by-service breakdown

Every service, its specs, and why it's sized this way. Railway pricing: $0.0000018 / MB / min RAM · $0.000463 / vCPU / min CPU.

Railway Compute — 8 Production Services (+1 deferred to Phase 2)
$153 / mo
ServiceRAMvCPUWhy this size$/mo
Redirect Service
When a creator shares a short link on Instagram or WhatsApp, this service catches it in milliseconds, records the click, and sends the shopper to the right product page. Every single shared link passes through here — it's the fastest and most critical service on the platform.
256 MB0.25 1.1 RPS avg, peaks ~3.5 RPS — Redis absorbs all cache hits $25
Ingestion API
The receiving dock for sale data. When a customer completes a purchase on a brand's Shopify store, the store fires a notification here. This service validates it, de-duplicates it (so a retry doesn't count twice), and queues it for the Attribution Worker to process.
128 MB0.10 0.006 RPS avg; only bursts on Shopify webhook batches $12
Attribution Worker
The judge of the platform. For every incoming sale, it figures out which creator deserves the commission — by matching the order back to a click, a coupon code, or a browser fingerprint. Once matched, it calculates the commission and writes it to the creator's earnings ledger.
256 MB0.25 5 concurrent BullMQ jobs; 15K jobs/month is light $25
Click Writer Worker
A quiet background helper that keeps the Redirect Service fast. Rather than writing every click to the database the moment it happens, this service collects them silently in batches and saves them together — so heavy traffic never slows down the link redirect experience.
128 MB0.05 Background Redis stream drain; mostly idle between batches $11
Creator API
The backend API that powers the advocate and merchant experience. Handles invite previews and acceptance, program enrollments, affiliate link generation, storefront management, and payout requests. Serves both the advocate web portal and the merchant portal over tRPC.
256 MB0.25 270K calls/month = 0.10 RPS avg; tRPC + Drizzle is lean $25
Storefront Phase 2
Deferred. Public advocate storefronts at joinnas.io/@handle require multi-brand density to be meaningful. In Phase 1, advocates share go.joinnas.io short links that route directly to the merchant's own product pages — no storefront needed.
512 MB0.25 Not running in Phase 1 $45
Merchant Portal
The web dashboard at merchants.joinnas.io. Merchants log in here to set commission rates, discover loyal customers, send advocate invitations, and monitor who's driving sales. This is their dedicated control panel for the word-of-mouth program.
256 MB0.10 100 brands, low-frequency dashboard sessions $22
Admin Console
The internal nas team dashboard — not visible to advocates or merchants. Used to onboard new merchants, approve payout requests, resolve commission disputes, and monitor platform health. Access is restricted to the nas team only.
128 MB0.05 Internal only; minimal concurrent users $11
Advocate Portal New
The web portal where advocates manage their nas account — joinnas.io. When a merchant invites a loyal customer, they land here to sign up via phone OTP, accept the enrollment, and access their dashboard (earnings, brand catalog, referral links). One nas account works across all merchant programs an advocate joins.
256 MB0.10 3,000 advocates; low-frequency dashboard + invite acceptance $22
Databases — PostgreSQL + Redis
$117 / mo
ServiceConfigDiskWhy$/mo
PostgreSQL 16
Vouch's main database — the single source of truth for everything on the platform. It stores every creator profile, every brand, every short link, every click recorded when someone taps a link, every sale that comes in, every commission calculation, and every payout ever made. Think of it as the platform's permanent memory. By the end of year one it will hold roughly 36 million click records alone.
1 GB RAM · 0.5 vCPU 10 GB ~36M click rows at month 12 with monthly partitioning on clicks.created_at. No media stored — product images are external merchant URLs. $92
Redis 7
The platform's short-term memory — extremely fast but temporary. It does two things: it caches every creator's short link so the Redirect Service resolves them in under a millisecond without touching the main database, and it acts as a job queue so the Attribution Worker always knows which incoming sales to process next. If Redis restarts, nothing is lost — PostgreSQL is always the source of truth.
256 MB · 0.25 vCPU Link resolution cache (~12 MB), BullMQ attribution queue, click write buffer. Comfortable within 256 MB. $25
Railway Workspace + Staging
$100 / mo
ItemDetail$/mo
Railway Pro WorkspaceTeam workspace, custom domains, private networking between services$20
Staging Environment
A complete, private copy of the entire Vouch platform running in parallel — invisible to creators and brands. Before any code change goes live, it gets deployed here first so the team can test it thoroughly. Think of it as a dress rehearsal before every show. Without it, a bug introduced by a new feature would hit real creators and real money immediately.
All 10 services at ~60% size — full QA parity before every production deploy $80
Third-Party Services
$73 / mo
ServiceWhat it doesVolume$/mo
Login OTP TBD One-time codes sent on first signup or 30-day session expiry. Provider not decided; pilot uses console-log. Volume ≈600 OTPs/mo at scale — under $5/mo. ~600/mo (est.) <$5*
Sentry Team Error tracking across all Node.js services. Essential for attribution dispute forensics. 50K events/mo $26
Domains (joinnas.io + voucheg.com) Annual renewal for both ~$30/year $2
Cloudflare DNS + CDN Free All subdomains, DDoS protection, zero-config CDN for static assets Free tier $0
GitHub Actions CI Free Typecheck + unit + integration tests on every PR. ~150 min/month used of 2,000 free. ~150 min/mo $0
Resend (email) Free Transactional emails to brands — ~400 emails/month, well within the 3,000/mo free tier ~400/mo $0
Object Storage (R2/S3) Not needed Not required — product images are external merchant URLs. Creator avatars (~240 MB) stay in PostgreSQL. $0

Monthly total

The complete nas platform, production + staging, all 11 services running. No hidden fees, no per-transaction costs.

$398
per month
Growth Ramp
12-month cost projection

Costs grow with the platform, not ahead of it. Year-1 total: ~$3,400 (Phase 1; Storefront not yet running).

$180
Launch
Months 1–2
20 merchants · <300 advocates
$305
Traction
Months 3–4
50 merchants · ~800 advocates
$400
Growth
Months 5–8
75 merchants · ~2,000 advocates
$398
Full Scale
Months 9–12
100 merchants · 3,000 advocates
Unit Economics
Cost per unit of work

Infrastructure is essentially free relative to the revenue each creator or brand generates.

$0.16
per advocate
per month
$3.98
per merchant
per month
$0.000163
per click
(3M clicks/month)
$0.031
per attributed
conversion
~21%
infra as % of revenue
at 20% platform take-rate
Future Costs
When costs will jump

These are the specific triggers that push into a higher tier. None are imminent at this scale.

Click volume exceeds 10M / month
Redirect Service needs 512 MB RAM to sustain 5+ RPS without memory pressure
+$20/mo
PostgreSQL needs a read replica
When merchant analytics and creator insight queries start competing with attribution writes — typically around 5,000+ creators
+$92/mo
Attribution queue regularly backs up
A second Attribution Worker when job depth spikes during brand campaign launches
+$25/mo
Scaling beyond 10,000 creators
PostgreSQL RAM upgrade to 2 GB as click table crosses 120M rows; monthly partitioning should be in place well before this
+$80/mo