Amazon Kinesis Streams デモ

52
© RecoChoku Co.,Ltd. Proprietary and Confidential © RecoChoku Co.,Ltd. Proprietary and Confidential RecoChoku Tech Night AWS re:Invent 参加レポート AWS Kinesis Video Streamsデモ

Transcript of Amazon Kinesis Streams デモ

Page 1: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

RecoChoku Tech Night

AWS re:Invent 参加レポート

AWS Kinesis Video Streamsデモ

Page 2: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

• 自己紹介

• re:Inventに参加してみて

– どんなスケジュールだったか

– どなことをしてたか

• AWS Kinesis Video Stream

– 概要

– ユースケース

– 使ってみる

• AWS Kinesis Video Stream デモ

• おわりに

アジェンダ

Page 3: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

• 名前– 高橋克幸 (26)

• 所属– 事業システム部 (新卒2年目)

• システム・アーキテクトグループ(SAG)

• 得意な言語– Java

• 好きなAWSサービス– CloudFormation

• 趣味– 麻雀

– ラーメン

自己紹介

Page 4: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

• 1日目 : 出国– 成田空港 ->ロサンゼルス->ラスベガス– re:Inventの会場でレジストレーション

• 2日目 : re:Invent– セッション参加

• 3日目 : re:Invent– セッション参加

• 4日目 : re:Invent– セッション参加

スケジュール

• 5日目 : re:Invent– セッション参加

• 6日目 : 移動– ラスベガス -> ロサンゼルス– 音楽イベント Jingle Bell Ball に参加

• 7日目 : 研修– TechStarsのオフィスで研修– Exit Reality社の製品を体験

• 8日目 : 帰国– ロサンゼルス -> 成田空港

Page 5: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

出国 成田空港

Page 6: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

ロサンゼルス から ラスベガスへ移動

Page 7: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

ラスベガス空港

Page 8: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

空港のカジノ

Page 9: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

空港からホテルへの移動

Page 10: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Invent会場へ

Page 11: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

Registoration会場

Page 12: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

ホテル周りを散策

Page 13: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Invent 初日開場前

Page 14: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

お昼

Page 15: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

Japan Night

Page 16: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

いくつかセッションに参加して…

その後

Page 17: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Invent 初日のブログを投稿

参考 : https://techblog.recochoku.jp

Page 18: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

2日目からブースが展開

Page 19: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Invent 2日のブログを投稿

参考 : https://techblog.recochoku.jp

Page 20: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

3日目 Keynotes 会場前

Page 21: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

入場すると

Page 22: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

ノリノリのDJ

Page 23: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Invent 会場

Page 24: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

AWS忍者も

Page 25: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

いくつかセッションに参加して…

その後

Page 26: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Invent 3日のブログを投稿

参考 : https://techblog.recochoku.jp

Page 27: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

4日目re:Invent 会場

Page 28: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Play 開場前

Page 29: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Play会場の外観

Page 30: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Play会場

Page 31: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Play 参加後…

そして

Page 32: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

re:Invent 最終日のブログを投稿

参考 : https://techblog.recochoku.jp

Page 33: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

ラスベガスからロサンゼルスに移動

研修のため

Page 34: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

ラスベガスからロサンゼルスへ移動後、音楽イベントへ

Page 35: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

イベントの様子

Page 36: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

ロサンゼルスで研修 – Techstarsのオフィス

Page 37: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

ホテルの一角にてExit Reality を体験

Page 38: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

研修後、サンタモニカを散策

Page 39: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

• とても刺激的な機会だった

– 初めての海外で初めてだらけ

– 音楽に対する熱量がまったく違った

• 会場の各所にDJが常時いる

• 海外のエンジニアと会話できる

– コミュニケーションは取れるものの…

– ディスカッションできればと後悔

• re:Invent以外でも

– 研修で海外のスタートアップ企業を見れたのはよかった

re:Inventに参加してみて

Page 40: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

Amazon Kinesis Video Stream

Page 41: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

• Amazon Kinesisとは– ストリーミングデータをリアルタイムに収集、分析、処理する– フルマネージド– スケーラブル– リアルタイム

• サービス– Data Stream

• ストリームを取得し別のアプリケーションへと送信する– Data Firehouse

• Stream で受け取ったデータを他のコンポーネントへ出力する– Data Analytics, S3, Amazon Redshiftなど

– Data Analytics• 標準 SQL でストリーミングデータをリアルタイムで処理できる

– Video Streams <- new!!

Amazon Kinesis Video Streams - 概要

Page 42: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

Concept

Page 43: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

• Producer

– エッジデバイス

– Amazon から提供されているSDKを利用

– Kinesisへ動画ストリームを送信する

• Amazon Kinesis Video Streams

– Producer から動画ストリームを受けとる

– Consumer へ動画ストリームを渡す

– Producer と Consumer の橋渡し役

• Consumer

– 動画ストリームを処理するアプリケーション

Amazon Kinesis Video Streams の構成要素

Page 44: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

Use Case 1 – Smart Home

Page 45: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

Use Case 2 – Smart City

Page 46: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

Use Case 3 – Industrial Automation

Page 47: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

Integration

Page 48: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

デモ

Page 49: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

デモの構成

SDK

Page 50: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

デモ

Page 51: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

• SDKのモジュールはPython3系だとビルドに失敗する

– Documentがまだ整っていない

– ロカールの環境が3系でモジュールインストールに手こずっった

– Bisonはソースコードからビルド・インストールする必要があった

• デモアプリはリージョンをオレゴン以外にすると動かない

– ハードコーディングされている模様

• 単純に us-west-2をap-northeast-1に修正しても動かなかった

• ConsumerとProducerを自前で作る必要がある

– SageMakerへの連携ができればいろいろとできそう

– AWSさんならすぐ対応してくれると思う

おわりに

Page 52: Amazon Kinesis Streams デモ

© RecoChoku Co.,Ltd. Proprietary and Confidential© RecoChoku Co.,Ltd. Proprietary and Confidential

ブログの宣伝

https://techblog.recochoku.jp

エンジニアブログやってます。レコチョクエンジニアで検索