Slide 1

Slide 1 text

(SBQI2-Λ༻͍ͨαΠτʹ
 ͓͚ΔύϑΥʔϚϯεվળ
 ʢ&$αΠτΛ୊ࡐʹʣ ᖒҪએ඙(@nobuhikosawai) גࣜձࣾFiNC Technologies JSConf JP 2019 Day2

Slide 2

Slide 2 text

?B1>App Store&Google Play 1@-2018@10 .2019@9.('702 5<App Annie Google Play "2018 3/,8AC :646 App Annie TOP PUBLISHER AWARD 2018 MAUAC *46 12).D9;1* !& =+ $# % FiNC

Slide 3

Slide 3 text

Slide 4

Slide 4 text

ϔϧεέΞ঎඼Λѻ͏&$αΠτ

Slide 5

Slide 5 text

֓ཁʢഎܠʣ w ࣾ಺తʹ΋ྺ࢙ͷ௕͍αʔϏε w ೥͔Β͋Δ w 3BJMTFSCͰIUNMΛ
 ϨϯμϦϯά w ϖʔδભҠ͕஗͍ 5 چϞʔϧ

Slide 6

Slide 6 text

֓ཁʢഎܠʣ w ϦχϡΞʔϧϓϩδΣΫτ w શࣾͷϦϒϥϯσΟϯά w ϖʔδભҠͷվળ w ٕज़ελοΫͷߋ৽ w (SBQI2-3FBDUͳͲͷ ࠾༻ʢৄࡉ͸ޙड़ʣ 6 ৽Ϟʔϧ

Slide 7

Slide 7 text

֓ཁʢഎܠʣ w ϦχϡΞʔϧϓϩδΣΫτ w ϦϦʔεͷλΠϛϯάΛ༏ઌ w ֎෦ϕϯμʔΛ׆༻ $44σβΠ ϯʣ w ͦͷ݁ՌύϑΥʔϚϯε΍࡞Γ΍ ͢͞Λ٘ਜ਼ʹ͍ͯͨ͠ w ݁ՌϦχϡʔΞϧޙͷϖʔδ͕͔ͳ Γॏ͘ͳͬͨ 7

Slide 8

Slide 8 text

֓ཁʢഎܠʣ w ύϑΥʔϚϯεվળϓϩδΣΫτ w 1BHF4QFFE*OTJHIUTͰ఺·Ͱ
 վળ 8

Slide 9

Slide 9 text

֓ཁʢ݁࿦ʣ w ύϑΥʔϚϯεվળϓϩδΣΫτ w ϑϩϯτͷνϡʔχϯά w (SBQI2-ͷνϡʔχϯά wΫϥΠϯτʹࣗ༝౓͕͋Δ wద੾ͳઃܭͱ࢖༻Λ͠ͳ͍ͱҙ ਤ͠ͳ͍ύϑΥʔϚϯεͷྼԽ Λট͘ 9

Slide 10

Slide 10 text

ຊτʔΫͷର৅ͱ͍ͯ͠Δਓ w (SBQI2-ΛϓϩμΫγϣϯͰಋೖ͠Α͏͔ݕ౼͍ͯ͠Δਓ w ϓϩμΫγϣϯͰಋೖ͍ͯ͠Δ͕ͬ͘͠Γདྷ͍ͯͳ͍ਓ w ͜ͷ͋ͨΓͷ༻ޠʹϐϯͱདྷͳ͍ํ w 0WFSGFUDIJOH w 'SBHNFOUͱ$PMPDBUJPO w 1FSTJTUFERVFSZ 10 ※ΊͬͪΌΘ͔Δͱ͍͏ํ͸Ή͠Ζ࠙਌ձͱ͔Twitterͱ͔ͰͲ͏͍͏ӡ༻͍ͯ͠Δ͔ڭ͍͖͍͑ͯͨͩͨͰ͢

Slide 11

Slide 11 text

Agenda ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ ύϑΥʔϚϯεվળ ࠓޙͷల๬ ·ͱΊ 11

Slide 12

Slide 12 text

Agenda ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ ύϑΥʔϚϯεվળ ࠓޙͷల๬ ·ͱΊ 12

Slide 13

Slide 13 text

ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ w GSPOUFOE3FBDU5ZQFTDSJQU w ϖʔδભҠΛૣ͘͢ΔͨΊ w 4FWFSTJEFSFOEFSJOH 443 Λద༻ w CBDLFOEطଘͷ3BJMTΛྲྀ༻ 13

Slide 14

Slide 14 text

ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ w "1*ఆٛ(SBQI2- w 5PQ1BHFΛϦονʹ͢Δߏ૝ w ΧελϚΠζͷࣗ༝౓ w ҰཡͱৄࡉͰͷ"1*ͷ࠶ར༻ੑ w ϑϩϯτΤϯυଆʹ"1*ͷࣗ༝౓ Λ΋ͨͤΔ 14

Slide 15

Slide 15 text

ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ w (SBQI2- w 'BDFCPPLʹΑͬͯ࠷ॳʹެ։͞Εͨ8FC"1*ͷͨΊͷن֨ ʢݱࡏ͸(SBQI2-'PVOEBUJPO w 3&45ͱҟͳΓDMJFOU͔ΒͷRVFSZʹඥͮ͘σʔλΛฦ͢ 15

Slide 16

Slide 16 text

16

Slide 17

Slide 17 text

17

Slide 18

Slide 18 text

18 w 4DIFNB w 3FTQPOTFͷܕఆٛ w "1*EPDVNFOU w DMJFOUଆͰ΋SFTQPOTFͷܕ ఆٛΛ࡞੒Մೳ

Slide 19

Slide 19 text

19 443
 3FOEFSJOH 4FSWFS 3BJMT HSBQIRMSVCZ ϦχϡʔΞϧ࣌ͷٕज़ߏ੒

Slide 20

Slide 20 text

20 443
 3FOEFSJOH 4FSWFS 3BJMT HSBQIRMSVCZ ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ 443࣌ 1. /index

Slide 21

Slide 21 text

21 443
 3FOEFSJOH 4FSWFS 3BJMT HSBQIRMSVCZ ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ 443࣌ 1. /index 2. /graphql query { content { id } }

Slide 22

Slide 22 text

22 443
 3FOEFSJOH 4FSWFS 3BJMT HSBQIRMSVCZ ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ 443࣌ 1. /index 2. /graphql query { content { id } } 3. api response { “content”: { “name”: “hoge” } }

Slide 23

Slide 23 text

23 443
 3FOEFSJOH 4FSWFS 3BJMT HSBQIRMSVCZ ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ 443࣌ 1. /index 2. /graphql query { content { id } } 3. api response { “content”: { “name”: “hoge” } } 4. html/js/css

Slide 24

Slide 24 text

24 443
 3FOEFSJOH 4FSWFS 3BJMT HSBQIRMSVCZ ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ $43࣌ 1. /graphql query { content { id } }

Slide 25

Slide 25 text

25 443
 3FOEFSJOH 4FSWFS 3BJMT HSBQIRMSVCZ ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ $43࣌ 1. /graphql query { content { id } } 2. api response { “content”: { “name”: “hoge” } }

Slide 26

Slide 26 text

Agenda ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ ύϑΥʔϚϯεվળ ࠓޙͷల๬ ·ͱΊ 26

Slide 27

Slide 27 text

ύϑΥʔϚϯεվળ 27 ܭଌ ϘτϧωοΫͷ ಛఆ վળ ࠶ൃ๷ࢭ

Slide 28

Slide 28 text

ܭଌࢦඪͷಋೖ w ύϑΥʔϚϯεͷܭଌ w ࣮ػͰߦ͏ςετ w ߹੒؀ڥͰߦ͏ςετʢ4ZOUIFUJDUFTU w 1BHF4QFFE*OTJHIUTͰվળޮՌΛܭଌ 28

Slide 29

Slide 29 text

ϘτϧωοΫͷಛఆ w $ISPNF"VEJUʢ࣮ػʣ 1BHF4QFFE*OTJHIUT w 0QQPSUVOJUJFTͷվળ߲໨Λ վળ͍ͯ͘͠ 29

Slide 30

Slide 30 text

30 443
 3FOEFSJOH 4FSWFS 3BJMT HSBQIRMSVCZ վળઓུ

Slide 31

Slide 31 text

31 443 3BJMT HSBQIRMSVCZ վળઓུ 3&45"1* ᶃϑϩϯτଆͷվળ ᶄαʔόʔଆͷվળ

Slide 32

Slide 32 text

32 443 3BJMT HSBQIRMSVCZ վળઓུ (SBQI2- ᶃϑϩϯτଆͷվળ ᶄαʔόʔଆͷվળ ᶅ2VFSZ4DIFNBͷվળ

Slide 33

Slide 33 text

33 443 3BJMT HSBQIRMSVCZ ϑϩϯτଆͷվળ (SBQI2- ᶃϑϩϯτଆͷվળ ᶄαʔόʔଆͷվળ ᶅ2VFSZ4DIFNBͷվળ

Slide 34

Slide 34 text

ϑϩϯτଆͷվળ w ϨϯμϦϯάΛ๦͛ΔϦιʔε ͷআ֎ w ςΩετѹॖͷ༗ޮԽ 34

Slide 35

Slide 35 text

ϑϩϯτଆͷվળ w ϨϯμϦϯάΛ๦͛ΔϦιʔ εͷআ֎ w Ϧιʔεͷμ΢ϯϩʔυ͕ $SJUJDBM3FOEFSJOH1BUIΛ ્֐͍ͯ͠Δ 35 https://docs.google.com/presentation/d/1aLhRaTr8GdA4vrEM4Frkmsyt3b5jjncPsvHtj9ar58U/edit#slide=id.g6b2d607733_0_20

Slide 36

Slide 36 text

ϑϩϯτଆͷվળ 36 SFG
 IUUQTEPDTHPPHMFDPNQSFTFOUBUJPOEB-I3B5S(E"WS&.'SLNTZUCKKOD1TW)UKBS6FEJUTMJEFJEHCE@@
 IUUQTEFWFMPQFSTHPPHMFDPNXFCGVOEBNFOUBMTQFSGPSNBODFDSJUJDBMSFOEFSJOHQBUISFOEFSCMPDLJOHDTT IMKB $44ͷEPXOMPBEͷվળ ͸ϖʔδඳըͷߴ଎Խʹ ௚઀ؔ܎͢Δ

Slide 37

Slide 37 text

ϑϩϯτଆͷվળ w ϨϯμϦϯάΛ๦͛ΔϦιʔεͷআ֎ w$PNQPOFOUͱରͰඥ෇͔ͳ͍ܗͰ ࡞੒͞Ε͍ͯͨ wෆཁͳ$44͕େྔʹಡΈࠐ·Ε͍ͯͨ w ϖʔδ͝ͱʹඞཁͳ$44ΛಡΈࠐΉΑ͏ ʹमਖ਼ wSFBDUIFMNFU IUUQTHJUIVCDPN OqSFBDUIFMNFU 37

Slide 38

Slide 38 text

ϑϩϯτଆͷվળ w ςΩετѹॖͷ༗ޮԽ w SFOEFSJOH݁ՌͷIUNM w $POUFOU&ODPEJOH͕ޮ͍͓ͯΒ ͣɺH[JQѹॖ͞Ε͍ͯͳ͔ͬͨ $44͸0, w SFTTFU)FBEFS $POUFOU5ZQF UFYU IUNMDIBSTFUVUG` Λ௥Ճ͢Δ͚ͩ w ҙ֎ͱΘ͢Ε͕ͪͳͷͰ஫ҙΛ 38

Slide 39

Slide 39 text

ϑϩϯτଆͷվળ 39

Slide 40

Slide 40 text

40 443 3BJMT HSBQIRMSVCZ αʔόʔଆͷվળ (SBQI2- ᶃϑϩϯτଆͷվળ ᶄαʔόʔଆͷվળ ᶅ2VFSZ4DIFNBͷվળ

Slide 41

Slide 41 text

αʔόʔଆͷվળ ϑϩϯτΤϯυଆͷվળͷ݁ՌɺαʔόʔଆͷϨεϙϯε଎౓͕໰୊ʹͳΔ 41

Slide 42

Slide 42 text

αʔόʔଆͷվળ w ܭଌ w "1.Λ׆༻ w ͢Ͱʹಋೖ͞Ε͍ͯͨ %BUBEPHΛ׆༻ w Ϩεϙϯε͕T௒ 42

Slide 43

Slide 43 text

43 POST /graphql query FeatureAllQuery { ranking(rankingType: WEEKLY) { id … } greetingProducts(count: 3) { id name … } firstPromotionArticle { id … } secondPromotionArticle { id title … } … }

Slide 44

Slide 44 text

44 POST /graphql query FeatureAllQuery { ranking(rankingType: WEEKLY) { id … } greetingProducts(count: 3) { id name … } firstPromotionArticle { id … } secondPromotionArticle { id title … } … }

Slide 45

Slide 45 text

αʔόʔଆͷվળ w (SBQI2-ͷαʔόʔଆͷॲཧ w RVFSZͷ֤ϑΟʔϧυ͸SFTPMWFSͱ ݺ͹ΕΔؔ਺Ͱॲཧ͞Ε͍ͯ͘ w 4DBMBSΛฦ͢·Ͱ࣮ߦ͞ΕΔ w SFTPMWFS͕PCKFDUΛฦ͢৔߹͸
 ࠶ؼతʹ࣮ߦ͞ΕΔ w SFGIUUQTNFEJVNDPNQBZQBM FOHJOFFSJOHHSBQIRMSFTPMWFST CFTUQSBDUJDFTDEGECDFG 45 query FeatureAllQuery { greetingProducts(count: 3) { id name … } firstPromotionArticle { id … } secondPromotionArticle { id title … } ranking(rankingType: WEEKLY) { id … } … }

Slide 46

Slide 46 text

αʔόʔଆͷվળ w (SBQI2-ͷUSBDFͷಡΈղ͖ํ w ·ͣDJFOU͔ΒૹΒΕͯ͘Δ RVFSZΛ֬ೝ͢Δ 46

Slide 47

Slide 47 text

αʔόʔଆͷվળ w (SBQI2-ͷUSBDFͷಡΈղ͖ํ w ·ͣ͸͡ΊʹRVFSZͷQBSTFͱ WBMJEBUJPO͕࣮ߦ͞ΕΔ 47 query FeatureAllQuery { ranking(rankingType: WEEKLY) { id products { id name reviews { id rating } } … } greetingProducts(count: 3) { id name … } … } … }

Slide 48

Slide 48 text

αʔόʔଆͷվળ w (SBQI2-ͷUSBDFͷಡΈղ͖ํ w ͦΕ͕ऴΘΔͱRVFSZʹඥͮ͘ SFTPMWFS্͕͔Β࣮ߦ͞ΕΔ w 2VFSZͷத਎Λ஌Βͳ͍ͱಡΊͳ͍ 48 query FeatureAllQuery { ranking(rankingType: WEEKLY) { id products { id name reviews { id rating } } … } greetingProducts(count: 3) { id name … } … } … }

Slide 49

Slide 49 text

αʔόʔଆͷվળ w (SBQI2-ͷUSBDFͷಡΈղ͖ํ w (SBQI2-͸/ͷ%#ΞΫηε͕ൃੜ ͕ͪ͠ 49 query FeatureAllQuery { ranking(rankingType: WEEKLY) { id products { id name reviews { id rating } } … } greetingProducts(count: 3) { id name … } … } … }

Slide 50

Slide 50 text

αʔόʔଆͷվળ 50

Slide 51

Slide 51 text

51

Slide 52

Slide 52 text

52

Slide 53

Slide 53 text

53

Slide 54

Slide 54 text

αʔόʔଆͷվળ 54 w (SBQI2-ͷUSBDFͷಡΈղ͖ํ w CBUDIMPBEFSͳͲͷϥΠϒϥϦͰ42-ΫΤϦͷ஗Ԇ࣮ߦΛ ߦ͏Α͏ʹͯ͠ճආ͢Δ͜ͱ͕Մೳ

Slide 55

Slide 55 text

αʔόʔଆͷվળ 55

Slide 56

Slide 56 text

αʔόʔଆͷվળ w (SBQI2-ͷUSBDFͷಡΈղ͖ํ w #BUDI-PBEFSͰॲཧ͢ΔΑ͏ʹࢦఆ͞Εͨॲཧ͸ɺ2VFSZʹ௚઀ ඥ෇͘ॲཧ͕ऴΘͬͨ͋ͱʹ࣮ߦ͞ΕΔɻ w ͦͷͨΊEBUBEPH্͸ॲཧ͕෼ׂ͞Ε͍ͯΔΑ͏ʹݟ͑Δɻ 56

Slide 57

Slide 57 text

αʔόʔଆͷվળ w "1.ͷUSBDFΛಡΈղ͍ͨ݁Ռɺαʔόʔଆ͸ύϑΥʔϚϯεͷߟ ྀ͕͞Ε͍ͯΔ w ͦ΋ͦ΋ϑϩϯτͷը໘ͷඳըҎ্ʹTFSWFSଆʹॲཧΛ͍ͤͯ͞Δ PWFSGFUDIJOH ͬͪ͜ͷվળ͕ඞཁ 57

Slide 58

Slide 58 text

58 443 3BJMT HSBQIRMSVCZ αʔόʔଆͷվળ (SBQI2- ᶃϑϩϯτଆͷվળ ᶄαʔόʔଆͷվળ ᶅ2VFSZ4DIFNBͷվળ

Slide 59

Slide 59 text

Query/Schemaͷվળ w ϑϩϯτͷը໘ͷඳըҎ্ͷ݅਺ΛαʔόʔʹϦΫΤετ ͍ͯ͠Δ 0WFSGFUDIJOH w QBHJOH͕ͳ͍഑ྻͷSFRVFTU͕͋ͬͨ w શ͘࢖͍ͬͯͳ͍΋ͷΛऔಘ͍ͯ͠Δ 59

Slide 60

Slide 60 text

Query/Schemaͷվળ w QBHJOH͕ͳ͍഑ྻͷSFRVFTU w ؔ࿈͢ΔϨίʔυ͕શ݅औಘ Ͱ͖ΔͷͰੑೳ͕ྼԽ͢Δ w ։ൃ؀ڥͰݟಀ͕ͪ͠ 60

Slide 61

Slide 61 text

Query/Schemaͷվળ w QBHJOH͕ͳ͍഑ྻͷSFRVFTU΁ͷରԠ w ݅਺Λࢦఆͯ͠औಘͰ͖ΔΑ͏ʹQBHJOHΛ௥Ճ 61

Slide 62

Slide 62 text

Query/Schemaͷվળ w QBHJOH͕ͳ͍഑ྻͷSFRVFTUͷ࠶ൃ๷ࢭ w ͦ΋ͦ΋഑ྻͷ5ZQFΛ࣋ͭ΋ͷʹQBHJOHͳ͠ͷ"1*Λఆٛ Ͱ͖Δ͜ͱ͕໰୊ w ੜ੒͞ΕΔTDIFNBʹରͯ͠MJOUΛ͔͚ͯະવʹ๷͛ͳ͍͔ Λݕ౼ w IUUQTHJUIVCDPNDKPVESFZHSBQIRMTDIFNBMJOUFS w SFMBZDPOOFDUJPOUZQFTTQFD 62

Slide 63

Slide 63 text

Query/Schemaͷվળ w શ͘࢖͍ͬͯͳ͍΋ͷΛऔಘ͍ͯ͠Δ w 2VFSZ͔Βফ͢ 63

Slide 64

Slide 64 text

Query/Schemaͷվળ w શ͘࢖͍ͬͯͳ͍΋ͷΛऔಘ͍ͯ͠Δ໰୊ͷ࠶ൃ๷ࢭ w 2ͦ΋ͦ΋ͳͥը໘ʹඥ෇͍͍ͯͳ͍RVFSZ͕ॻ͔Εͯ͠·͏ ͷ͔ʁ w "RVFSZ͕ը໘Ͱ࢖ΘΕ͍ͯΔ͔Ͳ͏͔ͷݕূ͕Ͱ͖͍ͯͳ͍ ͔Β 64

Slide 65

Slide 65 text

65

Slide 66

Slide 66 text

66 ը໘Ͱඳը͍ͯ͠ͳ͍΋ͷ Λऔಘͯ͠͠·͍ͬͯΔ

Slide 67

Slide 67 text

Query/Schemaͷվળ w શ͘࢖͍ͬͯͳ͍΋ͷΛऔಘ͍ͯ͠Δ໰୊ͷ࠶ൃ๷ࢭ w ຊདྷ(SBQI2-ͷRVFSZ͸ը໘Ͱඞཁͳཁૉͱ݁ͼ͍͍ͭͯͳ͚Ε ͹͍͚ͳ͍ w 3&45ͱҟͳΓը໘ͰඞཁͳσʔλͷΈΛऔಘͰ͖Δ͜ͱ͕ຊ དྷͷϝϦοτ w ࠓճ͸(SBQI2-ͷRVFSZ͸ը໘ͱผͷ৔ॴͰ૊ΈཱͯΒΕ͍ͯͨ 67

Slide 68

Slide 68 text

Query/Schemaͷվળ w શ͘࢖͍ͬͯͳ͍΋ͷΛऔಘ͍ͯ͠Δ໰୊ͷ࠶ൃ๷ࢭ w RVFSZͱը໘Λ݁ͼ͚ͭΔʹ͸Ͳ͏͢Ε͹Α͍͔ w 'SBHNFOUͱ$PMPDBUJPO 68

Slide 69

Slide 69 text

Query/Schemaͷվળ w 'SBHNFOU w (SBQI2-ͷRVFSZΛ෦෼తʹ੾Γग़ͨ͠΋ͷ w RVFSZͷ෼ׂ΍࠶ར༻ΛՄೳʹ͢Δ 69

Slide 70

Slide 70 text

70

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

72

Slide 73

Slide 73 text

Query/Schemaͷվળ w 'SBHNFOU w 'SBHNFOUΛ࢖͏ͱRVFSZͷ෦෼ఆ͕ٛՄೳ w 'SBHNFOUͱ$PNQPOFOUͱҰॹʹ഑ஔ͢Δ 73

Slide 74

Slide 74 text

74

Slide 75

Slide 75 text

Query/Schemaͷվળ w $PMPDBUJPO w ೔ຊޠͰ͸ʮҰॹʹ഑ஔ͢Δʯͱ͍͏ҙຯ w (SBQI2-ͷจ຺Ͱ͸GSBHNFOUΛ߹੒ͯͭ͠ͷRVFSZʹ߹੒͢Δ ͜ͱ 75

Slide 76

Slide 76 text

76

Slide 77

Slide 77 text

Query/Schemaͷվળ w 'SBHNFOUͱ$PMPDBUJPO w 'SBHNFOUͱ$PNQPOFOUΛಉ͡ ৔ॴͰ؅ཧ͢Δ w 2VFSZ͸֤$PNQPOFOUͰఆٛ͞ Εͨ'SBHNFOU͔Β૊ΈͨͯΔ w GFUDIͨ͠σʔλ͕WJFXͰར༻ ͞Ε͍ͯΔ͔Ͳ͏͔͕Ұ໨ྎવ ʹͳΔ 77 "QQ$PNQPOFOU "QQ2VFSZ 1SPEVDU-JTU*UFN #FGPSF "GUFS "QQ$PNQPOFOU "QQ2VFSZ 1SPEVDU-JTU*UFN 1SPEVDU-JTU*UFN GSBHNFOU

Slide 78

Slide 78 text

Query/Schemaͷվળ w 'SBHNFOUͱ$PMPDBUJPO w Ξφϩδʔ4DPQFE$44 w TUZMFͱ$PNQPOFOUΛಉ͡৔ॴͰ؅ཧ w (SBQI2-ͷRVFSZ΋$PNQPOFOUʹू໿͍ͯ͘͠ํ޲ʹ͢Δ΄͏ ͕ྑ͍ w ύϑΥʔϚϯεվળͷ݁Ռɺ$PNQPOFOUઃܭ͕ඇৗʹॏཁͰ ͋Δ͜ͱ͕Θ͔ͬͨ 78

Slide 79

Slide 79 text

Query/Schemaͷվળ w ͞Βʹ௥ՃͰpSTUWJFXͷWJFXQPSUͷ಺֎ͰRVFSZΛ෼ׂͨ͠ 79

Slide 80

Slide 80 text

Query/Schemaͷվળ w ͞Βʹ௥ՃͰpSTUWJFXͷWJFXQPSUͷ಺֎ͰRVFSZΛ෼ׂͨ͠ w ཹҙ఺ͱͯ͠ϒϥ΢βόοΫ࣌ͷڍಈΛߟྀ͓ͯ͘͠ඞཁ͕͋Δ w ϒϥ΢βόοΫ࣌͸BQPMMPͷDBDIF͔ΒσʔλΛ෮ݩ 80

Slide 81

Slide 81 text

81

Slide 82

Slide 82 text

82 443࣌

Slide 83

Slide 83 text

83 ϒϥ΢βόοΫ࣌

Slide 84

Slide 84 text

Query/Schemaͷվળ w ݁Ռ 84

Slide 85

Slide 85 text

Agenda ϦχϡʔΞϧ࣌ͷٕज़ߏ੒ ύϑΥʔϚϯεվળ ࠓޙͷల๬ ·ͱΊ 85

Slide 86

Slide 86 text

ࠓޙͷల๬ w DBDIFͷ׆༻Λݕ౼ w &$αΠτ͸ൺֱతϦΞϧλΠϜੑ͕௿͍ίϯςϯπ͕͋Δ w ήετϢʔβʔʹදࣔ͢Δίϯςϯπ͸جຊతʹ͸ಉ͡ w $%/ͷϨΠϠʔͰ)5.-DBDIFͱSFTQPOTFDBDIFͷ྆ํ͕
 ׆༻Մೳͳ͸ͣ 86

Slide 87

Slide 87 text

ࠓޙͷల๬ w Α͋͘Δޡղ(SBQI2-͸DBDIFͰ͖ͳ͍ w 1045ͰϦΫΤετΛૹΔ͔Β w DMJFOU͕޷͖উखʹRVFSZΛૹΕΔ͔Β 87

Slide 88

Slide 88 text

ࠓޙͷల๬ w 21045ͰϦΫΤετΛૹΔ͔ΒDBDIFͰ͖ͳ͍ w "(&5Ͱ͓͘Ε͹Α͍ʂ w 2(&5ʹ͢ΔͱRVFSZQBSBNFUFS͕௕͘ͳͬͯ$%/ͷ੍ݶʹҾͬ ͔͔Δ w "LFZWBMVFͰࣄલʹRVFSZΛαʔόʔଆʹొ࿥͓͚ͯ͠͹Α͍ 88

Slide 89

Slide 89 text

ࠓޙͷల๬ w LFZͱͯ͠(SBQI2-ͷRVFSZͷத਎ΛIBTIԽͨ͠΋ͷΛ࢖͏͜ͱ ͕ଟ͍ʢ1FSTJTUFERVFSZʣ 89 https://www.apollographql.com/docs/apollo-server/performance/apq/

Slide 90

Slide 90 text

ࠓޙͷల๬ w LFZͷొ࿥ w $PNQJMFUJNFQVTI w CVJME࣌ʹొ࿥ w 3VOUJNFQVTI w ޙ͔Βಈతʹొ࿥ w DMJFOU༻ͷϥΠϒϥϦ BQPMMPMJOLQFSTJTUFE RVFSZ 90 3VOUJNFQVTI

Slide 91

Slide 91 text

ࠓޙͷల๬ w DMJFOU͕޷͖উखʹRVFSZΛૹΕΔ͔Β w pFMEͷதʹVTFSEFQFOEFOUͳσʔλ͕͋Ε͹DBDIFΛ͠ͳ͍ ࢓૊Έ͕ඞཁ w ͜Ε͕͋Ε͹DBDIFͰ͖Δ 91

Slide 92

Slide 92 text

w "QPMMP4FSWFSͰ͸ϥΠϒϥϦଆͰαϙʔτ ࠓޙͷల๬ 92

Slide 93

Slide 93 text

w HSBQIRMSVCZͰ࣮ݱ͢Δํ๏Λݕ౼த ࠓޙͷల๬ 93

Slide 94

Slide 94 text

·ͱΊ w αΠτͷύϑΥʔϚϯεվળΛᶃϑϩϯτଆɺᶄαʔόʔଆɺ ᶅ2VFSZ4DIFNBͷվળͷͭʹ෼͚ͯվળΛ࣮ࢪ w (SBQI2-Λ׆༻͢Δ৔߹͸PWFSGFUDIJOHͳͲͷ(SBQI2-ͷσϝ ϦοτΛΧόʔ͢Δઃܭ͕ඇৗʹॏཁ w DMJFOUଆͰը໘ͷߏ੒ʹԠͯ͡RVFSZͷνϡʔχϯάʢ"1*ͷνϡʔ χϯάʣΛͰ͖Δ͜ͱ͕(SBQI2-ͳΒͰ͸ͷϝϦοτ w DBDIFΛ׆༻͢Δ͜ͱͰ͞ΒͳΔߴ଎Խ΋Մೳ 94

Slide 95

Slide 95 text

ࣗݾ঺հ w ᖒҪએ඙ʢ͞Θ͍ͷͿͻ͜ʣ w UXJUUFSHJUIVCOPCVIJLPTBXBJ w αʔόʔαΠυ w ϑϩϯτΤϯυ 95

Slide 96

Slide 96 text

͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