Download PDF

Cloudnix Technical Report · CNX-TR-2026-10

The Layers Under a Platform: Infrastructure Practice for Business Platforms

Mohammed Irfan, Ajmal Abubacker, Avinash KS, Elango and Avinash Nishant
Cloudnix Software Labs, Bengaluru, India
CNX-TR-2026-10 · Version 1.0 · November 2026
AbstractBusiness platforms rarely fail in their code; they fail in layers nobody owned: a cache that serves stale prices, a database whose slow queries no one reads, an index that drifts from its source, messages that land in spam, and restores done in the wrong order. We set out the infrastructure practice we apply to the commerce, workflow, SaaS and AI platforms we design, build and operate, layer by layer: regions and clouds, isolation, content delivery and object storage, media, caching, web and application servers, databases, vector search and on-demand model servers, scheduled operations, monitoring, staging and releases, messaging across channels, and recovery order. For each layer we state the problem, our practice, the settings we use in production and the best practices we recommend.
Keywords: infrastructure; multi-cloud; CDN; object storage; caching; web performance; database tuning; vector search; GPU; scheduled jobs; monitoring; observability; staging; transactional messaging; disaster recovery

Contents
  1. Executive summary
  2. Regions and clouds
  3. Isolation by platform
  4. Content delivery and object storage
  5. Image and media pipeline
  6. Layered caching
  7. Web and application servers
  8. Databases
  9. Vector search and model servers
  10. Scheduled operations: the night shift
  11. Monitoring, metrics and logs
  12. Staging and releases
  13. Messaging across channels
  14. Backups and recovery order
  15. A checklist for your own platform
  16. References

Executive summary

A business platform is judged by its pages, but it lives or dies by the layers under them. A page that loads in a second on a quiet morning and times out on a sale day; an order email that lands in spam; a vector index that drifts from the database it describes; a backup that restores, but in an order that leaves checkout down for hours. None of these is a coding error. Each is an infrastructure layer that nobody owned.

This report sets out the infrastructure practice we apply to the platforms we design, build and operate: multi-tenant commerce, workflow and SaaS platforms, and AI systems with retrieval and model serving. It covers thirteen layers, from regions and clouds to recovery order, and for each one states the problem, the practice we follow, the settings we use in production, and the checks we run. Figures are taken from our own servers.

Principles.
  1. Every layer has an owner and a number. If nobody can say what a layer is set to, nobody is running it.
  2. Separate what fails separately. One platform per server group; staging apart from production.
  3. Serve from the closest, cheapest layer that is correct. Edge before cache, cache before database, but never stale where money or identity is involved.
  4. Size to the machine, not the default. Defaults are written for nobody in particular.
  5. Watch for slowness, not only for failure. Slow queries and full disks become outages.
  6. Do the housekeeping every night. Clutter is a performance problem with a delay.
  7. Plan recovery in business order. Restore what lets customers buy first.
LayerWhat goes wrong without itOur practice in one line
Regions and cloudsOne provider’s outage or price change is yoursThree compute regions on two clouds
IsolationOne platform’s spike is everyone’s outageServers per platform; separate staging
CDN and storageSlow pages far from the server; costly spikesObject storage behind a CDN with edges near users
MediaHeavy, shifting pages on phonesWebP in three sizes, lazy loading, reserved space
CachingEvery visit hits the database; or stale pricesFive layers, with a list of what is never cached
Web and applicationWorkers run out when traffic doublesEvent-driven server, HTTP/2, sized worker pools
DatabasesSlow queries unnoticed; no way to rewindSized buffers, slow-query log, binary log
Vector and model serversStale answers; idle GPUs billed by the hourSynced index, daily validation, on-demand GPUs
Scheduled jobsClutter slows the platform; feeds go staleA night shift before 4 am; reminders every 2 h
MonitoringCustomers report problems firstMetrics, application tracing, uptime checks, daily log review
Staging and releasesReleases break checkout; forks per tenantStaging copy of each platform; one release for all tenants
MessagingOTPs and orders in spam; missed approvalsRouting by type across email, mobile, WhatsApp, Slack and in-app
RecoveryRestores in the wrong orderA tested restore order: sign-in, catalogue, checkout, orders

Regions and clouds

Region choice decides latency for users, the jurisdiction of data, and exposure to any one provider. We run three compute regions on two clouds, each chosen for the workload it hosts.

RegionCloudWorkloads
BangaloreCloud BCommerce, workflow and web platforms; staging copies
SingaporeCloud AAI application tier, vector search, object storage
San FranciscoCloud BOperations; GPU model servers created on demand
MumbaiCloud AObject storage

Best practices

Isolation by platform

Unrelated platforms on one server share every failure: a runaway report on one fills the CPU for all; a security issue in one exposes the others; none can be patched or moved alone. We run each platform on its own servers: commerce, workflow, web content, the AI application and the vector service are separate machines, and staging lives on its own server with a copy of each platform.

Best practices

Content delivery and object storage

Static files are most of a page’s weight. Served from the application server they cost CPU, bandwidth and latency; stored on its disk they tie the platform to one machine. Files live in object storage and are served by a CDN whose edges in our platforms’ markets include Mumbai, Delhi, Chennai, Singapore, London, New York and Sydney [1].

Best practices

Image and media pipeline

On mobile networks, images decide how fast a page feels and how it scores on search engines’ page-experience measures [2]. Every uploaded image is converted to WebP in three sizes (small, medium and full) at upload; the browser chooses the size it needs; images below the fold load as the visitor scrolls; and each image has its dimensions reserved so the layout does not shift.

Best practices

Layered caching

Caching is the main defence against sale-day spikes and the main source of subtle bugs. We cache in five layers, each for what is safe to keep there.

