Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
tsukiji.graphql #1 Pocket MusubiでのAppSyncの使い所
Search
kakehashi
July 06, 2023
Business
0
190
tsukiji.graphql #1 Pocket MusubiでのAppSyncの使い所
kakehashi
July 06, 2023
Tweet
Share
More Decks by kakehashi
See All by kakehashi
OKRと「測りすぎ」 〜なりたい姿を、「測りすぎ」ないようにしながらどう追いかけるか〜/OKR and the tyranny of metrics
kakehashi
30
12k
複雑なビジネスルールに挑む:正確性と効率性を両立するfp-tsのチーム活用術 / Strike a balance between correctness and efficiency with fp-ts
kakehashi
5
3.7k
開発組織のOKRの作り方 / OKR in a development division
kakehashi
13
4.4k
実はたくさんほしい インシデント報告/more incident reports
kakehashi
0
280
KAKEHASHI会社説明資料/Company information materials
kakehashi
0
2.9k
linkマクロが使いたい/smart knowledge management with link macro
kakehashi
2
980
Value Driven DevOps Team
kakehashi
13
4.3k
GitHubを使わずDatabricksだけで お手軽にライブラリ共有やCIが できる環境を作ってみた/Creating an Environment for Easy Library Sharing and CI Using Only Databricks Without GitHub
kakehashi
1
340
循環する学び~現場とコミュニティの境目で考える~/Learning Cycle between a team and a community
kakehashi
14
6.8k
Other Decks in Business
See All in Business
akippa株式会社 - 会社紹介資料
akippa
3
46k
2023年度ICT職専門研修(海外派遣研修)報告書_No.2_サービスデザインの体系的な知識取得によるDX支援の質向上
tokyo_metropolitan_gov_digital_hr
0
260
SnowflakeのCI/CDフローを整備した話 / snowflake-cicd-flow-maintenance
creativesurvey
0
190
アシスト 会社紹介資料
ashisuto_career
3
64k
2024年12月期 第1四半期 決算説明資料
mobcast20040326
PRO
0
430
株式会社Gakken LEAP 会社紹介資料
gakkenleap
1
1.1k
ジンジニアのキャリア ~てぃーびーの場合~ / Tb's career
tbpgr
0
540
ドワンゴエンジニアインターンシップ/engineer internship
dwango_recruit
0
980
Ampersand Company Profile
cuebicventures
PRO
2
3.7k
【DearOne】Dear Newest Member
hrm
1
2.6k
解説カンバン方式
pokotyamu
1
210
【株式会社エンペイ】会社紹介資料
enpay
0
190
Featured
See All Featured
Designing for humans not robots
tammielis
247
25k
Typedesign – Prime Four
hannesfritz
36
2.1k
Imperfection Machines: The Place of Print at Facebook
scottboms
261
12k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
23
1.7k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
Testing 201, or: Great Expectations
jmmastey
30
6.4k
The Cost Of JavaScript in 2023
addyosmani
21
4k
The Brand Is Dead. Long Live the Brand.
mthomps
49
31k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Writing Fast Ruby
sferik
622
60k
Statistics for Hackers
jakevdp
790
220k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
20
1.8k
Transcript
Pocket MusubiでのAppSyncの使い所 2023/07/06 株式会社カケハシ 種岡 tsukiji.graphql #1
自己紹介 ・カケハシ入社 3年目 ・Pocket Musubiを開発するチームに所属 ・バックエンドを主軸にインフラやフロントエンドも従事 ・2人の娘の育児に奮闘中 Copyright © KAKEHASHI
Inc. All Rights Reserved. 2
アジェンダ Copyright © KAKEHASHI Inc. All Rights Reserved. 3
Pocket MusubiではGraphQLサーバーとしてAppSyncを採用 AppSyncの開発周りの知見を共有
おくすり連絡帳について Copyright © KAKEHASHI Inc. All Rights Reserved. 4
システム設計概要 Copyright © KAKEHASHI Inc. All Rights Reserved. 5
AppSync Copyright © KAKEHASHI Inc. All Rights Reserved. 6
・AWSのフルマーネージドサービス(サーバー自体のセキュリティを考えなくて良い) ・AWSのサービスとの相性が良い ・DynamoDBを直接繋げたり ・複雑なビジネスロジックは Lambdaに分離したり ・CognitoやIAM認証、Lambdaで認証ロジックも作れたり ・WAFをボタンポチで追加できたり ・Subscriptionの実装が楽 ・Private APIモードが最近出た クロスアカウントアクセスで AppSync Private APIを使う話(カケハシTechBlog)
AppSync Copyright © KAKEHASHI Inc. All Rights Reserved. 7
・カスタムディレクティブが使えない Validationロジックがどうしても膨らむ ・カスタムスカラーも使えない AppSync側で用意してくれているスカラー型 でいまのところ足りてはいるけど。。。 ・レスポンス自体はすべてのフィールドを返す実装 クライアントからクエリオペレーションされたフィールドのみ返すということができない 場合によってはレスポンスサイズ上限に引っかかってしまう Apollo Serverなどに比べると柔軟性は低い
ローカルでの開発 Copyright © KAKEHASHI Inc. All Rights Reserved. 8
インフラの管理だけでなく、アプリケーションコードの開発支援してくれる CDK ライブデバッグ可能( VS Code,WebStorm,IntelliJ IDEA) Live Lambda Developmentが優秀(Local環境でLambdaのロジック開発) メンバー毎の開発環境が簡単に構築できる まったく新しい開発体験をもたらす Serverless Stackとは何か(カケハシTechBlog)
Live Lambda Development 利用例 Copyright © KAKEHASHI Inc. All Rights
Reserved. 9 ローカルでLambdaの ロジック開発に専念 専用の開発DB ライブデバッグ Lambda以外のサービ スはそのまま使える
Copyright © KAKEHASHI Inc. All Rights Reserved. 10 ご清聴ありがとうございました