Software stack

Also known as: tech stack

On this page 7

A software stack is the ordered set of software layers that work together to deliver a running application, from the operating system at the bottom through runtimes, libraries, frameworks and data services to the application code at the top. In software fundamentals, the term describes how components depend on each other: each layer consumes services from the layer below and offers a narrower, more specialized interface to the layer above.

The everyday synonym tech stack often widens the meaning to include programming languages, build tools and hosting services chosen by a team. In both senses, the stack is a set of deliberate choices that determines performance, security exposure, hiring needs and the cost of future change.

How the layers of a software stack depend on each other

A software stack works through layered abstraction, in which every layer hides the details of the one beneath it. The application code calls a framework, the framework calls libraries, the libraries call the runtime or language interpreter, and the runtime issues system calls to the operating system kernel, which finally drives the hardware.

This arrangement creates a chain of dependencies. A change at a lower layer, such as an upgraded C library or a new kernel version, can alter behavior in every layer above it, while a change near the top usually affects only that application. Engineers therefore treat lower layers as slow-moving foundations and upper layers as the place for frequent change.

The table below lists the typical layers of a server-side stack, from bottom to top, with examples of the software found in each.

LayerRoleTypical examples
Hardware or virtual machineProvides CPU, memory, storage and networkPhysical server, cloud instance
Operating systemManages processes, files, memory and devicesLinux, Windows Server, FreeBSD
Runtime or interpreterExecutes program code and manages memoryJVM, .NET runtime, Node.js, CPython
Data servicesStore, cache and query persistent dataPostgreSQL, MySQL, Redis
Libraries and frameworksSupply reusable logic and application structureSpring, Django, Express, React
Application codeImplements the business functionsCustom services, user interfaces
Typical layers of a server-side software stack

Common named stacks and their components

Several stacks became so widespread that they carry acronym names formed from their components. These names are shorthand for a proven combination in which the parts are known to integrate well, which reduces integration risk for new projects.

The comparison below shows four well-known web stacks and where each one fits best.

StackComponentsPrimary languageTypical fit
LAMPLinux, Apache, MySQL, PHPPHPContent sites and classic web hosting
MEANMongoDB, Express, Angular, Node.jsJavaScriptSingle-page applications with JSON data
MERNMongoDB, Express, React, Node.jsJavaScriptInteractive front ends with a shared language
.NET stackWindows or Linux, ASP.NET Core, SQL ServerC#Enterprise systems in Microsoft environments
Well-known named web stacks compared

Named stacks are conventions, not standards. Teams routinely substitute single components, for example PostgreSQL for MySQL or Nginx for Apache, and the result is still described loosely by the original name. A stack name therefore says less about a system than an explicit component inventory with version numbers.

A software stack is the whole vertical arrangement of layers, whereas neighboring terms in software fundamentals describe single parts of it. Confusing these terms leads to imprecise architecture discussions and incomplete documentation.

ConceptScopeRelation to the stack
Software stackAll layers from operating system to applicationThe complete arrangement
Software frameworkOne structural layer that calls application codeA single component inside the stack
Software libraryReusable functions called by application codeA building block within a layer
RuntimeExecution environment for compiled or interpreted codeA middle layer of the stack
PlatformA base that others build on, often a managed serviceMay bundle several lower layers
How a software stack differs from neighboring terms

The distinction between system software and application software maps directly onto the stack: system software occupies the lower layers, and application software occupies the top. Front-end and back-end stacks are sometimes listed separately, and a full-stack developer is one who works competently across both.

Choosing and documenting a software stack

Selecting a stack is a long-term architectural decision, because replacing a lower layer later often requires rewriting large parts of the system. The decision should weigh team skills, ecosystem maturity, licensing terms, hosting options and the expected support lifetime of each component.

The following decision table relates common project situations to a sensible stack strategy.

SituationRecommended strategyReason
Small team, fast prototypeOne language across front end and back endFewer skills to hire and maintain
Regulated enterprise systemComponents with long-term support releasesPredictable patches over many years
High-traffic public serviceProven runtime with mature observability toolsEasier diagnosis under load
Legacy integration projectMatch the stack already in productionAvoids duplicated operations work
Short-lived campaign siteManaged platform with minimal custom layersLower maintenance burden
Stack selection by project situation

Good practice is to record the stack in a versioned inventory: each component, its exact version, its license and its end-of-support date. Package manifests, lock files and container images make the stack reproducible, and a software bill of materials (SBOM) in formats such as SPDX or CycloneDX lets security teams check every component against known vulnerabilities.

Limitations, risks and common mistakes

Every layer in a software stack adds attack surface and maintenance cost, so a deeper stack is not automatically a better one. The most frequent problems stem from unmanaged dependencies rather than from the main components themselves.

  • Version drift: development, test and production run different component versions, so defects appear only after release.
  • Transitive dependencies: a library pulls in dozens of indirect packages that nobody reviews, and one flaw can affect the whole system.
  • End-of-life components: an operating system or runtime stops receiving security patches while the application still depends on it.
  • Fashion-driven choices: a team adopts a new framework for novelty and later struggles with immature tooling and scarce expertise.
  • Vendor lock-in: proprietary managed services make migration to another provider slow and expensive.

A practical safeguard is to schedule regular dependency updates in small increments, supported by automated tests, instead of postponing upgrades until several major versions have accumulated.

A non-technical view

Think of a software stack as a building with several floors. The foundation is the operating system, the middle floors hold the tools that run programs and store data, and the top floor is the app that people actually use. Each floor rests on the one below it.

If the foundation shifts, every floor above can crack, which is why engineers change the lower layers carefully. The key idea is that an application never works alone: it always depends on a carefully chosen pile of other software underneath.

A concrete example

A regional online bookstore runs its shop on Ubuntu Linux, the Nginx web server, the Node.js runtime, the Express framework, a PostgreSQL database and a React storefront. Its team of four developers chose this stack because one language, JavaScript, covers both front end and back end, so any developer can fix any part of the site.

Two years later, the Node.js version in production reaches its end of support. Because the team keeps a versioned inventory and container images, it upgrades the runtime in a test environment, runs its automated tests, fixes two incompatible libraries and deploys within a week. The upgrade causes no downtime, and the store continues to receive security patches through the busy holiday season.