Building A Scalable Containerized Environment With AWS ECS on EC2

About the client

A public sector agency that conducts research and development (R&D) to advance science and technology
Industry:
Public Sector, Government Research Agency
Location:
Singapore

Challenge

An R&D government agency, the customer wanted to set up a new, scalable and robust environment on AWS for deploying a chatbot application. The environment needed to handle unpredictable traffic spikes, especially during peak usage hours. It also had to be cost-effective and integrate seamlessly with existing research platforms and databases. Additionally, they required centralized monitoring and automated deployment to minimize manual effort.

Solution

Cloud Kinetics proposed and implemented a solution using Amazon Elastic Container Service (ECS) with EC2 launch type to meet the customer’s requirements for scalability, cost-efficiency and seamless, easy management. Key aspects of the solution included:

  • Elastic Container Service (ECS) on EC2: This ensured that the environment could scale based on demand while using EC2 instances that provided fine control over instance types and costs.
  • Auto-scaling: We set up auto-scaling groups for ECS to dynamically adjust based on traffic loads, ensuring the chatbot remained available during high usage periods without over-provisioning resources during low traffic.
  • Continuous Integration/Continuous Deployment (CI/CD): The solution integrated AWS CodePipeline and AWS CodeDeploy for seamless deployment and updates of the chatbot application.
  • Centralized Monitoring: Leveraged AWS CloudWatch and ECS service metrics to monitor system health, traffic patterns, and auto-scaling triggers.
  • Integration with Databases: Integrated with existing databases and research tools within the A*STAR ecosystem for data-driven insights.

Success Metrics

Deploying the chatbot application in ECS on EC2 translated to several qualitative and quantitative outcomes for the customer:

20%

Reduction in resource costs

50%

Reduction in deployment time

99.9%

Uptime for chatbot

  • Scalability: The system now scales dynamically, handling traffic peaks without downtime or performance degradation.
  • Cost Savings: By optimizing the EC2 instance usage with auto-scaling and right-sizing strategies, the customer saw a 20% reduction in resource costs.
  • Operational Efficiency: The integration of CI/CD pipelines reduced deployment times by 50%, allowing faster iteration and updates to the chatbot.
  • High Availability: The ECS environment, along with health checks and auto-recovery, ensured that the chatbot achieved 99.9% uptime.
  • Seamless Integration: The chatbot environment successfully integrated with other indigent customer systems, enabling better research outputs and enhanced user experiences across platforms.

This project provided the customer a scalable, cost-effective solution for deploying and managing their chatbot application, further supporting their mission to drive research and technological advancements.

Tags: AI solutions Amazon EC2 Amazon Web Services (AWS) App Modernization App Transformation Containerization Public Sector