The concept What it is, and where it runs
A logical architecture explains the responsibilities of the components and how they relate. A deployment architecture explains where they actually run. They are different diagrams. Your logical design may contain ingestion, normalization, reconciliation and exception management, while the deployment places several of them in one application. That is perfectly reasonable when the operational requirements support it.
Candidates, not a checklist AWS services by requirement
Apex asked for an AWS-based reference architecture. These are candidates; choose from the actual requirements.
| Requirement | Possible AWS service | Fits when |
|---|---|---|
| External API entry | Amazon API Gateway | Providers and users need a managed, authenticated, rate-limited entry |
| Serverless processing | AWS Lambda | Event-driven work fits its execution time and concurrency limits |
| Containerized application | Amazon ECS or EKS | Services run continuously or need full runtime control |
| Durable work queue | Amazon SQS | Work must survive failures and be processed asynchronously |
| Event routing | Amazon EventBridge | Events must be routed to several consumers by rules |
| High-volume streaming | Amazon Kinesis | Continuous high-volume streams are genuinely needed |
| Relational transactions | Amazon RDS or Aurora | Records need transactions, constraints and relationships |
| Object and file storage | Amazon S3 | Settlement files and raw payloads must be kept durably |
| Long-running workflow | AWS Step Functions | Steps need explicit states, retries and recovery |
| Monitoring | Amazon CloudWatch | Logs, metrics and alarms in one place |
| Secrets and keys | AWS Secrets Manager, AWS KMS | Credentials rotate and data is encrypted with managed keys |
| Identity and permissions | IAM and the customer identity provider | Every service and user has scoped permissions |
Three models Deployment options
| Option | Typical components | Advantages | Trade-offs |
|---|---|---|---|
| A. Serverless-first | API Gateway, Lambda, SQS, EventBridge, RDS or DynamoDB, S3, CloudWatch | Managed infrastructure, event-driven scaling, little server management | Execution limits, concurrency control, cold starts, harder tracing, database connection management, service limits and cost behavior |
| B. Container-based | ECS services, API Gateway or a load balancer, SQS or EventBridge, RDS or Aurora, S3, CloudWatch | Flexible runtime, control of process lifecycle, suits continuously running workers | Container operations, capacity management, deployment orchestration, scaling and availability setup |
| C. Hybrid | Serverless ingestion and orchestration, containers for long or specialized processing | Flexibility, independent scaling, the right runtime per job | More variety, more operational knowledge, more integration and deployment complexity |
Where traffic may go Network boundaries
The deployment diagram shows public entry points, private application components, where the database sits, external integration routes, egress controls, administrative access, and the secret and key dependencies. The database is never exposed to the public internet, and providers reach approved integration endpoints only, never the database.
More than production Separate environments
A typical delivery model has development, testing, staging (pre-production) and production. Each has its own configuration, identities and permissions, controlled data access, isolated secrets, deployment approval and, for production, monitoring. Do not use sensitive production data in development or testing unless that is explicitly authorized and protected.
Practice Design the deployment
Practical exercise
Exercise 07: deployment architecture and decisions
Design the Apex deployment and explain each selected service and at least one rejected alternative.
- The AWS deployment topology with network and trust zones.
- The runtime choices, and the data and messaging infrastructure.
- Environment separation and deployment and configuration boundaries.
- Operational ownership of each part.
Show sample decisions
- Runtime: ECS for the reconciliation application, because workers run continuously; Lambda rejected for matching runs that may exceed comfortable execution limits.
- Queue: SQS with a dead-letter queue; Kinesis rejected, as the workload is not a continuous high-volume stream.
- Database: RDS or Aurora relational, for transactions and unique constraints; DynamoDB rejected for the core ledger-like records.
- Ownership: the platform team runs the infrastructure; the application team owns the reconciliation service and its alarms.
3 questions
Check your understanding
What you can do now
- Tell logical architecture apart from deployment architecture.
- Choose AWS services from requirements and reject the unnecessary ones.
- Compare serverless, container and hybrid options.
- Define network boundaries and separate environments.