An online store's frontend gets the attention, but the backend decides whether orders are correct, stock is accurate and the site stays up during a sale. This guide covers how to host the backend well, whether you run a classic platform or a headless API with a separate storefront.
Monolithic vs Headless
| Monolithic platform | Headless commerce | |
|---|---|---|
| Examples | WooCommerce, Magento, PrestaShop | Medusa, Saleor, custom APIs |
| Frontend | Built-in themes | Separate storefront (Next.js, mobile apps) |
| Strengths | Fast to launch, large plugin ecosystems | Flexible frontends, multiple channels, modern stack |
| Hosting | PHP stack with caching | API server + storefront + workers |
Catalogue and Search
- Cache category and product pages (or API responses) for anonymous visitors; purge on product updates.
- Serve product images in modern formats from a CDN.
- For large catalogues, use a search engine (Meilisearch, Typesense, OpenSearch) for fast filters, typo tolerance and relevance.
- Index database columns used in filters and sorting.
Cart and Checkout Consistency
Carts and checkout cannot be fully cached and must be correct under concurrency:
- Recalculate prices, discounts, taxes and shipping on the server at checkout.
- Reserve stock atomically when an order is placed, with expiry for unpaid orders.
- Use database transactions so an order, its lines and stock changes succeed or fail together.
- Store sessions and carts in Redis or the database, not process memory, so multiple servers can serve them.
Payments and Orders
Take payments through a hosted checkout or SDK, confirm from verified webhooks, and move orders through a clear state machine (see our payment integration guide). Fulfilment, invoices, emails and marketplace updates run as background jobs.
Inventory Across Channels
If you sell on marketplaces or in physical stores, keep one inventory source and sync it to every channel through workers with safety buffers to avoid overselling (see our inventory guide).
Sale Days
Festival sales and campaigns can bring many times normal traffic, concentrated in minutes. Prepare by:
- Load testing browse, cart and checkout flows at expected peak plus margin (see our k6 guide).
- Warming caches and pre-generating heavy pages.
- Scaling up servers in advance and freezing deployments.
- Pausing heavy imports, reports and backups during the sale window.
- Watching dashboards and payment success rates live.
Security
- Card data never on your servers; hosted checkout only.
- Admin panels protected with two-factor login and IP restrictions where possible.
- Rate limiting on login, search and coupon endpoints to stop abuse.
- Prompt platform and plugin updates; remove unused plugins.
- Bot protection for inventory-hoarding and credential-stuffing attacks.
Infrastructure by Stage
| Stage | Setup |
|---|---|
| Launch | One 2–4 vCore server with caching and Redis |
| Growth | 4 vCores / 16 GB, search engine, workers, staging server |
| Scale | App servers behind a load balancer, dedicated database, worker server, CDN |
Backups
Orders and payments are critical records. Back up the database with point-in-time recovery, store backups off-site, and test restores. Back up media and configuration separately.
Example: A D2C Brand
A direct-to-consumer brand runs Medusa as its commerce API with a Next.js storefront. A 4 vCore / 16 GB VPS hosts the API, workers and Redis; PostgreSQL runs on the same server with point-in-time backups; product images come from a CDN; and before each sale the team scales to 8 vCores and runs a checkout load test.
Common Mistakes
- Trusting cart totals from the browser.
- No stock reservation, leading to overselling during sales.
- Running imports and reports during peak traffic.
- Untested checkout under load.
In Short
Cache what is public, keep checkout transactional and server-calculated, confirm payments from webhooks, sync inventory carefully and prepare deliberately for sale days.
What to Monitor in a Store
- Checkout conversion and payment success rate, which drop first when something breaks.
- Response times for product, cart and checkout pages.
- Queue backlogs for order emails, invoices and marketplace sync.
- Stock sync failures between channels.
- Error rates after each deployment.
Alert on payment success rate and checkout errors in particular; they are the most direct signal of lost revenue.
Next Steps
Map your order flow from cart to fulfilment, make each step transactional or idempotent, add caching for public pages, and run a checkout load test before your next campaign. Document the setup in a short runbook covering where data lives, how integrations run, how to restore from backup and whom to contact, so the system stays dependable even when the person who configured it is unavailable or has moved on to another role.
Changing Platforms
Moving from a monolithic platform to headless commerce, or between platforms, is a large project. Migrate products, customers and order history with scripts you can re-run, keep URLs or set up redirects to protect search rankings, run both systems in parallel during testing, and switch over in a quiet period with a rollback plan. Review the setup every quarter with the people who use it, because needs change as the business grows, and small adjustments made early are far cheaper than large changes made under pressure. Before go-live, run a short pilot with a small group of real users and a realistic volume of data, collect their feedback on speed, reliability and everyday tasks, and fix what they report, because early fixes cost far less than changes made after everyone depends on the system.
ServoMix Plans for This Workload
Small stores run on 2–4 vCores; growing stores with search, workers and staging on 4 vCores / 16 GB; high-traffic stores and marketplaces split app, database and workers across 8 vCore servers.
AMD EPYC 7C13 VPS
Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| SMX vPro XS (AMD EPYC) | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹420/mo | Websites, small APIs, bots, staging and VPN servers | Order |
| SMX vPro S (AMD EPYC) | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹560/mo | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| SMX vPro M (AMD EPYC) | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹840/mo | Production databases, high-traffic sites, multi-container apps | Order |
| SMX vPro L (AMD EPYC) | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹1,120/mo | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
Intel Xeon Platinum 8269CY VPS
KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| SMX vCore XS (Intel Xeon) | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹270/mo | Business websites, small apps, scheduled jobs and bots | Order |
| SMX vCore S (Intel Xeon) | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| SMX vCore M (Intel Xeon) | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| SMX vCore L (Intel Xeon) | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,248/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the ServoMix store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.
Frequently Asked Questions
What does an e-commerce backend include?
Should I choose a monolithic platform or headless commerce?
How do I keep checkout correct under load?
Do I need a search engine for my store?
How do I prepare for a festival sale?
How should payments be confirmed?
How do I avoid overselling across channels?
Where should carts and sessions be stored?
How should store data be backed up?
Which plan suits a growing online store?
Related Guides
Frequently Asked Questions
What does an e-commerce backend include?
Catalogue, search, carts, checkout, payments, orders, inventory and customer accounts, as a platform or a headless API.
Should I choose a monolithic platform or headless commerce?
Platforms launch faster with plugins; headless suits custom frontends and multiple channels. Choose by team skills and needs.
How do I keep checkout correct under load?
Recalculate totals server-side, reserve stock atomically and wrap order creation in database transactions.
Do I need a search engine for my store?
For large catalogues, yes; Meilisearch, Typesense or OpenSearch give faster, more relevant search than SQL alone.
How do I prepare for a festival sale?
Load test, warm caches, scale up, freeze deployments, pause heavy jobs and watch dashboards live.
How should payments be confirmed?
From signature-verified webhooks, never from browser redirects alone.
How do I avoid overselling across channels?
Keep one inventory source and sync to channels with safety buffers through background workers.
Where should carts and sessions be stored?
In Redis or the database so any server can handle any customer.
How should store data be backed up?
Database backups with point-in-time recovery off-site, plus media and configuration, with restore tests.
Which plan suits a growing online store?
4 vCores / 16 GB with search, workers and staging; scale to more servers for high-traffic stores.
Your feedback helps us continuously improve ServoMix guides.
Know someone who may find this guide useful?
