What Is Infrastructure? Compute, Networking and Storage
What infrastructure does
Infrastructure is the collection of resources that an application depends on to run and communicate. A website needs somewhere to execute its program, a way for requests to reach that program, and somewhere to keep information that must survive a restart. These needs correspond to compute, networking and storage. Terraform can describe and manage many such resources, but it does not replace your application code.
Three building blocks
Compute runs instructions. A physical server, a virtual machine or a managed execution service can provide compute. Networking connects components and controls how traffic reaches them. Storage retains information, for example website images or database files. A single service can combine these responsibilities; the categories describe functions, not rigid product types.
Example: a small bookshop website
Imagine a bookshop that displays a catalog. A server runs the website program. A network connection lets a browser request a page. Persistent storage holds the catalog. This is a simplified architecture, not a deployment instruction. The database software that reads the catalog also needs compute.
Paper inventory
- Compute: one application server.
- Networking: a path from the visitor to the website.
- Storage: a retained book catalog.
Trace a request
- A customer requests the catalog page.
- Networking delivers the request to the application.
- Compute runs the program, which reads the stored catalog.
- The program returns the page through the network.
If the application process stops, requests may fail even though the catalog still exists. If the network path breaks, a healthy program can become unreachable. If persistent storage is lost, restarting the program may not recover the catalog.
A second example: a photo gallery
Classify a running image-resizing program as compute, the connection that carries an upload as networking, and the retained original photos as storage. Some managed platforms hide the underlying machines, but the responsibilities still exist.
Where Terraform fits
A resource is an object Terraform can manage, such as a network or a server, when the relevant integration supports it. Terraform is an infrastructure management tool, not the website itself. You may still need application deployment, monitoring and backups. These will be introduced separately.
Common mistake: storage and memory are the same
A program can keep a value temporarily in memory, but that does not mean it is stored durably. Choose persistence based on recovery requirements; even persistent storage needs an appropriate backup strategy.
Practice and next step
For a fictional recipe website, classify the running web program, the connection to a visitor, and the saved recipe collection. Then name one failure for each category. Next, learn why describing these resources in code is more repeatable than setting them up by hand.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
What Is Infrastructure? Compute, Networking and Storage — knowledge check
Check the mental models and decisions introduced in this lesson.
Which component runs the website program?
A working server cannot receive requests because its connection is broken. Which responsibility is affected most directly?
Which part of a photo service keeps original photos after an application restart?
What can Terraform manage when an appropriate integration exists?
Why can a saved catalog still exist when the website is unavailable?