Concept
08of 08
Applications
7 min read
Application platform
What it is, in one sentence
A service that takes your team’s code and keeps it live: it builds, publishes, gives it an address and keeps the previous version, without anyone tending a server.
01The problem
You write code.
And run servers.
Between the finished code and the live application there is work that is not the product: machines, network, certificate, publishing, rollback. An application platform takes that work on.
Publishing should not be a project. It should be a gesture you repeat several times a day, without fear.
Without a platform, each team builds its own pipeline. One publishes by script, another by a sequence of steps only one person knows. When something breaks, rolling back depends on remembering what was live before.
PaaS, platform as a service, is the model in which the team delivers the code and declares what it needs: an address, a database, a variable. The platform decides how to build, where to run and how to swap the version without interrupting the people using it.
The measure of a good platform is not the publish that goes right. It is the one that goes wrong: what stays live, what the screen says and how long rolling back takes.
02The idea
What leaves
your hands.
PaaS is a division of labor. The list on the left stops being the team’s job. The one on the right never does.
The platform takes over6 fewer tasks
- ServersCreate, update and replace machines.
- BuildTurn the code into an executable version.
- Version swapPut the new one live and take the old one out, without interruption.
- Address and certificateThe public domain and the secure connection.
- ScaleMore instances when demand rises.
- RollbackPut a version already recorded back live.
Stays with you5 decisions
- The codeWhat the application does, and how.
- The configurationVariables, secrets and limits for each environment.
- The dataWhat to keep, for how long and who accesses it.
- When to publishWhen a version is ready, and for which environment.
- The authorizationWho on the team can publish and promote.
03How it works
The new version goes up.
The previous one holds.
The platform only switches traffic after confirming that the new version answers. If a step fails, the publish stops there. Whoever was live keeps serving.
- CodeThe platform fetches the code from the repository.
- BuildGenerates the executable version.
- RecordStores the version. It never changes again.
- ConfigureApplies the configuration to the environment, alongside the version that is live.
- Respond: did not answerThe deployment 9 publish stops here. The address is not switched.
- Deployment 8 stays liveBefore, during and after the attempt. Every request still reaches it, and nobody saw 9 fail.
The swap is the last step.Build, record and configure happen alongside the version that is live. Traffic only changes at the end.
Failing is safe.The step that fails ends the attempt. There is no half-deployed application live.
Rolling back is not redoing.The previous version is recorded and intact. Restoring it rebuilds nothing.
04The principles
Five guarantees.
All about trust.
These five guarantees are what separates an application platform from a publish script.
The version
A version that does not change
Every publish generates a recorded version. It is not overwritten, and that is why you can know exactly what is live.
deployment 8 · recorded
The same artifact
What was tested in staging is the same binary that goes to production. Promoting does not rebuild.
staging = production
The previous one stays live
The new version only receives traffic once it is confirmed. Until then, and if anything fails, the previous one keeps serving.
9 failed · 8 live
Access
An environment is a boundary
Each environment has its own quota, network and configuration. One does not reach the other without authorization.
network closed by default
One door for everyone
People, command line and automation use the same governed interface. Nobody publishes through direct access to the infrastructure.
same API · same record
05Evidence
“Live” is not
one single thing.
“Published” can mean five different things. A good platform says how far it verified, instead of just saying it finished.
- 1Nothing checkedThe publish has started. That is all you know.
- 2Version checkedWhat was built is what was recorded.
- 3Configuration appliedThe environment received this version’s configuration.
- 4Application respondingIt responds inside the environment.
- 5Address confirmedPeople accessing from outside get this version.
06Common mistakes and evaluation
Ask to see
a failure.
Every demo shows the publish that goes right. The evaluation that matters is the other one: break it on purpose and look at what stays standing.
Five common mistakes
- Publishing on top
Overwriting the version in use erases the way back.
- Rebuilding for every environment
If production builds again, what was tested is not what runs.
- “Finished”, without saying what
A green notice that does not say what was verified hides the failure until the customer finds it.
- Logging into the server to fix it fast
A fix made by hand creates a state that no version describes.
- Environments that can see each other
Staging that reaches the production database is an incident with a date already set.
How to evaluate a solution0 of 9 checked
07From concept to product
Zero
How NNumbers
applies it.
Zero publishes and runs your team’s applications: projects, services, deployments, environments and networks. You point it at a repository. The platform builds, publishes and gives it an address.
The concept asks forZero has
Publish without servers
Publishing
The platform fetches the code at the reference you provide and builds the image from the repository’s build file. A publish goes through nine steps, and you follow each one.
Image built (2 of 9)
A version that does not change
Deployments
The image integrity is confirmed and the version is recorded before any change to the environment. A recorded version is not overwritten.
deployment 8 · live
The previous one stays live
Restore
If a step fails, the publish stops there and the screen says where. Whoever was live keeps serving. Restoring rebuilds nothing: the return goes through six of the nine steps.
deployment 9 failed
The same artifact
Promote
It takes the tested version to another environment and reuses the same artifact: both environments run the same binary.
loja-web · promoted
Saying what it verified
Evidence
Every deployment shows how far the platform actually verified. There are five steps, from “Not verified yet” to “Address confirmed”.
Application responding
One door for everyone
Governed API
The console, the Zero command line and the service accounts use the same API: same request, same scope, same authorization.
person · service account · agent
Every publication, instance resize and rollback in the project, newest first.
| Deployment | Status | Source | Author | Duration |
|---|---|---|---|---|
| Loja · loja-web #10 | Publishing | 4f2c1ab | ||
| Loja · loja-web #9 | Failed | b71d0e4 | ||
| Loja · loja-web #8 | Live | 9a3c55e | ||
| Loja · catalogo-api #7 | Live | 6c0be21 | ||
| Loja · loja-web #6 | Replaced | 1d77a90 |
Every publication, instance resize and rollback stays in the project history — newest first.
Publishing
Now: Building the image
- Step 1 of 9, completedCode pinned
- Step 2 of 9, in progressImage built · in progress
- Step 3 of 9, pendingIntegrity confirmed
- Step 4 of 9, pendingVersion recorded
- Step 5 of 9, pendingConfiguration prepared
- Step 6 of 9, pendingApplied to the environment
- Step 7 of 9, pendingApplication confirmed
- Step 8 of 9, pendingResponding
- Step 9 of 9, pendingLive
- Environment
- PROD
- Type
- Publication
- Commit
4f2c1ab- Service
- loja-web
- Requested by
- Marina Prado
- Live now
- Deployment 8
- Evidence
- Configuration applied
Verifying
Now: Confirming the application
- Step 1 of 9, completedCode pinned
- Step 2 of 9, completedImage built
- Step 3 of 9, completedIntegrity confirmed
- Step 4 of 9, completedVersion recorded
- Step 5 of 9, completedConfiguration prepared
- Step 6 of 9, completedApplied to the environment
- Step 7 of 9, in progressApplication confirmed · in progress
- Step 8 of 9, pendingResponding
- Step 9 of 9, pendingLive
- Environment
- PROD
- Type
- Publication
- Commit
4f2c1ab- Service
- loja-web
- Requested by
- Marina Prado
- Live now
- Deployment 8
- Evidence
- Configuration applied
Live
- Step 1 of 9, completedCode pinned
- Step 2 of 9, completedImage built
- Step 3 of 9, completedIntegrity confirmed
- Step 4 of 9, completedVersion recorded
- Step 5 of 9, completedConfiguration prepared
- Step 6 of 9, completedApplied to the environment
- Step 7 of 9, completedApplication confirmed
- Step 8 of 9, completedResponding
- Step 9 of 9, completedLive
- Environment
- PROD
- Type
- Publication
- Commit
4f2c1ab- Service
- loja-web
- Requested by
- Marina Prado
- Live now
- Deployment 10
- Evidence
- Address confirmed
loja-web in production · requests, error rate and p95 latency in the selected window.
- Requests
- 5xx
- No traffic
- No data
Publications in project Loja, newest first.
4f2c1abb71d0e49a3c55e6c0be211d77a90Publishing
- Step 1 of 9, completedCode pinned
- Step 2 of 9, in progressImage built · in progress
- Step 3 of 9, pendingIntegrity confirmed
- Step 4 of 9, pendingVersion recorded
- Step 5 of 9, pendingConfiguration prepared
- Step 6 of 9, pendingApplied to the environment
- Step 7 of 9, pendingApplication confirmed
- Step 8 of 9, pendingResponding
- Step 9 of 9, pendingLive
Verifying
- Step 1 of 9, completedCode pinned
- Step 2 of 9, completedImage built
- Step 3 of 9, completedIntegrity confirmed
- Step 4 of 9, completedVersion recorded
- Step 5 of 9, completedConfiguration prepared
- Step 6 of 9, completedApplied to the environment
- Step 7 of 9, in progressApplication confirmed · in progress
- Step 8 of 9, pendingResponding
- Step 9 of 9, pendingLive
Live
- Step 1 of 9, completedCode pinned
- Step 2 of 9, completedImage built
- Step 3 of 9, completedIntegrity confirmed
- Step 4 of 9, completedVersion recorded
- Step 5 of 9, completedConfiguration prepared
- Step 6 of 9, completedApplied to the environment
- Step 7 of 9, completedApplication confirmed
- Step 8 of 9, completedResponding
- Step 9 of 9, completedLive
loja-web in production · requests, error rate and p95.
Zero runs on NNumbers’ own infrastructure, operated by NNumbers — you do not need to buy [N]umbersCloud to use Zero. Whoever publishes does not get, nor need, administrative access to it. Consumption is measured from the first publish.
The eight concepts
Concept 08 of 08
Bring a repository.
Watch the publish fail.
You point us at one of your team’s applications. We show the steps, the address and what the screen says when something goes wrong.
Talk to NNumbers