Auto-scaling Services on Amazon EC2
Auto-scaling of Services (1/2) Write the service, deploy it on the cloud, and it simply scales Simply store the state in the proper places No specific code or API to make a service scale on EC2 Auto-scaling of Java, JavaScript, and services written in other scripting languages
Auto-scaling of Services (2/2) Scale up or scale down based on load Scale up when load increases Scale down when load decreases Minimize the number of idling instances thereby optimizing cost State can be replicated between the instances Preconfigured off-the-shelf AMIs Can be a paid AMI Specific configuration can be read from S3
Deploying a Service on the Cloud AMI Instances Queue: Can use SQS
Deploying a Service on the Cloud
Service is available now
Scaling
Load Increases
Scaling Startup new instances
Scaling New instances join group
Scaling Load Decreases
Scaling Terminate instances