Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
サーバレスライブコマースシステムの構築
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Kazuki Miura
PRO
October 27, 2020
Technology
1.2k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
サーバレスライブコマースシステムの構築
#jawsug #jawsug_asa
Kazuki Miura
PRO
October 27, 2020
More Decks by Kazuki Miura
See All by Kazuki Miura
re:Invent の去年のスケジュールを公開します!
miu_crescent
PRO
0
150
ラスベガスで道民会を実施してる話。あとヌードルアジア。
miu_crescent
PRO
0
480
Kiro Crewしか勝たん!?
miu_crescent
PRO
0
250
Kiro Crew で始める マルチエージェント開発
miu_crescent
PRO
1
290
Lambdaで動画のエンコードしたら MediaConvertに勝てるのか
miu_crescent
PRO
0
98
AWS Summit 報道現場で磨き上げた、 文字起こしシステムの開発。
miu_crescent
PRO
0
56
報道現場で磨き上げた、 ⽂字起こしシステムの開発
miu_crescent
PRO
0
61
地域のCCoEの拡大を目指す 企業間コミュニティ 「re:light local」について
miu_crescent
PRO
0
96
us-east-1 に障害が起きた時に、 ap-northeast-1 にどんな影響があるか 説明できるようになろう!
miu_crescent
PRO
13
5.5k
Other Decks in Technology
See All in Technology
スマートロックを支えるFlutter × ネイティブ連携の実践 / Flutter and Native Integration in Practice: Powering Smart Locks
bitkey
PRO
0
140
Deep Data Security 機能解説
oracle4engineer
PRO
3
990
AIエージェント時代、Kaggleにどう取り組むか
takanao
2
470
AI時代、つくる力を自分たちの手に。 ──電通×KAG、アジャイルとAI駆動開発で挑む開発の変革
yuukiyo
3
450
Don't write the architecture only in the prompt.
neohsu
0
290
AI Search (Foundry IQ) におけるRAGデータの準備と配置
ryomaru0825
1
130
詳解 never 型 - ボトム型の性質を深掘り
nealle
0
130
新卒エンジニア、 介護士になる
ryu1013
1
660
Systems Manager AgentがインストールされたPCを紛失した時の対策を考えてみた
amarelo_n24
1
110
バックオフィスに染み出すTypeScript ── clasp で安全に仕組みを作る
nealle
1
160
Flutter Widget Previewerで始めるUIプレビューとVRTの自動化
sakusaku3939
0
190
"計画的無茶振り"を通してAIネイティブ世代の新人を育てる
subroh0508
1
140
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
650
sira's awesome portfolio website redesign presentation
elsirapls
0
480
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
600
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Product Roadmaps are Hard
iamctodd
55
13k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
310
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
390
Un-Boring Meetings
codingconduct
0
480
Navigating Weather and Climate Data
rabernat
0
570
Design in an AI World
tapps
1
380
Transcript
session2 JAWS-UG ASA | 2020.10.27 動画配信 お買い物 サーバレス
⾃⼰紹介 三浦一樹
動画配信 お買い物 サーバレス こんな感じのシステム作りました
アーキテクチャ サーバレス
こんなイベント がありまして
もともとは全国行脚
今年も そのはずでした
None
None
決まったのは8月頭 ※グッズは発注済み
本番は10月頭
2ヶ月しかない
山奥からの 無料動画配信 グッズ販売 当日内容は不明
動画配信部分
動画配信 動画配信部分
動画配信 今までは LiveShellシリーズ OBS
動画配信 今までは LiveShellシリーズ OBS 操作画面が CEREVOサーバ windows...
動画配信 安定性がほしい! 当日は何もしたくない!!
黄色い箱、買っちゃいました
動画配信 aws から買えるハードウェア $995
動画配信 アカウント紐付け 刺すだけでinputとして認識 マネージドコンソールから 死活監視ができる
SINGLE_PIPELINE しか設定できないのでMediaLive が2つ必要です 動画配信
お買い物
お買い物 めっちゃ便利 BuyButton ならコピペするだけ
お買い物 完成したも同然だわ
お買い物 9月頭
お買い物 タイムセール するから 9月頭
お買い物 時間限定商品 がある 9月頭
聞いてねぇぇえ お買い物
お買い物 リロードしたら 動画止まっちゃうし スパイクアクセス怖いし
お買い物
お買い物
お買い物 subscription 使えばリアルタイム更新 出来るって聞いたぞ AppSync
お買い物
お買い物 timeSaleFlg 0 or 1
お買い物 ・query ・mutation ・subscription
query お買い物 { id : 'aircaravan' } type Query {
singlePost(id: ID!): Post } { "data": { "singlePost": { "id": "aircaravan", "timeSaleFlg": 1 } } } { "id": "aircaravan", "timeSaleFlg": 1 } AppSync Amplify DynamoDB
mutation お買い物 { timeSaleFlg: 1 } type Mutation {
putPost(id: ID, timeSaleFlg: Int!): Post } { id: "aircaravan", timeSaleFlg: event.arguments.timeSaleFlg } Item: { id: "aircaravan", timeSaleFlg: event.arguments.timeSaleFlg } { "data": { "singlePost": { "id": "aircaravan", "timeSaleFlg": 1 } } } なんも返してない console AppSync Lambda DynamoDB query用にDynamoDBに保存
subscriptin お買い物 console AppSync Amplify { timeSaleFlg: 1 }
type Subscription { onPutPost: Post @aws_subscribe(mutations: ["putPost"]) } { "data": { "onPutPost": { "id": "aircaravan", "timeSaleFlg": 1 } } } WebSocket type Mutation { putPost(id: ID, timeSaleFlg: Int!): Post }
AppSync AppSync お買い物 { timeSaleFlg: 0 } {
timeSaleFlg: 1 } shopify GraphQL 非表示 商品入れ替え 表示 イベント会場でインカム聞きながら コンソールで直操作
AppSync AppSync Amplify お買い物 { timeSaleFlg: 0 } {
timeSaleFlg: 1 } shopify GraphQL イベント会場でインカム聞きながら コンソールで直操作 <v-if="timeSaleFlg"> 非表示 表示
お買い物 リロードなし イベント進行に合わせた リアルタイム更新ができた!! AppSync で $4くらい
他のはまたの機会に VPCの内側 わからない
ツッコミなどは twitter で! @miu_crescent 動画配信 お買い物 サーバレス