Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SimpleDBを使った ソーシャルアプリ構築事例

8,436 views

Published on

第2回 JAWS-UG 京都勉強会の発表資料です。

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

SimpleDBを使った ソーシャルアプリ構築事例

  1. 1. JAWS−UG #2SimpleDB (@hrsm1979)2011 11 10
  2. 2. ✤ @hrsm1979✤ (2010/06 )✤ iPhone✤ AWS Amazon S3✤ ( http://tech.furyu.jp )
  3. 3. ✤✤✤
  4. 4. ✤ 10 20 ✤ ✤ MAILDECO(iPhone) ✤ Love ✤ SNS PICTLINK
  5. 5. ✤ SNS✤ SNS SNS✤ SNS✤ SNS✤ 200
  6. 6. SNS✤ SNS 200✤ ( )✤✤✤ 2
  7. 7. ✤ 1 30 PV(45,000UU/day)✤ CM✤ (Java Web )✤ ↑ 1
  8. 8. ✤ AWS ✤ ✤ S (VPS) ✤ N ( ) ✤ Amazon Web Services
  9. 9. AWS 1:✤ AWS AWS N S CPU 1ECU - 33.5ECU 1vCPU - 4vCPU -2 613MB – 68.4GB 512MB – 16GB 512MB – 8GB 160GB – 1690G 30GB 20GB – 240GB (EBS ) ( 100GB – 1TB) IPLB/ /AS / / / / / /
  10. 10. AWS 2:✤ N AWS SAWS(RDS ) 3583.85 286,708AWS(SimpleDB ) 2088.05 167,044N 659,022S 63,840
  11. 11. AWS :✤ S (VPS)✤ N ( )✤ AWS EC2✤ ⇛AWS
  12. 12. AWS
  13. 13. AWS✤ EC2(Elastic Computing Cloud) ✤ EBS Type ✤ m1.large ✤ CentOS AMI ✤ AZ
  14. 14. AWS✤ S3(Simple Storage Service) ✤✤ SimpleDB ✤ ✤ RDB
  15. 15. AWS✤ SNS(Simple Notification Service) ✤✤ ELB(Elastic Load Balancer)✤ Route53(DNS)✤ CloudWatch(Monitoring)✤ AutoScaling( )
  16. 16. ✤ SNS SNS API✤✤
  17. 17. ✤ Oracle MySQL✤✤ AWS✤
  18. 18. SimpleDB
  19. 19. SimpleDB✤ AWS KVS (KVS)✤ No SQL. No Admin. ✤ ✤✤ HTTP,SOAP API✤
  20. 20. SimpleDB✤ SQL SELECT API✤✤ AZ✤ AWS✤
  21. 21. RDS✤ AWS✤ RDB✤ MultiAZ✤
  22. 22. SimpleDB✤✤ SimpleDB✤ Java MySQL✤ SimpleDB✤
  23. 23. SimpleDB (AWS SDK )✤ ( ) ✤ Select API (ms)Asia Pacific (Tokyo) 38.8msAsia Pacific (Singapore) 126.8msEU West (Ireland) 332.6msUS West (N. California) 154.1msUS East (Virginia) 234.9msUS West (Oregon) 163.7ms
  24. 24. SimpleDB (AWS SDK )✤ ( ) ✤ PutAttributes API (ms)Asia Pacific (Tokyo) 369.2msAsia Pacific (Singapore) 431.3msEU West (Ireland) 659.8msUS West (N. California) 467.4msUS East (Virginia) 585.3msUS West (Oregon) 428.5ms
  25. 25. SimpleDB (AWS SDK )✤ ( ) ✤ PutAttributes API (ms)Asia Pacific (Tokyo) 287.8msAsia Pacific (Singapore) 378.0msEU West (Ireland) 648.5msUS West (N. California) 351.5msUS East (Virginia) 504.8msUS West (Oregon) 347.4ms
  26. 26. SimpleDB (AWS SDK )✤ ( ) ✤ DeleteAttributes API (ms)Asia Pacific (Tokyo) 244.8msAsia Pacific (Singapore) 339.7msEU West (Ireland) 573.2msUS West (N. California) 339.7msUS East (Virginia) 534.0msUS West (Oregon) 291.8ms
  27. 27. SimpleDB (AWS SDK )✤✤ 1.Asia Pacific(Tokyo)✤ 2.Asia Pacific(Singpore),US West(N. California),US West(Oregon)✤ 3. US East(Virginia)✤ 4. EU West(Ireland)
  28. 28. ✤ Java Web ✤ S2Container ✤ S2Struts ✤ S2Dxo ✤ Velocity ✤ AWS SDK for Java
  29. 29. SimpleDB✤ Join✤ ✤ http://docs.amazonwebservices.com/AmazonSimpleDB/latest/ DeveloperGuide/index.html?SDBLimits.html✤
  30. 30. SimpleDB✤ ( AZ )✤ RDB✤✤ AWS )
  31. 31. AWS✤ 24 365✤ AWS✤ →cloudpack
  32. 32. ✤ SimpleDB ✤ SimpleDB✤ EBS ✤ 1 1 10✤ ✤ S3
  33. 33. ✤ 2011 6✤ SNS ✤ →✤ SNS✤ EC2
  34. 34. ✤ PC✤ EC2✤✤ → 15
  35. 35. ✤ EC2✤✤
  36. 36. ✤ EC2,S3✤ SimpleDB ( $30) ✤ 2011/06 - $700( 930) ✤ 2011/07 - $2,000 ✤ 2011/08 - $2,800
  37. 37. ✤ API ,✤ SimpleMonthlyCalculator 300✤ → BoxUsage
  38. 38. BoxUsage✤ BoxUsage ✤ ✤ ( ) ✤ 1 GetAttribute API 10,000 Select API BoxUsage
  39. 39. ✤ BoxUsage ✤ SelectAPI ✤ → ✤ ✤ →
  40. 40. SimpleDB✤ API✤ API API BoxUsage
  41. 41. API✤ ✤ S2Caching ✤ →API✤✤ SimpleDB
  42. 42. ✤ 2011 11 ✤ BoxUsage 3 1
  43. 43. ✤ EC2 ✤ 5 100 ✤ EC2 4 12
  44. 44. SimpleDB✤ 2011 10 API : 1✤ 2011 10 RequestTimeOut 7 ✤ →✤ 10 0.000007%
  45. 45. ✤✤✤ AWS
  46. 46. SimpleDB✤✤✤✤ →
  47. 47. SimpleDB✤✤ RDB✤✤ →RDB
  48. 48. ✤ SimpleDB✤ No SQL.No Admin.✤ SimpleDB✤ SimpleMonthlyCalculator BoxUsage Web
  49. 49. ✤✤ FuRyu Tech Blog ✤ http://tech.furyu.jp
  50. 50. ✤✤ Android/iPhone✤✤ http://www.furyu.jp/company/recruit/career.html

×