Lambda or ECS on Fargate for a .NET API?

Talk it through out loud with your AI coach.

The problem

  • easy

Your team is moving an ASP.NET Core API to AWS and must choose between AWS Lambda and Amazon ECS on Fargate. Explain how the two differ and which you'd pick for a quiet internal tool and for a busy public API with WebSocket connections.

What a strong answer covers

  • How each service runs your code and charges for it.
  • The constraints that matter for a web API.
  • Matching each workload to the better fit, with reasons.

Common mistake: Choosing Lambda for everything because it's serverless, without checking traffic shape or connection needs.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud