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

ドメイン駆動設計の実際(2020/4/20 DDD Online MeetUp)

ドメイン駆動設計の実際(2020/4/20 DDD Online MeetUp)

AWSの障害対応のせいで登壇できませんでしたが、せめて資料だけでもUPします。。。

YasuhiroKimesawa

April 24, 2020
Tweet

More Decks by YasuhiroKimesawa

Other Decks in Programming

Transcript

  1. υϝΠϯۦಈઃܭͷ
    ࣮ࡍ

    View full-size slide

  2. $PQZSJHIU˜:BTVIJSP,JNFTBXB"MM3JHIUT3FTFSWFE
    ·ͣ͸
    ͜Μͳঢ়گʹ΋ؔΘΒͣɺ
    ίϛϡχςΟ׆ಈΛଓ͚ͯ
    ͩͬͨ͘͞MJUUMF@IBOET͞
    Μʹײँ

    View full-size slide

  3. w גࣜձࣾ;0;0ςΫϊϩδʔζॴଐ ݄຤·ͰגࣜձࣾΞϥ
    λφ⇛ٵऩ͞Εస੶͠·ͨ͠ʣɹ
    ฐࣾαʔϏε'VMpMMNFOUCZ;0;0ઃܭओ؅ͷҰਓ
    w Ӭԕͷ̏̕ࡀ
    w ීஈ͸όοΫΤϯυଆͷ։ൃ
    w ೝఆεΫϥϜϚελʔ
    w 2JJUB!:BTVIJSP,JNFTBXB
    w 5XJUUFSQJMHSJN@SFET
    w #MPHIUUQTQJMHSJNMJGFTUZMFKQ
    ࣗݾ঺հ

    View full-size slide

  4. $PQZSJHIU˜:BTVIJSP,JNFTBXB"MM3JHIUT3FTFSWFE
    ࠓճͷࣄྫ
    w ݴޠɿ1ZUIPOʙ ࠓͲ͏ͯ͠΋1ZUIPOͰ%%%΍
    ΔͳΒ͕͓͢͢ΊɻEBUBDMBTTFT͕࢖͑Δ

    w "844FSWFSMFTTத৺
    w 4FSWFSMFTT'SBNFXPSL
    w -BNCEB%ZOBNP%#"1*(BUFXBZ
    w ։ൃ౰࣌͸-BNCEBͰ+BWBͳͲͷ੩తݴޠ͸ޚ๏౓
    ͩͬͨ

    View full-size slide

  5. $PQZSJHIU˜:BTVIJSP,JNFTBXB"MM3JHIUT3FTFSWFE
    ࠓճͷࣄྫ
    4FSWFSMFTTͰ%%%ͱ͍͏͜ͱͰɺ$234ͱ͔ϚΠΫ
    ϩαʔϏεͱ͔ͦΜͳ࿩Λظ଴͞ΕͨΒ͢Έ·ͤ
    Μɻɻɻʢ෼Ͱ͸ޠΕͳ͍ͷͰ͍ͣΕʣ

    View full-size slide

  6. $PQZSJHIU˜:BTVIJSP,JNFTBXB"MM3JHIUT3FTFSWFE
    ࣌ؒ΋ͳ͍ͷͰ෼ͰޠΕΔ͚ͩίπΛ঺հ
    ᶃ ΞʔΩςΫνϟʹͩ͜ΘΓ͗͢ͳ͍
    ᶄ େࣄͳͷ͸Ϟσϧɻ
    ᶅ ܕ͕ͳ͍ͳΒςετॻ͚
    ᶆ มԽʹඋ͑Αɺͦͯ͠ҙࣝͯ͠มԽͤΑ

    View full-size slide

  7. $PQZSJHIU˜:BTVIJSP,JNFTBXB"MM3JHIUT3FTFSWFE
    ᶃΞʔΩςΫνϟʹͩ͜ΘΓ͗͢ͳ͍
    $MFBO"SDIJUFDUVSFͱ͔0OJPO"SDIJUFDUVSFͱ͔
    .JDSP4FSWJDFTͱ͔৭ʑ͋Δ͚Ͳɺେࣄͳͷ͸Ϟσ
    ϧɻ
    ґଘͷํ޲ͱ͔΋ؾʹͳΔ͚Ͳͩ͜ΘΓ͗͢ͳ͍ɻ
    ۃ୺ʹݴ͑͹%*ͳͲ࢖Θͣ$POUSPMMFS΍)BOEMFSͰΠ
    ϯελϯε࢖ͬͯ౉ͯ͠΋͍͍͠ɺϞϊϦγοΫͳγ
    εςϜͰ΋͍͍ɻ
    େࣄͳͷ͸·ͣϞσϧ

    View full-size slide

  8. $PQZSJHIU˜:BTVIJSP,JNFTBXB"MM3JHIUT3FTFSWFE
    ᶄେࣄͳͷ͸Ϟσϧ
    ॳΊͯ%%%Ͱ࣮૷͢Δϝϯόʔ͕ଟ͍ͱϞσϧҎ֎ͷͱ
    ͜ΖͰ࣌ؒΛ͔͚͗͢Δ܏޲͕͋Δɻ
    ϩδοΫʹ͔͚࣌ؒ͗ͯ͢ɺτϥϯβΫγϣϯεΫϦϓ
    τʹͳΓ͕ͪɻ
    େࣄͳͷ͸Ϟσϧ
    Ϋϥεਤɾঢ়ଶભҠਤΛॻ͘ɻҰॹʹϞσϧΛϨϏϡʔ
    ͢Δɻٞ࿦͢ΔɻϞσϧͷݴ༿Λձ࿩Ͱ΋࢖͏ɻ
    Ϟσϧ͕ബ͘ͳ͍͔ɺΞϓϦέʔγϣϯ૚ɺΠϯϑϥ૚
    ͕ॏ͘ͳ͍͔ΛపఈతʹϨϏϡʔ͢Δɻ

    View full-size slide

  9. $PQZSJHIU˜:BTVIJSP,JNFTBXB"MM3JHIUT3FTFSWFE
    ᶅܕ͕ͳ͍ͳΒςετॻ͚
    1ZUIPOબ୒ͯ͠͠·ͬͯۤ࿑ͨ͠఺ͷҰ͕ͭܕ
    ͕ͳ͍͜ͱɻ
    ςετͰΧόʔ͢Δ͔͠ͳ͍ɻ
    ςετΛॻ͘ɻςετΛϝϯς͢Δʢ࣮ߦʹ࣌
    ͕͔͔ؒΔͱੜ࢈ੑʹӨڹ͕ग़ΔʣɻΧόϨο
    δ̍̌̌ˋ໨ࢦͯ͠΋͍͍ͱࢥ͏ʢ̍̌̌ˋඞ
    ୡͱ͸ݴ͍ͬͯͳ͍ʣ
    ͨͩܕ͕͋ΔݴޠΛબͿͷ͕ϕετͳͷ͸ؒҧ͍ͳ͍

    View full-size slide

  10. $PQZSJHIU˜:BTVIJSP,JNFTBXB"MM3JHIUT3FTFSWFE
    ᶆมԽʹඋ͑ΑɻมԽͤΑɻ
    ࣄۀͷมԽʹιʔείʔυ͕͍ͭͯ͜Εͳ͚Ε͹%%%
    Ͱઃܭ͍ͯ͠Δҙຯ͕ͳ͍ɻ
    ػೳ௥ՃʹϞσϧΛ௥ՃɻɻɻͰ͸ͳ͍ɻ ൿ఻ͷλϨ
    ͷ௥ՃͰ͸͍͔ͭιϑτ΢ΣΞͱͱ΋ʹࣄۀ͕ࢮ͵

    ػೳ௥ՃʹࣄۀͷมԽʹϞσϧͷมԽ
    ֶशͨ͜͠ͱΛιʔείʔυʹ൓ө͢ΔνϟϯεͰ΋
    ͋ΔɻΫϥε໊Λݟ௚͢ɻϞδϡʔϧ΍ू໿ͷߏ଄Λ
    ݟ௚͠ɺมߋ͍ͯ͘͜͠ͱ͕େࣄɻ

    View full-size slide

  11. $PQZSJHIU˜:BTVIJSP,JNFTBXB"MM3JHIUT3FTFSWFE
    ͍͞͝ʹ
    ஍ຯʹݟ͑Δ͚ͲɺϞσϧʹ࣌ؒΛ͔͚ͳ
    ͍νʔϜ͸݁ߏଟ͍ͷͰ͸ɻ
    ஍ຯͳ͜ͱΛ͖ͪΜͱͰ͖ΔνʔϜ͕ࣄۀ
    Λ੒௕ͤ͞Δ͜ͱ͕Ͱ͖ΔνʔϜͩͱࢥ͍
    ·͢ʢฐ͕ࣾͰ͖͍ͯΔͱ͸ݴ͍ͬͯͳ
    ͍ɻɻɻͱ͍͏ͷ͕൵͍͠ͱ͜Ζʣɻ

    View full-size slide