LayerHoldsInvalidated by
CDN edgeImages, files, themesNew file name or version
Page cacheRendered product, category and home sectionsCatalogue or content change
Code cacheCompiled application code in memoryRelease
Object cacheFrequently read objects, in memoryWrite to the underlying record; expiry
Database bufferHot rows and indexes in RAMManaged by the database
Never cached. Carts, prices and stock at checkout and payment, anything tied to a signed-in person, and any response that depends on permissions. A cached price is a pricing error; a cached personal page is a data leak.

Best practices

Web and application servers

We use an event-driven web server with HTTP/2 and Brotli and gzip compression, a separate FastCGI process manager for application workers, and compiled code cached in memory. AI services sit behind a lightweight reverse proxy. Worker pools are dynamic, up to 50 workers per pool on a commerce server, a figure derived from memory per worker and the memory left after the database.

-- sizing the application worker pool
workers = (RAM - database buffer - OS and cache headroom) / memory per worker
-- example: (3 GB - 1 GB - 0.6 GB) / ~28 MB  ≈ 50 workers

Example exchange or schema.

Best practices

Databases

Databases listen only inside their server. The buffer pool is sized to the machine (1 GB on a 3 GB commerce server; 4 GB on a 15 GB application server). Every query slower than one second is logged, and binary logging is enabled where point-in-time recovery is needed [3].

Best practices

Vector search and model servers

AI features add three kinds of infrastructure: a vector index, the services that call models, and GPU servers. Our vector search runs in containers on its own server. Scheduled jobs add new records and remove deleted ones so the index tracks the source database; a daily job validates results; and a separate job cleans old logs. GPU model servers are created from an operations host when a workload needs them and stopped when it finishes.

Best practices

Scheduled operations: the night shift

TimeJobWhy
01:00Clean up records; compress yesterday’s logs; remove old requestsKeeps tables and disks small
02:30Detect and remove bot traffic and sessionsKeeps analytics and sessions honest
03:30Rebuild sitemaps for every storeSearch engines see current catalogues
03:45Sync catalogues with shopping feeds; pull approval statusListings stay valid
Every 2 hAbandoned-cart remindersRecovers sales, day and night
WeeklyLonger maintenanceRuns on the quietest night

Best practices

Monitoring, metrics and logs

Every server reports CPU, memory and disk metrics. Application performance monitoring traces slow requests and errors to the code on the busiest platforms. Uptime is checked on every store and admin. Alerts fire on errors, failed logins, traffic spikes and downtime. Yesterday’s logs are compressed, summarised and read every morning, and slow queries are reviewed [4].

Best practices

Staging and releases

A staging server keeps a copy of each platform. Every change is tried there before it is released, and releases go to every tenant together from one codebase, so no tenant is left on an old version and no customer-specific fork exists.

Best practices

Messaging across channels

Messages are part of the platform’s infrastructure: an OTP that does not arrive is a failed login, and an order email in spam is a support call. Each platform routes messages by type and channel.

ChannelUsed forPractice
Email via delivery servicesOrders, invoices, resets, briefsDedicated transactional services; signed sender domains (SPF, DKIM); bounce handling
Email via local relayServer mail, noticesQueues and retries on each server
MobileOTPsExpiring codes; limits per number
WhatsAppSupport, updates, remindersSupport groups, including outside working hours
SlackTeam alerts and approvalsPer-channel routing
In-appEvery notificationA record the user can always find

Best practices

Backups and recovery order

Backups and their schedules are described in our security report. Infrastructure adds the recovery order: after a failure, each platform is restored in the order that lets customers transact soonest: sign-in, then catalogue, then checkout and payments, then orders, then everything else. The order is tested in a monthly drill [6].

A checklist for your own platform

  1. If your main region failed now, where would your platform run, and how long would it take?
  2. Do any two unrelated platforms share a server?
  3. Are images and files served from your application server?
  4. Do phones download desktop-sized images?
  5. What exactly is cached, and what must never be?
  6. How many application workers can each server run before it swaps?
  7. Which queries take more than a second, and who reads that list?
  8. Does your vector index remove records deleted from the source?
  9. Are GPU servers running right now with nothing to do?
  10. What runs every night, and would you know if it did not?
  11. Would you hear about downtime before a customer does?
  12. Does staging match production?
  13. Do your OTPs and order emails reach the inbox?
  14. In what order would you restore your platform?

References

  1. M. Thomson and C. Benfield. HTTP/2, RFC 9113, IETF, 2022.
  2. Google. Core Web Vitals, web.dev documentation.
  3. Oracle. MySQL 8.4 Reference Manual: InnoDB Buffer Pool; The Slow Query Log; The Binary Log.
  4. B. Beyer et al. Site Reliability Engineering: Monitoring Distributed Systems. O’Reilly, 2016.
  5. M. Kucherawy and E. Zwicky. Domain-based Message Authentication, Reporting, and Conformance (DMARC), RFC 7489, IETF, 2015.
  6. M. Swanson et al. Contingency Planning Guide for Federal Information Systems. NIST SP 800-34 Rev. 1.
  7. Cloudnix. Defence in Depth for Business Platforms, Technical Report CNX-TR-2026-09, 2026.
About this report. Prepared by the Cloudnix engineering team from systems we have designed, built and operated. Client and product names are withheld; illustrative values are marked as examples. Cloudnix Software Labs, Bengaluru, India · cloudnix.com. This report may be shared freely in its entirety.
Document control
ReportCNX-TR-2026-10Version1.0
IssuedNovember 2026StatusPublished
Filecloudnix-infrastructure-practices-v1.0.pdf