Serverless Architecture Explained for Non-Technical Business Owners
"Serverless" is one of the most confusing terms in cloud technology — because it does not actually mean there are no servers. There are servers; someone else manages them entirely, and you are not aware of their existence. You provide the code; the cloud provider handles everything else: running the code, scaling it to handle demand, ensuring it is available, and shutting it down when not in use.
For non-technical business owners, the more useful frame is this: serverless is a pricing and operations model where you pay only for the exact computation your application uses, measured in milliseconds, rather than paying for a server that runs continuously whether or not your application is being used.
The Old Model vs. Serverless
In the traditional server model, you provision a virtual machine, install your application on it, and that VM runs continuously — charged by the hour or month. If your application handles 1,000 requests on Monday and 10 requests on Tuesday, you pay the same amount on both days.
In the serverless model, your application code is uploaded to the cloud. When a request arrives, the cloud provider executes your code, charges you for the milliseconds of compute used, and then releases the resources. On Monday with 1,000 requests, you pay for 1,000 executions. On Tuesday with 10 requests, you pay for 10 executions.
The cost implications are significant for applications with variable or unpredictable usage patterns:
- AWS Lambda pricing: USD $0.20 per million requests + USD $0.0000166667 per GB-second of execution time. A typical API function running 200ms and using 128MB of memory: $0.00000042 per execution. (AWS Lambda Pricing)
- Azure Functions pricing: USD $0.20 per million executions + USD $0.000016 per GB-second. (Azure Functions Pricing)
For an application processing 500,000 requests per month with those characteristics, the cost is under $100/month. The equivalent always-on server would cost $150–$400/month.
When Serverless Makes Sense
Serverless is particularly well-suited to:
APIs and backend services with variable traffic. Web applications, mobile backends, and REST APIs that receive bursts of traffic are ideal candidates. The auto-scaling is instantaneous and unlimited — serverless functions can scale from 1 to 100,000 concurrent executions automatically.
Event-driven automation. File processing (when a document is uploaded, trigger a processing workflow), database change reactions (when a record is updated, send a notification), scheduled tasks (run a report generation job every night at midnight). These workflows are intermittent by nature — serverless is more cost-efficient than running a VM to handle them.
Microservices architecture. Decomposing a monolithic application into small, independently-deployable functions allows each component to scale independently and be updated without redeploying the entire application.
When Serverless Does Not Make Sense
Serverless has genuine limitations that make it less appropriate for certain workloads:
Long-running tasks. AWS Lambda has a maximum execution time of 15 minutes. Azure Functions has a configurable timeout (up to unlimited in premium plans but at higher cost). Applications that need to run continuously or for extended periods are not suited to the standard serverless model.
Latency-sensitive applications with cold starts. When a serverless function has not been invoked recently, the first request experiences a "cold start" — a delay of 100ms to several seconds as the cloud provider initializes the execution environment. For most applications, this is acceptable. For applications where every millisecond counts (high-frequency trading, real-time gaming), it is not.
Legacy applications designed for persistent state. Traditional server-based applications often maintain state in memory — session data, cached database connections, background threads. Serverless functions are stateless by design; state must be stored externally (in a database or cache service). Migrating a stateful legacy application to serverless requires architectural changes.
Serverless for Canadian SMBs: Practical Entry Points
For a Canadian SMB evaluating serverless, the lowest-risk entry points are:
Replace scheduled jobs. If your application currently runs scheduled batch jobs (nightly report generation, daily data sync, weekly cleanup tasks) on a VM that exists solely for that purpose, migrating those jobs to serverless functions eliminates the cost of the idle VM between job runs.
Add API endpoints. When building a new API feature, consider implementing it as a serverless function rather than adding it to an existing server. This eliminates the need to size the server for the new feature's peak load.
Event-driven document processing. If your application processes files when they are uploaded (resize an image, extract data from a PDF, generate a report from a spreadsheet), serverless functions triggered by file upload events are a natural and cost-efficient architecture.
From a PIPEDA perspective, serverless functions running in Canadian cloud regions (AWS ca-central-1, Azure Canada Central) process data in Canada. Confirm the region configuration — the default region for a function is not automatically Canada in either AWS or Azure.
Sources
- AWS. *Lambda Pricing.* aws.amazon.com/lambda/pricing
- Microsoft. *Azure Functions Pricing.* azure.microsoft.com
- Google Cloud. *Cloud Run — Serverless Containers.* cloud.google.com/run
- Statistics Canada. *Survey on Digital Technology and Internet Use, 2023.* statcan.gc.ca
Cloud Forces designs and deploys serverless architectures for Canadian SMBs — reducing infrastructure costs, eliminating idle compute, and ensuring Canadian data residency. Explore our AI Cloud Management service or book a free architecture review to see where serverless fits in your current infrastructure.
Anton Kuznetsov is the founder and principal engineer of Cloud Forces, the Toronto firm he started in 2018 to make custom software and AI practical and affordable for Canadian SMEs. He works hands-on across application development, cloud architecture, and the production systems Cloud Forces runs for its clients.
Ready to bring AI to your business?
Book a free AI Readiness Consultation — no commitment required.
Book Free Consultation