Cloud-native design principles
What does cloud-native design mean?
Cloud-native design uses techniques that make applications easier to change, observe, recover and scale in dynamic environments. It is not a requirement to use a particular cloud provider, Kubernetes or microservices. A well-designed single application can use these principles.
Our bookstore runs two identical web instances. Either instance can read the catalog and submit an order to a separate data service. If one web instance fails, requests can be routed to the remaining healthy instance while a replacement starts. The application still depends on the data service and sufficient remaining capacity. This is an offline architecture model, not an actual deployment.
Make application instances replaceable
Separate application code, configuration and persistent data. Build and test a versioned artifact, then deploy that artifact consistently. Keep environment-specific settings outside it; supply secrets through approved access mechanisms, not through the image or version control. To change the code, build and test a new artifact and replace instances rather than manually patching each running copy. This approach is often called immutable deployment. It does not mean that no files can ever change while a process runs.
A stateless web instance does not depend on irreplaceable local records to handle the next request. It can still use memory and temporary caches. Session state may live in a suitable shared store or be carried safely by the client, depending on design. A stateful database has different recovery, replication and storage requirements. Externalizing data transfers responsibility; it does not eliminate it.
Trace a request through a replaceable service
The following fictional design has a routing layer that selects a healthy web instance. A private data service owns the order records. Arrows show logical request flow, not actual network configuration.
Browser |Request router | |Web A Web B (same approved image) | |Private order data service |Persistent records + recovery planText alternative: a browser sends a request to a router; the router chooses one of two web instances. Both have restricted access to the private data service, which maintains persistent order records. The instances can be replaced without moving those records. The router and database may themselves be shared failure points unless their design addresses that risk.
A process that is running is not necessarily ready to receive traffic. Readiness is an indication that the instance should accept requests. A check might verify that startup is complete. Health checks and routing must be configured and tested; they are not automatic guarantees of correct order processing. Protect access to data and verify authorization at the application boundary.
Desired state and orchestration
An orchestrator coordinates application instances across available resources. Declarative configuration describes an intended result, such as a target of three web copies. A controller observes existing resources and requests actions to reduce differences between the intended and observed state. Kubernetes is a common orchestration platform; its controllers cooperate with other components to schedule and run workloads.
Consider this simplified configuration sketch, not Kubernetes YAML and not a runnable command:
application: bookstore-webartifact: catalog-v2 (fictional identifier)desired copies: 3route traffic only to ready copiesIf only two copies exist, the simplified controller requests one more. If the third copy starts but is not ready, the desired instance count may be reached while only two copies can handle traffic. The controller may need time and available capacity; an invalid artifact or missing resources can prevent convergence. Declarative configuration is not the same as a successful deployment. The control plane makes management decisions, while user requests travel through the application's data path.
Worked example: failure and capacity
Assume each ready web copy can handle 40 requests per second under a fictional fixed workload, and the shared data service supports up to 100 requests per second. With three ready copies, the modeled capacity is the smaller of 3 × 40 = 120 and 100, so at most 100 requests per second in this simplified model. If one copy fails, capacity falls to min(2 × 40, 100) = 80. At demand of 90 requests per second, the shortfall is 10 until another copy becomes ready or demand falls.
If the replacement is still starting, there is no immediate increase in ready capacity. Adding a fourth copy also cannot raise this model above the database limit of 100. Actual throughput depends on request mix, retries, latency, contention and many other factors. These numbers illustrate bottlenecks, not measured performance. Monitor response latency, error rate and traffic alongside ready-copy counts.
Start with the simplest architecture that works
A single deployable application can have clear internal modules, automated releases, external persistent storage and useful telemetry. Splitting it into microservices introduces additional network calls, operational dependencies and deployment coordination. Use separate services when independence, ownership or scaling requirements justify the cost. A managed application platform can offer some orchestration features without a team operating its own cluster.
Cloud-native systems can run in public, private or hybrid environments. Containers, declarative configuration and automation help but do not replace threat modeling, monitoring, recovery drills or cost review. Keep changes small, test the new version before routing production traffic, and prepare rollback. Replacing an application image does not automatically undo database schema changes. The data migration needs its own compatibility and recovery plan.
Practice and recap
Draw two replaceable web instances, a request router and a persistent order store. Label what changes when one instance is removed, which component stores orders, and where the shared dependencies are. For two remaining ready instances with 30 requests per second each and an 80-request-per-second data service, demand of 70 leaves a modeled shortfall of 10 requests per second. A third ready copy raises the modeled capacity to 80, not 90.
Explain the difference between desired copies, running copies and ready copies. A new copy can fail to start or be unable to receive traffic. Recovery requires evidence from both infrastructure status and user-visible outcomes. Continue to the provider landscape and service selection chapter to apply these principles to cloud service choices.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cloud-native design principles — knowledge check
Choose the best answer for each offline scenario.
Which architecture can be cloud-native?
A controller wants three copies; two exist. What is its next objective?
Three copies exist, but one is not ready. How many should receive traffic under the stated routing policy?
Three ready copies each support 40 requests/s; the data service supports 100. What is the modeled upper bound?
What must be considered separately when rolling back an application after a database migration?