AWS Summit Tokyo Startup Architecture Of The Year 2019
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.ϒϩοΫνΣʔϯήʔϜ ͷ࡞Γํຬ ྄ϦʔυΤϯδχΞdouble jump.tokyoגࣜձࣾ
View Slide
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TMy Crypto Heroesͱ• ʮήʔϜʹ͔͚͓ͨ࣌ؒۚɺ͋ͳͨͷࢿ࢈ͱͳΔੈքʯ• ྺ্࢙ͷώʔϩʔΛूΊɺΞΠςϜΛ֫ಘ͠ɺότϧ͢ΔϒϩοΫνΣʔϯRPGήʔϜ• ϒϩοΫνΣʔϯEthereum͓ΑͼࢄετϨʔδIPFSΛར༻͠ɺήʔϜࢿ࢈ͷඇதԝूݖੑΛ࣮ݱ• ϒϩοΫνΣʔϯͷ՝Ͱ͋ΔεέʔϥϏϦςΟͱUXͷղܾͷͨΊήʔϜͱͯ͠ͷػೳAWS্ʹߏங
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TMy Crypto Heroesͱ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TͳͥϒϩοΫνΣʔϯΛ͏ͷʁ• ϒϩοΫνΣʔϯͷήʔϜࢿ࢈ͷʮॴ༗ใʯϢʔβʔͷͷ• ࣗ༝ʹऔҾɺৡ͕Մೳ• ήʔϜͷΛඈͼӽ͑ͯʮॴ༗ใʯΛ׆༻Ͱ͖Δ• ೝূɺܾࡁͷϓϥοτϑΥʔϜ͕खྉͳ͠Ͱར༻Ͱ͖Δ• Ձͷ͋ΓํΛม͑ΔʮϒϩοΫνΣʔϯٕज़ʯΛ༻͍ͯήʔϜͷະདྷΛϦϏϧυ͢Δͱ͍͏ձࣾͷϛογϣϯ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T&UIFSFVN6TFSϢʔβʔECDSAॺ໊༻ͷൿີ伴ͱରʹͳΔΞυϨεΛॴ༗ήʔϜࢿ࢈ɺEthereum্Λਖ਼ͱͯ͠ཧॴ༗ใɺϢʔβʔͷΞυϨεʹ͋Δॴ༗ใΛ֬ೝήʔϜࢿ࢈Λ༻͍ͯήʔϜͰ༡Ϳࢿ࢈ΛҭͯΔMyCryotoHeroesͰɾήʔϜࢿ࢈Λͬͨ༡ͼͷఏڙɾETHʹΑΓήʔϜ௨՟Λൢചɾ৽͍͠ήʔϜࢿ࢈ͷ༩ɺൢചɾήʔϜࢿ࢈ΞʔτΛ༩My Crypto Heroesͷߏཁૉ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TγεςϜΞʔΩςΫνϟ6QMPBEUP*1'44&UIFSFVN *1'4*NBHFVQMPBE8FC "VSPSB/-#6TFS#BUDI71$1SPYZ4FOEUY.POJUPSJOH &UI$%/4FOEUY4UBUJDEBUB 0MEEBUB1SPYZ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TγεςϜΞʔΩςΫνϟUser ʢWebΞϓϦʣ WebNginxɾTLS-terminationɾgRPC-Web proxyɾL7 RoutingSPAɾNuxt.jsɾWeb3.jsɾgRPC-WebɾCore-service (Go/gRPC)ɾAuth-service (Go/echo)ɾUploader-service (Go/echo)ɾEth-proxy-service (Go/echo)ɾAmazon S3Microservices (Systemd)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T͜ͷΞʔΩςΫνϟΛ࠾༻͍ͯ͠Δཧ༝• ϒϩοΫνΣʔϯɺgRPCͱ͍͏৽نྖҬʹඈͼࠐΉʹ͋ͨΓɺͦΕҎ֎࣮ͱ৴པͷ͋ΔAWSΛ͏͜ͱͰ৽نྖҬʹूத͕Ͱ͖Δ• AuroraɺS3ɺLambdaܦݧ্ɺ৴པͱ࣮͕͋ͬͨ• SPAΛ࠾༻ͨ͜͠ͱόοΫΤϯυͷଟ༷ͳॲཧΛҰݩཧ͢ΔͨΊɺNLBΛར༻͠ɺNginxΛL7ϧʔλͱͯ͠࠷େݶ׆༻͍ͯ͠Δ• Nginx͔ΒόοΫΤϯυͷ௨৴ͷෆ҆ཁૉΛۃྗΒͨ͢ΊɺίϯςφͳͲར༻ͤͣಉҰΠϯελϯεʹඞཁͳαʔϏεΛͯ͢ىಈ͍ͤͯ͞Δ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TWell Architected ͳ 5 ͭͷϙΠϯτ• ৴པੑ: ՝ۚ෦ͯ͢ϒϩοΫνΣʔϯ্Ͱܾࡁ• ηΩϡϦςΟ: ެ։伴҉߸ΛͬͨFIDOΛ࣮ݱ• ӡ༻্ͷ༏लੑ: AuroraετϨʔδͷࣗಈ֦ுʹΑΔ҆৺ײ/ෛ୲ͷܰݮ• αʔόίετ࠷దԽ: ૿Ճ͠ଓ͚ΔҰ෦ϩάσʔλʹؔͯ͠Aurora͔ΒS3ʹίϐʔ͠ɺΞϓϦέʔγϣϯ͔ΒS3Λࢀর• ։ൃίετ࠷దԽ: ϑϩϯτΤϯυͱόοΫΤϯυProtobuf͔Βੜ͞ΕͨϥΠϒϥϦΛ௨ͯ͡௨৴
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TWell ArchitectedͳύϑΥʔϚϯε• gRPC-WebΛ࠾༻ͨ͜͠ͱͰHTTP/2Λ࠷େݶར༻ͨ͠ฒྻΞΫηε• ProtobufΛͦͷ··JSONܕʹอଘɺΠϯσοΫε͕ඞཁͳσʔλͷΈݸผͷΧϥϜΛ࡞• ΞϓϦέʔγϣϯ͔ΒDBͷJOINΫΤϦҰͳ͠• কདྷͷεέʔϦϯάࢹʹ• ֎෦ཁૉͰ͋ΔIPFSͷը૾ΞοϓϩʔυɺS3 PutEventΛτϦΨʔʹLambdaͰඇಉظॲཧ• ETHͷΞΫηεΛҰ෦αʔόͰϓϩΩγ͢Δ͜ͱͰUXվળ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TgRPC-WebʹΑΔฒྻΞΫηε
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TΞΫηεϨΠςϯγ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TDBʹ͓͚ΔSelect Latency
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TΞʔΩςΫνϟʹΑΔϏδωεͷߩݙ• ݱΞʔΩςΫνϟ͓Αͦ2ϲ݄Ͱߏஙɺ201811݄30ϦϦʔεɻ• ྦྷܭϢʔβʔ5ສਓɺ6,000DAUɺ3,000ϢʔβʔτϥϯβΫγϣϯ• ྦྷܭച্ֹ 6ϲ݄Ͱ12,000ETH• EthereumΛͬͨੈքҰͷϒϩοΫνΣʔϯήʔϜ• ੈքͰগͳ͍gRPC-WebͷϓϩμΫγϣϯࣄྫ• S3ɺAuroraΛ࢝ΊAWSશମͷ҆৺ײ͔ΒϒϩοΫνΣʔϯgRPCͳͲ৽نྖҬͷٕज़શྗͰ౿ΈࠐΉ͜ͱ͕Ͱ͖Δ
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.͍͞͝ʹɺɺ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I TγεςϜΞʔΩςΫνϟ6QMPBEUP*1'44&UIFSFVN *1'4*NBHFVQMPBE8FC "VSPSB/-#6TFS#BUDI71$1SPYZ4FOEUY.POJUPSJOH &UI$%/4FOEUY4UBUJDEBUB 0MEEBUB1SPYZVPCʹߏங͍ͨ͠ͷͰManaged BlockchainʢEthereumʣΛͪΘͼ͓ͯΓ·͢ʂ
Thank you!S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.ຬ ྄ʢManzoku Ryoʣ[email protected] / [email protected]