Select Cloud Services from Requirements

Choosing AWS services by workload need: compute choices between Lambda, ECS and EKS, messaging choices between SQS, EventBridge and Kinesis, cloud trade-offs, and when not to migrate.

  • Intermediate to advanced
  • About 21 minutes
  • Includes an exercise and a knowledge check

The concept Moving to AWS is not a design

We are moving everything to AWS says nothing about which services to use, or whether migration is needed at all. Start from Apex's requirements: API integrations, background payment processing, scheduled settlement ingestion, transactional storage, file storage, monitoring, secure access, recovery and auditability.

Candidate AWS services organized by workload need. API access: API Gateway. Compute: Lambda for short event-driven work, ECS for long-running containers, EKS only with Kubernetes needs. Async work queue: SQS. Event routing: EventBridge. Streaming: Kinesis Data Streams for continuous, multi-consumer workloads. Relational data: RDS or Aurora. Files and artifacts: S3. Multi-step workflow: Step Functions. Observe and secure: CloudWatch, IAM and Secrets Manager. Not every row is needed.
A menu to choose from, not a list to buy. Each service is a candidate chosen by workload.

Compute Lambda, ECS or EKS?

ServiceConsider it when
AWS LambdaProcessing is event-driven, runs within the platform's time limits, is intermittent or bursty, and operational simplicity matters
Amazon ECSThe application is containerized, needs long-running workers or more runtime control, without managing Kubernetes
Amazon EKSKubernetes capabilities are required, the organization has platform expertise and standards, and the workload justifies the complexity

Messaging SQS, EventBridge or Kinesis?

ServiceWhat it isOrdering, retention and replay
Amazon SQS StandardA work queue: each message is processed by one consumer, at least once, so a message can arrive twiceBest-effort ordering only. Messages are kept up to 14 days (4 by default) and are gone once deleted, so there is no replay
Amazon SQS FIFOA work queue that keeps order within a message group and drops repeats sent within a five-minute deduplication windowStrict order per message group, such as one loan. Lower throughput limits than Standard unless high-throughput mode is turned on. Same retention, no replay
Amazon EventBridgeAn event router: rules send each event to one or more targets. It is not a work queue; put an SQS queue behind it when work must be buffered and retriedNo ordering guarantee. Events can be archived and replayed from the archive if you set one up
Amazon Kinesis Data StreamsA stream that several consumers read independently, each at its own positionOrdered within a shard; the partition key, such as a loan ID, decides the shard. Kept 24 hours by default, up to 365 days, and consumers can replay from any retained position

They overlap but are not interchangeable. Compare ordering, retention, replay, throughput, consumer behavior, delivery semantics, operational support and cost. None of them prevents a duplicate financial effect on its own: FIFO deduplication only covers five minutes, and every option can deliver a message more than once in some failure case. Idempotent processing is still the consumer's job.

Trade-offs What else to weigh

  • Managed services versus self-managed infrastructure.
  • Serverless versus containers.
  • One region versus several regions.
  • Public versus private networking.
  • Encryption and key management; identity and access control.
  • Backup, recovery and monitoring.
  • Cost and usage patterns; vendor dependency; the team's operational expertise.

Practice Choose the compute

Practical exercise

Three workers, three choices

Pick Lambda, ECS or EKS for each worker and say why.

  1. A function that validates each settlement file when it lands in storage, finishing in seconds.
  2. A worker that processes payment events continuously all day.
  3. A platform team already running 40 services on Kubernetes asks to host the new reconciliation service.
Show sample answers
  • File validation: Lambda; short, event-driven and intermittent.
  • Continuous worker: ECS; long-running containers without Kubernetes overhead.
  • Existing Kubernetes estate: EKS may now be justified, because the expertise and standards already exist.

3 questions

Check your understanding

1. When is Amazon EKS justified over a simpler option?
2. Which service fits an asynchronous work queue?
3. A customer wants to move a reliable on-premises database to the cloud. What first?
Answer every question to submit.

What you can do now

  • Map workload needs to candidate AWS services.
  • Choose between Lambda, ECS and EKS.
  • Choose between SQS, EventBridge and Kinesis.
  • Question migrations that lack a reason.