2. AWS
+ Cloud service
- IaaS & PaaS
+ So many solutions
- ELB (Elastic Load Balancer) : vertual server
- EC2 (Elastic Compute Cloud)
- S3 (Simple Storage Service)
- RDS (Relational Database Service)
- Route 53 : DNS system
- SWF (Simple Workflow Service)
…
+ Easy to Use anytime you want
- just make an account, then click some on Management Console
(you can make a program to avoid such operations)
4. EC2 instances
+ Micro ($0.027 / h)
613 MB memory
Up to 2 EC2 Compute Units (for short periodic bursts)
I/O Performance: Low
+…
+ Cluster compute eight extra large ($2.400 / h)
60.5 GB of memory
88 EC2 Compute Units (2 x Intel Xeon E5-2670
, eight-core "Sandy Bridge" architecture)
3370 GB of instance storage
I/O Performance: Very High (10 Gigabit Ethernet)
(6000 yen / month for full “personal” use,
we can get the relevant VPS for 1000yen /month, I guess. )
5. Free Tier
+ new AWS user can get these free use
each month for one year
- 750 hours of EC2 Micro instance usage
- 750 hours of Elastic Load Balancing plus 15 GB data processing
- 30 GB of Amazon Elastic Block Storage (EBS)
plus 2 million IOs and 1 GB snapshot storage
-…
+ So, without any payment, you can run
- 1 Micro instance for a full year without stop
or
- 4500 Micro instance for 10 min / every month
Why don’t u try it ?
Getting Started Guide AWS Free Usage Tier
http://docs.amazonwebservices.com/gettingstarted/latest/awsgsg-freetier/TestDriveFreeTier.html
6. Nginx
+ HTTP and reverse proxy server
(also supports SMTP, POP3, IMAP)
+ aiming high performance
- low memory usage
- simultaneous connection
- asynchronous event driven server (like Lighttpd)
not thread or process oriented
+ limited functions
- no Dynamic Shared Object of Apache
7. remarks
“Apache is like Microsoft Word,
it has a million options but you only need six.
Nginx does those six things,
and it does five of them 50 times faster than Apache.”
- Chris Lea @ WordCamp SF 2008
8. performance
+ at certain situation (just copied from the site...orz)
- CENTOS 5.1
- Dual 2.4GHz Xeon CPUs
- 4GB RAM
- RAID5 (4 x 15k disks)
- Server and test client were connected via a consumer grade 10/100 switch
- Keepalive turned on and with timeout of 15 seconds
- GZIP turned on
Apache vs Nginx : Web Server Performance Deathmatch
http://joeandmotorboat.com/2008/02/28/apache-vs-nginx-web-server-performance-deathmatch/
10. simple ex. 1
+ Just use S3
- we can host website on Amazon Simple Storage Service
doc : http://docs.amazonwebservices.com/AmazonS3/latest/dev/WebsiteHosting.html
movie : http://awsdocvideos.s3.amazonaws.com/S3/HostingWebsites/S3_Hosting_Website.html
11. simple ex. 2
+ CloudFront in front of S3 or web server
- speeds up distribution of your web content
doc : http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html
CloudFront
or
or EC2
12. but
+ suppose
- I (you?) don’t know, which size of images are suit for the target web page…
- so many devices, so many display size, so many design changes,
do we have to prepare so many types of image continuously ???
more useful system is needed.
: dynamically respond requested image
without any upload operation
13. so . . .
http://6109.hidepiy.com/255/image-server-with-aws-nginx
Editor's Notes
Nginx is noted to be a good server for sites that need fast, efficient reverse proxies or serving of static content because Nginx is event-based it doesn't need to spawn new processes or threads for each request, so its memory usage is very low http://www.wikivs.com/wiki/Apache_vs_nginx