Cloud costs are often discussed as if they were mainly a procurement problem: how many virtual machines are running, which instance types are being used, whether reserved capacity is available, or whether another cloud provider might offer a lower price.
Those questions matter, but they describe only part of the cost of operating a software product.
Architecture determines how much infrastructure is required, how many moving parts need to be operated, how much engineering effort is spent keeping those components healthy, and how easily the system can absorb changes in traffic or workload.
For technology leaders, this means that the monthly cloud invoice is only one part of the economic picture. The more useful measure is the total operational cost created by the architecture.
This is one area where platforms such as Ruby on Rails and Elixir/Phoenix can lead to different architectural choices.
Rails has helped thousands of companies build products quickly and remains an effective choice for many applications. As products become more concurrent, more real-time, and more dependent on asynchronous activity, however, teams may need to introduce additional infrastructure to support those workloads.
Elixir and Phoenix approach concurrency and fault isolation differently. That does not mean an Elixir system will automatically be cheaper, nor does it remove the need for queues, brokers, caches, databases, or other infrastructure.
It does mean that technology leaders should understand how the application platform influences the system they ultimately have to operate.
The cloud bill is only the visible part of the cost
Consider a product that begins as a relatively straightforward web application. It handles requests, stores data in a database, and performs some background processing. As the product develops, new requirements emerge.
Users expect notifications immediately. Dashboards become live. External systems need to remain synchronized. Long-running work needs to happen asynchronously. The application must support increasing numbers of simultaneous connections.
Those requirements often introduce new infrastructure.
A team may add background workers, queues, Redis, message brokers, WebSocket infrastructure, more application instances, schedulers, autoscaling policies, or additional monitoring.
Every component may be entirely justified. But each component creates more than a line item on the cloud bill. It also creates an operational responsibility.
Someone must understand how it behaves, monitor it, upgrade it, investigate failures, manage capacity, and understand its relationship with the rest of the system.
The economic question is therefore not simply: How much infrastructure are we paying for?
It is: How much architecture are we paying to operate?
Concurrency models influence the architecture around the application
Concurrency becomes particularly important as applications move beyond simple request-and-response workloads.
An application may need to maintain thousands of active connections, coordinate background activity, react to events, or keep workflows active over long periods.
Elixir runs on the BEAM virtual machine, which was designed around large numbers of lightweight, isolated processes communicating through message passing. This allows applications to represent many concurrent activities directly within the runtime.
A user connection, integration workflow, background activity, or independent piece of state can often be represented as its own process without requiring a dedicated operating-system process or separate service for every activity.
This matters because the way an application handles concurrency influences the architecture that develops around it.
If a workload is difficult to manage inside the application platform, teams may move it into separate workers or services. They may introduce queues to coordinate work, caches to reduce pressure elsewhere, or additional application instances to support different workload types.
Those may still be the right solutions in an Elixir architecture. A message broker may be essential for durable cross-system communication. A queue may be necessary for persisted jobs. A cache may be valuable for performance.
The difference is that architects have more options for deciding which activities genuinely require separate infrastructure and which can remain within the application runtime.
For management, the important question is therefore not whether one runtime can handle more connections than another in an artificial benchmark. It is whether the concurrency model changes the amount of infrastructure and operational complexity required to deliver the product.
Count the operational moving parts
Software architectures tend to accumulate components gradually.
A background job system solves one requirement. A cache improves another. A queue decouples two systems. A new service isolates a workload. A scheduler manages recurring activity. Another monitoring component is added to observe everything.
Individually, these decisions may be reasonable. Collectively, they determine how complicated the product becomes to operate.
Every additional service typically needs deployment, monitoring, logging, security configuration, runtime management, and ownership. Network communication introduces retries, timeouts, partial failures, and compatibility concerns.
Queues and worker systems create another set of operational questions. How are retries handled? What happens when processing falls behind? How is overload detected? How are duplicate jobs managed?
Caches introduce their own concerns around invalidation, stale state, availability, and capacity. The problem is not that services, queues, workers, or caches are undesirable. Large systems often need all of them.
The management question is whether each component exists because the product genuinely requires that architectural boundary or because another part of the architecture cannot comfortably handle the workload.
That distinction matters because infrastructure has a compounding effect. The cost of adding one managed service may appear small, but the organization must also understand how that service interacts with every other component.
A system with more moving parts has more combinations of possible failure modes, more dependencies during deployment, and more systems that engineers must understand during an incident.
Cloud platforms have made infrastructure easy to provision. They have not made architectural complexity free.
Total operational cost includes engineering time
This is why cloud spending should not be evaluated in isolation.
Imagine two architectures. One costs €30,000 per month in cloud infrastructure and another costs €35,000.
Looking only at the invoice, the first architecture appears cheaper. But suppose it also requires substantially more engineering effort to operate worker fleets, troubleshoot queues, maintain caches, manage deployments across services, or investigate production incidents.
The cheaper infrastructure may produce the more expensive system.
A more realistic view of cost therefore includes several dimensions: Cloud infrastructure + platform engineering + operational maintenance + incident response + scaling complexity
For many software companies, engineering time is far more expensive than individual infrastructure components.
If architectural complexity consumes a meaningful part of a senior engineering team’s capacity, the cost can quickly exceed relatively small differences in hosting expenditure.
It also creates an opportunity cost. Engineers maintaining operational complexity are not building customer-facing functionality.
For technology leaders, this makes architecture a resource-allocation question as much as a technical one.
Reliability has an operational cost too
Architecture also affects how much human intervention is required when something fails.
Elixir applications commonly organize processes using supervision trees. Individual components can fail independently and be restarted according to defined strategies rather than forcing engineers to treat every local failure as an application-wide event.
This does not make Elixir applications immune to outages, and supervision does not replace good distributed-system design. But failure isolation can reduce the operational consequences of some classes of problem.
From a management perspective, the relevant metric is not whether failures occur. It is how much engineering effort is required to detect, contain, and recover from them.
Measure cost per capability
One of the most useful ways to evaluate architectural economics is to change the unit of comparison.
Instead of asking: How much does this server cost?
Ask: What does it cost us to deliver this product capability?
For example:
- What architecture is required to support 100,000 simultaneous users?
- What is required to deliver live updates to a large connected user base?
- How many components participate when an event enters the system and produces a business outcome?
- What infrastructure is required to process asynchronous work reliably?
- What happens to operating cost when the workload grows by five or ten times?
Two products may deliver the same customer experience while using very different combinations of application instances, worker pools, services, caches, brokers, and orchestration.
The economically meaningful comparison is therefore the complete system required to deliver the capability.
This is also where Elixir can become strategically interesting.
If a platform allows some concurrent, stateful, or asynchronous behaviour to be handled without introducing additional architectural layers, the benefit may appear not only in server utilization but in fewer operational moving parts.
That benefit should be measured rather than assumed.
Elixir is not automatically the cheaper architecture
There is an important counterweight to this argument. Introducing another technology ecosystem also has a cost.
Teams need Elixir expertise. Existing libraries, tooling, and operational knowledge may already be concentrated around Ruby or another platform. Running multiple application stacks may add organizational complexity rather than reduce it.
A straightforward Rails application with predictable workloads and an experienced team may be extremely economical to operate.
Conversely, an Elixir application can still be poorly designed, over-engineered, or dependent on a large number of external systems.
Elixir does not eliminate the need for message brokers, durable queues, caches, databases, orchestration, or separate services where those components solve real architectural problems.
The relevant question is therefore not: Is Elixir cheaper than Rails?
It is: Does the architecture let us deliver our required capabilities with a lower total operational cost?
For workloads involving significant concurrency, real-time interaction, continuous background activity, or strong requirements around isolation and recovery, the answer may justify investigation.
For simpler workloads, the architectural advantage may be much less significant.
Questions technology leaders should ask their teams
Management teams do not need to become infrastructure specialists, but they should ask questions that reveal where operational complexity is accumulating:
- Which infrastructure components exist because of genuine product requirements, and which compensate for limitations elsewhere in the architecture?
- How many services, workers, queues, caches, brokers, and schedulers are required to deliver our core capabilities?
- Which parts of the architecture consume the most engineering time to operate and maintain?
- What happens to that architecture if concurrent usage grows by five or ten times?
- How much engineering capacity is spent on operational complexity rather than product development?
- What is our total operational cost when engineering effort and incident response are included alongside the cloud invoice?
- If we designed the system again today, which infrastructure layers would we still choose?
The answers are often more informative than comparing hosting bills.
Architecture determines the system you have to operate
Ruby on Rails became successful for a good reason: it helped teams turn ideas into products quickly, and for many applications that productivity remains highly valuable. But as products evolve, new workloads can place different demands on the architecture.
As concurrency grows, real-time interaction becomes more important, and asynchronous activity increases, organizations may introduce workers, queues, caches, brokers, services, and orchestration around the application.
Those components can all solve legitimate problems. They also become part of the system the organization must pay for, understand, maintain, and operate.
Elixir and Phoenix offer technology leaders another architectural option because concurrency, process isolation, asynchronous communication, and failure recovery are fundamental concepts within the platform.
That does not guarantee lower cloud costs or a simpler system. But it can change which infrastructure components are necessary and which architectural boundaries are optional.
The most useful question for management is therefore not: Which technology gives us the lowest cloud bill?
It is: Which architecture lets us deliver the capabilities our product needs with the lowest sustainable operational cost over its lifetime?
