AWS in 1 Min · Episode 187

Microservices on AWS: small services that own their data

Small services, each owns its data. Watch the one-minute video, then read the details.

David Gomez1:15 video · 2 min read

"Microservices make every app better." Not every app. Split a simple app too early and you trade one deployment for twenty, one log file for twenty, and function calls for network calls that can fail. Microservices solve real problems for teams that have them. Here's what they are, how they run on AWS, and when they pay off.

What a microservice is

A microservice is a small service that does one business job: orders, payments, search, notifications. Three rules make it work:

  • It owns its data. No other service reads or writes its database. Others ask through its API. This is what lets a team change its schema without breaking anyone.
  • It deploys independently. The search team ships on its own schedule; a bug in search doesn't take down checkout.
  • It has a clear contract: an API or a set of events that other teams can rely on.

How services talk

  • Synchronous (request and response) when the caller needs an answer now: REST or gRPC, often through Amazon API Gateway or a load balancer.
  • Asynchronous when work can wait: events through EventBridge, messages through SQS or SNS fan-out. The producer doesn't wait, and a slow consumer doesn't slow it down.

Prefer events between services where you can; long chains of synchronous calls multiply latency and failure.

Running microservices on AWS

  • Compute: Amazon ECS or Amazon EKS for containers, often on Fargate, or AWS Lambda for event-driven services.
  • Front door: API Gateway or an Application Load Balancer routing by path or host.
  • Data: each service picks its own store, such as DynamoDB for one and Aurora for another.
  • Observability: with a request crossing several services, you need distributed tracing (for example OpenTelemetry with CloudWatch) to follow one request end to end.

When not to split

Microservices add network failures, copied data, versioned APIs and more infrastructure to run. A small team with one product is usually better served by a well-structured single app (a "modular monolith") with clean internal boundaries. Split out a service when a part needs to scale, deploy or be owned separately. A common mistake is splitting by technical layer (a "database service", a "validation service") instead of by business capability, which creates chatty services that must always change together.

Where AI fits

AI agents follow the same logic. Instead of one giant agent with fifty tools, build small, focused agents: one for billing questions, one for research, one for support, each with its own tools and permissions. Amazon Bedrock AgentCore Runtime hosts each agent as its own deployable unit, and it supports the Agent-to-Agent (A2A) protocol, an open standard that lets agents discover each other and delegate work. Smaller agents are easier to test, secure and replace, just like smaller services.

Quick recap

  • One business job per service, deployed independently.
  • Each service owns its data; others use its API or events.
  • Split only when it pays off; agents benefit from the same small, focused design.
AWS in 1 Min #187 · 1:15

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS