Slide 1

Slide 1 text

2024/12/17 ੡଄ϏδωεςΫϊϩδʔ෦ ࠤ౻ஐथ ͋ͷ೔Զୡ͕ເݟͨ αʔόϨεΞʔΩςΫνϟ

Slide 2

Slide 2 text

ࣗݾ঺հ !UNL !UPNPLJ • ࠤ౻ஐथ • ੡଄ϏδωεςΫϊϩδʔ෦ • ΞʔΩςΫτνʔϜ • JAWS-UG CDKࢧ෦ ӡӦ • ޷͖ͳAWSαʔϏε -BNCEB $%,

Slide 3

Slide 3 text

஫ҙɿ൒෼ϙΤϜͰ͢

Slide 4

Slide 4 text

ਅ໘໨ʹDSQLղઆ/΍ͬͯΈͨهࣄ https://dev.classmethod.jp/tags/amazon-aurora-dsql/ DevIOͰطʹAurora DSQLͷهࣄ͕14→17ຊʂਅ໘໨ͳ࿩͸ੋඇͦͪΒͰʂ

Slide 5

Slide 5 text

2020೥ͷࣗ෼ • స৬ͯ͠αʔόϨε΍͍ͬͯͥ͘ʂ • αʔόϨεͱ͍͑͹API Gateway+Lambda+DynamoDBͩʂ • ΞϓϦ͕ෳࡶʹͳ͖ͬͯͨͷͰDynamoDBͷઃܭݟ௚ͥ͢ʂ https://www.slideshare.net/slideshow/db-20190905/171086391

Slide 6

Slide 6 text

2020೥ͷࣗ෼ https://www.slideshare.net/slideshow/db-20190905/171086391

Slide 7

Slide 7 text

DynamoDBઃܭʹڽΓͩͨ͠ࡍͷ͋Δ͋Δ • ΞΫηεύλʔϯΛ੔ཧͯ͠GSIઃܭͩʂ • ඇਖ਼نԽͩʂଟରଟͷؔ܎Ͱྡ઀ؔ܎ͷ Ϧετઃܭύλʔϯͩʂ • γϯάϧςʔϒϧઃܭͩʂ • ొஃऀ͸Ϛϧνςʔϒϧઃܭ೿ • GSIΦʔόʔϩʔσΟϯάͩʂ https://docs.aws.amazon.com/ja_jp/amazondynamodb/ latest/developerguide/bp-gsi-overloading.html

Slide 8

Slide 8 text

DynamoDBΛ࢖͏৔߹ʹΑ͋͘ΔΞʔΩςΫνϟ AWS Lambda Amazon DynamoDB Amazon Aurora Amazon OpenSearch Service AWS Lambda Amazon DynamoDB AWS Lambda Amazon DynamoDB Amazon S3 ɾɾɾ ɾɾɾ ɾɾɾ

Slide 9

Slide 9 text

VPCϨεͰSQL΋࣮ߦͰ͖Δ ׬શͳαʔόϨεΞʔΩςΫνϟͰ ෼͔Γ΍͘͢γεςϜ૊Ίͳ͍͔ͳ

Slide 10

Slide 10 text

re:Invent 2020

Slide 11

Slide 11 text

re:Invent 2020 https://dev.classmethod.jp/articles/partiql-for-dynamodb-example/

Slide 12

Slide 12 text

2020೥தͷΞοϓσʔτ

Slide 13

Slide 13 text

re:Invent 2021 https://dev.classmethod.jp/articles/new-amazon-dynamodb-standard-infrequest-access-table-class/

Slide 14

Slide 14 text

re:Invent 2022

Slide 15

Slide 15 text

re:Invent 2023

Slide 16

Slide 16 text

re:Invent 2024

Slide 17

Slide 17 text

re:Invent 2024

Slide 18

Slide 18 text

re:Invent 2024

Slide 19

Slide 19 text

20 DB෦෼΋VPCϨεͰRDBMS͕ར༻Մೳͳ ͋ͷ೔Զୡ͕ເݟͨαʔόϨεΞʔΩςΫνϟ͕ͦ͜ʹ͋Δʂ Aurora DSQLͰߟ͑ΒΕΔΞʔΩςΫνϟ Amazon Aurora DSQL AWS Lambda γϯϓϧʂʂ

Slide 20

Slide 20 text

21 • PostgresͰ࢖͑Δػೳ͕ϚωʔδυԽ͢ΔͨΊʹ࠹͕Ε͍ͯΔɻ݁ߏ࢖͑ͳ͍ػೳ͕ ͋Δ(Foreign keys΍VIEWͳͲ)ɻORMʹඞཁͳػೳ͕࠹͕͍ͬͯͯ࢖͑ͳ͔ͬͨΓ • ָ؍తಉ࣮࣌ߦ੍ޚͳ͜ͱΛཧղͯ͠ΞϓϦଆΛઃܭ ஫ҙɿ·ͩ৭ʑ͜Ε͔Β https://dev.classmethod.jp/articles/re- growth-aws-re-invent-2024-awsreinvent- regrowth_fuk/ https://dev.classmethod.jp/articles/ reinvent-dsql-drizzle-lambda-migration/ https://dev.classmethod.jp/articles/ slug-KDrUpAFyxapQ/

Slide 21

Slide 21 text

ΈΜͳͰ࢖ͬͯϑΟʔυόοΫ͠Α͏ʂ

Slide 22

Slide 22 text

એ఻ ໌೔CDKࢧ෦Ͱࠓ೥ͷৼΓฦΓ΍Γ·͢ʂ connpassʹͯʮCDKʯͰݕࡧʂ

Slide 23

Slide 23 text

એ఻2 ձࣾͷํͰ΋Πϕϯτ΍Γ·͢ʂ ΦϯϥΠϯɾΦϑϥΠϯ྆ํ͋ΔͷͰੋඇʂ