# Micro Service - Mega Cost: Architectural Styles and Their Hidden Price Tags

- Speaker: [Devora Roth Goldshmidt](/wiki/speakers/devora-roth-goldshmidt.md)
- Event: [Reversim Summit 2025](/wiki/years/2025.md)
- Video: https://www.youtube.com/watch?v=n53OrKRjHUI
- Transcript: [/transcripts/2025/54-n53OrKRjHUI.md](/transcripts/2025/54-n53OrKRjHUI.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Cloud Computing](/wiki/topics/cloud.md), [Architecture](/wiki/topics/architecture.md), [Distributed Systems](/wiki/topics/distributed-systems.md), [Microservices](/wiki/topics/microservices.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker explores the hidden financial costs of architectural decisions in large-scale cloud systems. Through a real-world financial transaction processing system example, the speaker illustrates how moving from a monolith to distributed microservices introduces unexpected expenses like cross-AZ network traffic, encryption overhead, and capacity mismatches. The audience learns a practical framework based on service granularity and management level to design cost-aware architectures from day one.

## Key points

- [7:44](https://www.youtube.com/watch?v=n53OrKRjHUI&t=464s) The system started as a simple, cost-effective monolith when traffic and scale were low.
- [14:48](https://www.youtube.com/watch?v=n53OrKRjHUI&t=888s) As traffic scaled with high workload variance, the monolith resulted in heavy over-provisioning and lower cost-effectiveness.
- [22:52](https://www.youtube.com/watch?v=n53OrKRjHUI&t=1372s) Breaking the system into microservices improved flexibility and availability, but introduced unexpected networking and infrastructure costs.
- [24:50](https://www.youtube.com/watch?v=n53OrKRjHUI&t=1490s) Cross-AZ communication and internal data shuffling in distributed systems can double data transfer expenses if left unoptimized.
- [26:53](https://www.youtube.com/watch?v=n53OrKRjHUI&t=1613s) Multi-threaded encryption key caching issues led to quadratic cost increases in key management services.
- [28:03](https://www.youtube.com/watch?v=n53OrKRjHUI&t=1683s) Serverless and managed services can reduce costs for low-utilization components, but understanding the billing metric is crucial to avoid expensive traps.
- [29:08](https://www.youtube.com/watch?v=n53OrKRjHUI&t=1748s) Architectures should be evaluated along two dimensions: service granularity and management level to maintain cost awareness.

## Takeaways

- Monitor cloud usage and cost reports regularly to catch architectural cost inefficiencies early.
- Evaluate workload variance before choosing between a monolith and distributed microservices.
- Understand the exact billing metrics of serverless and managed cloud services before adoption.

## Questions this talk answers

- When is the right time to transition a monolithic cloud application into microservices from a cost perspective?
- How can you prevent hidden cross-AZ and data transfer expenses in distributed architectures?
- What factors should be considered when deciding whether to use serverless services versus provisioned clusters?

## Technologies

AWS, Kubernetes, Kafka, OpenSearch, DynamoDB, Lambda, TimeScaleDB

## Tags

aws, cloud architecture, cost optimization, distributed systems, microservices, serverless
