Deployment Topology and Infrastructure Architecture

Logical versus deployment architecture, candidate AWS services, serverless, container and hybrid options, network boundaries and environment separation.

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

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.

On the left, a photo of tall orange ship-to-shore cranes at a container port. On the right, the logical view lists six parts: payment ingestion, settlement ingestion, normalization, reconciliation, exception management, audit and reporting. The deployment view, to start, puts all six as modules in one application deployment run as two or more copies for availability, plus a durable queue, a relational database and file storage. Do not give every logical component its own server, container or microservice.
Many goods, few containers. Several logical parts can share one deployment.

Candidates, not a checklist AWS services by requirement

Apex asked for an AWS-based reference architecture. These are candidates; choose from the actual requirements.

RequirementPossible AWS serviceFits when
External API entryAmazon API GatewayProviders and users need a managed, authenticated, rate-limited entry
Serverless processingAWS LambdaEvent-driven work fits its execution time and concurrency limits
Containerized applicationAmazon ECS or EKSServices run continuously or need full runtime control
Durable work queueAmazon SQSWork must survive failures and be processed asynchronously
Event routingAmazon EventBridgeEvents must be routed to several consumers by rules
High-volume streamingAmazon KinesisContinuous high-volume streams are genuinely needed
Relational transactionsAmazon RDS or AuroraRecords need transactions, constraints and relationships
Object and file storageAmazon S3Settlement files and raw payloads must be kept durably
Long-running workflowAWS Step FunctionsSteps need explicit states, retries and recovery
MonitoringAmazon CloudWatchLogs, metrics and alarms in one place
Secrets and keysAWS Secrets Manager, AWS KMSCredentials rotate and data is encrypted with managed keys
Identity and permissionsIAM and the customer identity providerEvery service and user has scoped permissions

Three models Deployment options

OptionTypical componentsAdvantagesTrade-offs
A. Serverless-firstAPI Gateway, Lambda, SQS, EventBridge, RDS or DynamoDB, S3, CloudWatchManaged infrastructure, event-driven scaling, little server managementExecution limits, concurrency control, cold starts, harder tracing, database connection management, service limits and cost behavior
B. Container-basedECS services, API Gateway or a load balancer, SQS or EventBridge, RDS or Aurora, S3, CloudWatchFlexible runtime, control of process lifecycle, suits continuously running workersContainer operations, capacity management, deployment orchestration, scaling and availability setup
C. HybridServerless ingestion and orchestration, containers for long or specialized processingFlexibility, independent scaling, the right runtime per jobMore variety, more operational knowledge, more integration and deployment complexity
One candidate container-based AWS topology for Apex. Outside AWS: Provider A webhooks, Provider B, the bank’s scheduled file and finance users. Public entry: Amazon API Gateway for notifications and the finance interface with rate limits, and an Amazon S3 landing bucket for settlement files. Private application in private subnets: the reconciliation application on Amazon ECS with two or more tasks holding ingest, normalize, match and cases modules; AWS Step Functions for the file workflow; Amazon SQS work queue with a dead-letter queue. Protected data: Amazon RDS or Aurora with no public access, and Amazon S3 for encrypted raw payloads and files. Shared: IAM roles per service, AWS Secrets Manager, AWS KMS keys and Amazon CloudWatch. One candidate, not a checklist.
One candidate deployment. Each box needs a requirement that justifies it, and a rejected alternative.

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.

  1. The AWS deployment topology with network and trust zones.
  2. The runtime choices, and the data and messaging infrastructure.
  3. Environment separation and deployment and configuration boundaries.
  4. 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

1. What does a deployment architecture show that a logical architecture does not?
2. When is Amazon Kinesis justified for Apex?
3. Where should the reconciliation database sit?
Answer every question to submit.

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.