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.
SkyRainCloud 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 |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | 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 |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 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 |
| VPS 3 — Intel | 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 |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.