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

Scalaとサーバレス相性いいよ

 Scalaとサーバレス相性いいよ

LT @Scala Fukuoka 2017

yoshiyoshifujii

July 29, 2017
Tweet

More Decks by yoshiyoshifujii

Other Decks in Technology

Transcript

  1. ି͠ग़͠Ͱ͖Δ෦԰ w ηϛφʔϗʔϧ ໊  w ձٞࣨ ໊͔Β໊  w

    ΧϑΣεϖʔε ໊  w ϏΞόογϡͳͲͷ࠙਌ձ΋։࠵ՄೳͰ͢ʂ
  2. γεςϜߏ੒ਤ Amazon API Gateway client AWS Lambda Amazon S3 Amazon

    DynamoDB Amazon Kinesis AWS Lambda AWS Lambda Amazon Elasticsearch Service Context + Token Principal + Policy Policy is cached Denied 403 Allowed Auth function Consumers function
  3. %%%

  4. ࡾ૚ υϝΠϯϞσϧ wϓϨθϯςʔγϣϯ૚͔Βͷґ པΛड͚Δ wద੾ͳυϝΠϯΦϒδΣΫτʹ ൑அՃ޻ܭࢉΛґཔ͢Δ wϓϨθϯςʔγϣϯ૚ʹ݁Ռ υϝΠϯΦϒδΣΫτ Λฦ͢ wσʔλιʔε૚ʹه࿥΍݁Ռͷ

    ೖग़ྗΛࢦࣔ͢Δ ਤ૿ాږݱ৔Ͱ໾ཱͭγεςϜઃܭͷݪଇʙมߋΛָͰ҆શʹ͢ΔΦϒδΣΫτࢦ޲ͷ࣮ફٕ๏ ,JOEMFͷҐஔ/P גࣜձٕࣾज़ධ࿦ࣾ,JOEMF൛
  5. CVJMETCU lazy val domain = (project in file("./modules/domain")). lazy val

    infraDynamo = (project in file("./modules/infrastructure/dynamodb")). dependsOn(domain). lazy val infraKinesis = (project in file("./modules/infrastructure/kinesis")). dependsOn(domain). lazy val appHello = (project in file("./modules/application/hello")). dependsOn(infraLambda, infraDynamo, infraKinesis).