Upgrade to Pro — share decks privately, control downloads, hide ads and more …

愛せよ、さもなくば捨てよ。

newapplesho
November 25, 2014

 愛せよ、さもなくば捨てよ。

SmalltalkとAWSでクラウドサービスを作ってみた。
DynamoDB for Smalltalkを作った話。

AWS Cloud Roadshow 2014 名古屋 LT大会で発表
http://roadshow.awseventsjapan.com/nagoya/index.html

newapplesho

November 25, 2014
Tweet

More Decks by newapplesho

Other Decks in Programming

Transcript

  1. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. ϓϩϑΟʔϧ

    • ٢ా ᠳʢΑͩ͠͠ΐ͏ʣ • 1986೥ੜ·Ε 28ࡀ • ੲɼ౦ژͷձࣾͷSEͩͬͨ • झຯ ன৸ͱϐΞϊ twitter: @newapplesho facebook: newapplesho
  2. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. ͖ͬͱ

    ޷͖ͳ΋ͷ͚ͩͳΒ ࠷ߴͷ։ൃ͕Ͱ͖Δ͸ͣ
  3. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. Smalltalkͬͯ

    • ७ਮΦϒδΣΫτࢦ޲ϓϩάϥϛϯάݴޠ • Java, Objective-C, Scala, RubyͳͲʹӨڹ༩͑ͨݴޠ • XPͷੜΈͷ਌Ͱ͋ΔKent Beck΋࢖͍ͬͯΔ
  4. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. AWSͰར༻ͨ͠αʔϏε

    • EC2ʢԾ૝αʔόʔʣ • ELBʢϩʔυόϥϯαʔʣ • Route53ʢDNSʣ • Amazon RDS for PostgreSQLʢRDBʣ • Amazon DynamoDBʢNoSQLʣ • S3ʢετϨʔδʣ
  5. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. Region

    Availability Zone Availability Zone PostgreSQL PostgreSQL RDS PostgreSQL PostgreSQL PostgreSQL RDS PostgreSQL DynamoDB S3 Amazon EC2 Amazon EC2 Internet Amazon Route 53 Hosted Zone Elastic Load Balancing 44- 44- 44- 44- ߏ੒ਤ ಉظ ಉظ
  6. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. Amazon

    DynamoDB • ΩʔɾόϦϡʔܕͷNoSQLσʔλϕʔεαʔϏε • ؅ཧෆཁͰ৴པੑ͕ߴ͍σʔλϕʔε • σʔληϯλʔؒͷࣗಈಉظϨϓϦέʔγϣϯ • ߴ଎ͳΞΫηε͕Մೳ • SSDΛར༻͍ͯ͠Δ • ετϨʔδ༰ྔ੍ݶ͕ͳ͍ • ϓϩϏδϣϯεϧʔϓοτ͚ͩΛࢦఆ͢Δ͚ͩ • APIʢSDKʣܦ༝Ͱར༻Ͱ͖Δ
  7. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. SmalltalkϢʔβʔ͕AWSΛ࢖͏ࡍͷ໰୊

    nodeJS iOS iOS Java Javascript Net nodeJS Android PHP Python Ruby Ruby ͋ΕSmalltalk͸ʁ
  8. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. Amazon͞Μʹฉ͍ͯΈͨ

    SmalltalkͰDynamoDB࢖͍͍͚ͨͲ Ͳ͏ͨ͠Β͍͍Ͱ͔͢ʁ
  9. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. Amazon͞Μͷճ౴Πϝʔδ

    https://www.flickr.com/photos/mendhak/4850482798/ REST APIΛୟ͘ͷ͡Ό SmalltalkerͳΒͰ͖Δ͸ͣ͡Ό
  10. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. APIΛ௚઀ૢ࡞Λ͢ΔͨΊʹ

    AWS Signature Version 4 Signature version 4 signing process http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html σδλϧॺ໊Λ࡞੒͢Δ ̏ͭͷॺ໊ํ๏ͰҰ൪ෳࡶͳ΋ͷΒ͍͠ ʢ͋ͱͰ஌ͬͨʣ
  11. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. AWS

    DynamoDB for Smalltalk ௿ϨϕϧAPIͷඞཁͳͱ͜Ζ͚࣮ͩ૷
  12. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. ྫɿDynamoDBͷςʔϒϧͷҰཡ

    dy := DynamoDBRowClient new. dy awsConfig accessKeyId:'ΞΫηεΩʔ'. dy awsConfig secretKey:'γʔΫϨοτΩʔ'. operationName := #ListTables. requestBody := '{}'. resp := dy operationName: operationName contents: requestBody.
  13. Copyright © 2014 SORABITO Co., Ltd. All Rights Reserved. DynamoDB

    Local JavaͰಈ͘ϩʔΧϧ൛DynamoDB http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ Tools.DynamoDBLocal.html ৄ͘͠͸ ঎༻Ͱ͸࢖͑ͳ͍ APIͷ֬ೝఔ౓ʹ͔ͭ͏͜ͱ API࡞੒ͷࡍʹ͸DynamoDB Local͕͓͢͢Ί