← Return to Report 📚 All Topic Sources (7) ⬇ Download Source Text ↗ Open Original Publication

[01] Scalable Web Service Development with Amazon Web Services

Authors: Patrick Russell McElhiney  |  Publication: Master's Thesis, University of New Hampshire, Durham (Fall 2018)
SCALABLE WEB SERVICE DEVELOPMENT WITH AMAZON WEB SERVICES — Patrick Russell McElhiney (University of New Hampshire, 2018).

Modern web service architectures must address a foundational question: How can a website scale to accommodate peak traffic demands without wasting compute and financial resources during low-demand periods? Unplanned web traffic surges risk application errors, leading to degraded user experience, poor first impressions, and lost revenue. Flexibility allows rapid deployment of microservices, big data pipelines, and container orchestrators such as Kubernetes.

System Architecture Case Study: The MeAndYou Platform:
Web servers run as virtual disk images hosted on Amazon Elastic Compute Cloud (EC2) instances. These instances are governed by an AWS Auto-Scaling Group attached to an Elastic Load Balancer. A shared Amazon Aurora database serves as the centralized persistent datastore under a big data configuration. The application codebase separates display and business logic into distinct Hypertext Preprocessor (PHP) files. Expansion efforts included adding fields to user profiles and implementing additional search parameters. Environment synchronization across web instances uses GitHub for version control alongside rsync for filesystem replication.

Match Engine & Message Queue Architecture:
To overcome performance bottlenecks caused by pulling an entire database into memory during query execution, the proposed architecture incorporates a stream processing message queue. Rather than executing bulk memory reads, the backend Match Engine processes user search requests individually as they are generated. Stream processing enables horizontal scaling and prevents memory exhaustion during peak search volumes. Backend match algorithms undergo SQL injection testing to evaluate processing accuracy and harden the codebase against database manipulation.

Automated Load Testing Methodology:
A custom multi-threaded Python script utilizing Selenium applies simulated concurrent user activity to the application endpoints. As simulated user traffic increases, AWS automatically provisions additional EC2 instances executing the pre-configured virtual disk image. Once the artificial load is removed, AWS automatically terminates the surplus EC2 instances, reducing operating costs during off-peak periods.