TechPro

Customer Challenge:

Guided by its vision of “Smart Shopping, Delightful Experiences,” ZhiYue E-commerce is committed to providing a seamless online shopping platform. Through big-data analytics and artificial intelligence, the company continually improves operational efficiency and delivers more personalized, convenient shopping services. Its goal is to become a leading global intelligent-commerce platform, using continuous technological innovation and operational excellence to provide high-quality shopping experiences worldwide and accelerate the shift toward digital, intelligent retail.

Architecture Overview:

img

Scalability:

ALB + Auto Scaling: Application Load Balancer target groups work with Amazon EC2 Auto Scaling to distribute traffic automatically, add new servers to the cluster, and remove services as capacity scales in. Auto Scaling metrics monitor EC2 instances and trigger horizontal scaling during high load, reducing downtime risk and improving reliability and scalability.

Amazon Redshift: This AWS-managed data warehouse uses elastic scaling to provide reliability and scalability at the database layer.

Data Ingestion and Storage:

Kinesis Data Streams processes and transports data captured from streaming sources such as web logs in real time, making it available for real-time analytics.

Data Processing and Analytics:

After the data has been successfully ingested and stored, several services process and analyze it:

  • Kinesis Data Firehose: Delivers real-time data collected through Kinesis Data Streams to Amazon S3 for persistent storage and later analysis.
  • AWS Glue ETL: Extracts, transforms, and loads raw data stored in Amazon S3 into analytics-ready formats, then stores the processed data in Amazon Redshift.
  • Amazon QuickSight: Integrates with Amazon Redshift to provide fast, easy-to-use business intelligence, data visualization, and reporting.

Data Backup and Archiving:

The architecture uses the following component to support long-term data retention and archiving:

Amazon S3 Glacier: Data stored in Amazon S3 is backed up to S3 Glacier for long-term archival storage. Lifecycle policies automatically transition infrequently accessed data to Glacier after a defined period, reducing storage costs.

Security:

AWS Identity and Access Management (IAM): Least-privilege policies restrict permissions for all users and services, helping prevent excessive access and reduce security risk.

AWS Certificate Manager (ACM): Because most users access the website over HTTPS, ACM works with the Application Load Balancer to provide SSL/TLS certification.

Key Takeaways:

1. Real-Time Stream Processing
  • Implementation: Captured user activity data in real time with Kinesis Data Streams and delivered it to Amazon S3 with Kinesis Data Firehose.
  • Insight: Kinesis Data Streams and Firehose provide powerful real-time processing for high-concurrency, low-latency workloads. After data lands in Amazon S3, lifecycle rules can automatically archive it to S3 Glacier to reduce long-term storage costs.
2. Public/Private Network Segmentation and Security
  • Implementation: Deployed a NAT Gateway in a public subnet so resources in private subnets could access external services.
  • Insight: Separating public and private networks strengthened security. The NAT Gateway enabled controlled outbound access without exposing backend services directly.
3. Data Analytics and Visualization
  • Implementation: Integrated Amazon Redshift with Amazon QuickSight to provide faster decision support.
  • Insight: Redshift supports efficient analytics, while QuickSight provides an intuitive visualization interface that reduces the business team’s dependence on data specialists.

Lessons Learned:

1. Load Balancer Configuration Optimization
  • Issue: The initial ALB configuration did not fully account for health-check intervals and timeouts, causing uneven traffic distribution.
  • Lesson: Health-check policies should reflect backend response times to prevent inaccurate checks from causing instance overload or dropped traffic.
2. AWS Glue Job Resource Contention
  • Issue: Resources were not allocated appropriately when multiple Glue ETL jobs ran simultaneously, causing job failures.
  • Lesson: Optimize Glue scheduling so jobs run within available capacity. Use job priorities and staggered run intervals to avoid resource contention.
3. Overly Permissive IAM Policies
  • Issue: IAM roles were not configured with granular permissions, leaving some services with excessive access.
  • Lesson: IAM policies should follow the principle of least privilege, granting each service only the permissions it requires.

Project Information

  • Clients: Mark Eganberg
  • Category: Cloud
  • Timeframe: August 5, 2024
Share:

Contact Info

Contact Phone
Contact Mail
Office Location