Executive Summary: Migrating a High-Concurrency Security Operations Platform to AWS
System Design
The platform uses Amazon CloudFront and Amazon S3 to deliver the Vue 3 user interface. CloudFront reduces repeated static-content requests and prevents front-end traffic from consuming the capacity reserved for monitoring APIs.
AWS WAF protects public entry points from common web attacks and abusive request patterns. Amazon API Gateway manages external device and integration APIs, including the public IP blacklist service. An Application Load Balancer routes internal and analyst-facing API traffic to the application services.
Spring Boot 3.2.6 microservices run on Amazon Elastic Kubernetes Service across multiple Availability Zones. Monitoring APIs, alert-processing services, aggregation workers, asset services, vulnerability services, and automated-response services are deployed independently so each workload can scale without affecting the others.
Amazon EKS maintains a minimum number of warm application pods for the latency-sensitive monitoring APIs. Horizontal Pod Autoscaler increases the number of pods according to CPU utilization, requests per second, active requests, and response latency. Karpenter or Cluster Autoscaler adds worker-node capacity when the existing cluster cannot schedule new pods.
Amazon ElastiCache for Valkey or Redis OSS is the primary low-latency data-delivery layer. It stores precomputed dashboard results, alert counters, asset-risk summaries, vulnerability statistics, public IP blacklists, authorization data, and other frequently requested values.
ElastiCache uses a Multi-AZ replication group with automatic failover. Cluster-mode sharding can distribute cache keys across multiple shards when throughput or memory demand exceeds a single shard. The cache contains reconstructable data rather than the only authoritative copy of business records.
Amazon Aurora PostgreSQL-Compatible Edition stores transactional information such as asset records, remediation workflows, user configuration, security policies, vulnerability status, and automation history. Aurora read replicas can serve reporting workloads, while write and transactionally consistent requests remain on the writer.
Amazon RDS Proxy can control database connection growth when EKS rapidly adds application pods. Each Spring Boot service also uses a bounded HikariCP connection pool so that application concurrency cannot exhaust Aurora connections.
Amazon Managed Streaming for Apache Kafka receives raw security alerts and distributes events to independent consumer groups. Separate topics carry raw alerts, normalized events, cache-update commands, risk changes, remediation requests, and device-response results.
Amazon Managed Service for Apache Flink or Spring Kafka consumers performs real-time normalization, correlation, windowed aggregation, and risk calculation. Continuously updated results are written to ElastiCache so that monitoring APIs do not calculate large aggregations during each request.
Amazon Timestream for InfluxDB provides a managed destination for time-series workloads that depend on InfluxDB-compatible clients, queries, retention behavior, and operational tooling. Compatibility and performance are validated against the existing InfluxDB version before production migration.
Amazon S3 stores immutable raw alerts, normalized security events, historical findings, and long-retention evidence. AWS Glue Data Catalog and Amazon Athena allow investigators to query historical data without placing analytical pressure on Aurora, ElastiCache, or the operational time-series database.
Amazon CloudWatch collects application metrics, infrastructure metrics, structured logs, and alarms. OpenTelemetry or AWS X-Ray traces requests across the load balancer, Spring Boot service, ElastiCache, Aurora, and Kafka path. The main service indicators are p50, p95, and p99 latency, successful requests per second, cache hit ratio, cache evictions, database connection utilization, and Kafka consumer lag.
AWS Identity and Access Management controls service permissions. AWS Secrets Manager stores database, cache, and integration credentials. AWS Key Management Service protects encryption keys. AWS CloudTrail records AWS API activity, while Amazon GuardDuty, AWS Security Hub, Amazon Inspector, and AWS Config support cloud threat detection, vulnerability management, finding aggregation, and configuration governance.
Data Flow
Ingestion and Processing Layer
- Services: Security devices, Amazon API Gateway, Application Load Balancer, Ingestion service, Amazon MSK, Normalization consumer, Real-time processor, Amazon S3
- Firewalls, scanners, and monitors send alerts through private connectivity or protected API endpoints.
- API Gateway or the Application Load Balancer routes each request to a Spring Boot service on Amazon EKS.
- The ingestion service validates the schema, assigns an event identifier, and publishes the raw event to Amazon MSK.
- MSK partitions by tenant, asset, device, or domain so related records stay ordered and unrelated records run in parallel.
- A consumer normalizes vendor fields and enriches the event with asset, ownership, vulnerability, and threat-intelligence context.
- The real-time processor evaluates rules, correlates events, calculates risk, and updates rolling alert windows.
- Raw and normalized events are written to Amazon S3 for retention, audit, replay, and investigation.
- Alert bursts stay on the stream path and do not block the monitoring APIs.
Data Serving Layer
- Services: Real-time processor, Amazon Timestream for InfluxDB, Amazon Aurora PostgreSQL, Aggregation service, Amazon ElastiCache, Monitoring API, Blacklist API, Amazon CloudWatch
- The processor writes observations to Timestream and workflow state to Aurora.
- The aggregation service builds compact dashboard views and writes them to ElastiCache.
- The monitoring API authenticates the caller, builds a versioned cache key, and reads ElastiCache.
- A cache hit returns the precomputed view without scanning operational tables.
- On a miss, one worker rebuilds the key while other requests use a recent stale value or wait briefly.
- The worker reads a bounded dataset from Aurora or Timestream, writes it to ElastiCache with jittered expiry, and returns it.
- Urgent changes, such as a new malicious IP address, update ElastiCache immediately. Broader views refresh on the five-minute schedule.
- CloudWatch records latency, cache hit ratio, evictions, consumer lag, and database connection use.
Application Scaling Layer
- Services: Vue 3, Amazon CloudFront, Amazon S3, Monitoring API, Amazon EKS, Horizontal Pod Autoscaler, Karpenter, Amazon RDS Proxy
- Amazon CloudFront serves the Vue 3 application from Amazon S3 so static traffic does not consume API capacity.
- The browser sends monitoring requests to the regional API endpoint.
- Amazon EKS keeps a minimum number of warm pods for the latency-sensitive monitoring APIs.
- Horizontal Pod Autoscaler adds pods when request rate, in-flight work, or latency grows.
- Karpenter adds worker-node capacity when the cluster cannot schedule new pods.
- Monitoring, aggregation, and historical-query workloads use separate deployments and resource limits.
- Amazon RDS Proxy bounds Aurora connections when the pod count increases.
- Each Spring Boot service keeps a bounded connection pool so scaling cannot exhaust the database.
Security and Response Layer
- Services: AWS WAF, Amazon API Gateway, Blacklist API, Amazon ElastiCache, Amazon MSK, Device connector, AWS IAM, AWS Secrets Manager
- AWS WAF protects public entry points from common web attacks and abusive request patterns.
- API Gateway exposes the blacklist service to enterprise firewall devices.
- Firewall devices receive the current approved blacklist version from ElastiCache.
- If the cache is unavailable, the API can return a timestamped last-known-good version when policy allows.
- Automated response services publish protection commands on dedicated MSK topics.
- Device connectors apply the approved action once and return the execution result.
- IAM roles limit each workload to its own topics, cache keys, and tables.
- AWS Secrets Manager holds database, cache, and integration credentials.
Main Logic
The system separates event ingestion from API delivery. Alert bursts are absorbed by Amazon MSK instead of being passed directly to the monitoring APIs or databases.
The system performs expensive aggregation before users request the data. Stream processors and scheduled jobs create compact read models, allowing the API to retrieve prepared results rather than scan more than 150 business tables at request time.
The system uses a three-level delivery strategy. Event-driven aggregation provides immediate updates for urgent security changes, five-minute scheduled jobs reconcile and refresh broader views, and cache-aside rebuilding handles missing or expired values.
Every cached object uses a predictable key structure containing the tenant or security domain, schema version, view name, dimensions, and time window. Versioned keys allow a new calculation model to run alongside the previous model during deployment.
Frequently requested results use refresh-ahead logic. The platform updates a popular value before it expires instead of waiting for a user request to trigger rebuilding.
Expiration times contain random jitter so that thousands of cache keys do not expire simultaneously. This prevents synchronized misses from creating a sudden database load spike.
Cache rebuilding uses request coalescing. Only one worker rebuilds a missing popular key, while concurrent requests receive a controlled response. This prevents a cache stampede.
Database fallback is bounded by a concurrency semaphore, circuit breaker, and rate limiter. Cache failure must not redirect all 500 or more requests per second to Aurora.
Critical device-response APIs can serve a recent, timestamped, last-known-good value during a short dependency failure. Analytical dashboards can return a partial or delayed response. Lower-priority historical reports can be queued until the dependency recovers.
Monitoring API pods maintain warm capacity because EKS and worker-node scaling require time. Autoscaling adds capacity for sustained demand, but the initial traffic spike is handled by the existing reserve.
Monitoring APIs, aggregation workers, AI workloads, and historical queries use separate Kubernetes deployments, resource limits, and scaling policies. A large aggregation or AI analysis task cannot consume the CPU and memory reserved for the sub-50-millisecond API path.
Spring Boot uses bounded Redis, HTTP, Kafka, and database connection pools. Request deadlines and dependency timeouts prevent slow calls from holding threads indefinitely.
Retries use exponential backoff and random jitter. The number of retries remains small, and a circuit breaker stops calls to a dependency that is already failing.
Kafka consumers commit progress only after the required processing has completed. Idempotency keys prevent replayed events from creating duplicate remediation tasks or sending the same protection command more than once.
Kafka partitions provide parallelism, but the partition key retains ordering for events that belong to the same asset, tenant, or security device. Consumer lag is used to determine whether additional consumer instances are required.
Aurora remains the authoritative store for transactional business data. ElastiCache is the fast serving layer, Amazon Timestream for InfluxDB is the operational time-series layer, and Amazon S3 is the durable historical and replay layer.
The platform measures end-to-end API performance rather than Redis command latency alone. Acceptance requires the p95 and p99 targets, throughput target, error-rate target, data-freshness target, and dependency-health thresholds to be satisfied at the same time.
Production validation includes normal load, sudden spikes, cache misses, cache failover, EKS pod termination, worker-node replacement, Kafka consumer rebalance, and Aurora connection pressure. The platform is accepted only when it degrades in a controlled way during these conditions.
Example Case
A coordinated attack causes firewalls and network sensors to generate 20,000 alerts within ten minutes. At the same time, 200 analysts open monitoring dashboards and enterprise firewalls continue polling the public IP blacklist API.
API Gateway and the Application Load Balancer distribute ingestion requests across healthy Spring Boot services in multiple Availability Zones.
The ingestion services validate the alerts and publish them to Amazon MSK. The request path does not wait for database aggregation, which allows the platform to absorb the burst without blocking the security devices.
Amazon MSK partitions the alerts by asset or device identifier. Multiple consumers process different assets in parallel while events for the same asset remain ordered.
Real-time processors normalize the alerts, enrich them with asset and vulnerability data, apply detection rules, and group related observations into incidents.
The risk engine identifies a public IP address associated with repeated malicious activity across several protected systems. It increases the risk score and generates a proposed blacklist update.
The approved blacklist change is stored in Aurora, published as a Kafka cache-update event, and written immediately to the blacklist value in ElastiCache. The platform does not wait for the next five-minute refresh cycle.
Firewall devices retrieve the updated blacklist through the external API. The API reads the precomputed version from ElastiCache and returns it without querying Aurora.
Analyst dashboards request alert totals, affected assets, severity distribution, and remediation status. The monitoring API retrieves these precomputed views from ElastiCache, allowing the warm-cache p95 response objective to remain below 50 milliseconds under the agreed regional test conditions.
EKS detects sustained growth in requests and in-flight work. Horizontal Pod Autoscaler adds monitoring and processing pods. Karpenter or Cluster Autoscaler adds worker nodes if the existing cluster lacks sufficient capacity.
The event-processing consumers temporarily accumulate Kafka lag because the attack produces alerts faster than the normal processing rate. Additional consumers start and process separate partitions until the lag returns to the normal operating range.
During the incident, an ElastiCache primary node fails. ElastiCache promotes a replica in another Availability Zone. Spring Boot clients use short timeouts, limited retries, and refreshed cluster topology information to reconnect.
The monitoring services do not send every failed cache request to Aurora. Critical APIs temporarily use a recent last-known-good value, while lower-priority dashboard requests receive controlled stale or partial data.
Raw alerts and normalized events continue to be written to Amazon S3. No security evidence is lost even if a derived dashboard value is temporarily delayed.
The automated-response service publishes the approved firewall command with an idempotency key. The device connector applies the block once and reports the result through a response topic.
CloudWatch alarms show the temporary increase in Kafka lag and the cache failover, while distributed traces confirm that the primary monitoring API path remains within the required latency and error-rate thresholds.
After the attack burst ends, the five-minute reconciliation job compares cached values with Aurora and the time-series store, corrects any delayed aggregate, and refreshes affected cache entries.
The incident record contains the original alerts, risk calculations, blacklist decision, protection command, device result, response timestamps, and operator actions. Investigators can query recent operational data through the platform and historical evidence through Amazon Athena without loading the production API databases.
Top comments (0)