Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

アーキテクチャを決定する #1

Closed
hirokisakabe opened this issue Apr 6, 2022 · 5 comments
Closed

アーキテクチャを決定する #1

hirokisakabe opened this issue Apr 6, 2022 · 5 comments
Assignees
Labels
タスク [Deprecated] スクラムでの開発をしなくなったため非推奨

Comments

@hirokisakabe
Copy link
Contributor

hirokisakabe commented Apr 6, 2022

前提

下記、要件を満たすものを考える。

  • Pythonが動作すること
  • Boltが動作すること
  • TensorFlowが動作すること
  • なんらかのデータベースが利用できること

また、現時点ではクラウド上でのモデルの学習は考慮しない。

現時点での候補

AWS

  • API Gateway & Lambda & DynamoDB パターン
  • Serverless Frameworkを利用する
  • Lambdaは、TensorFlow学習済みモデルを含んだカスタムDockerイメージを使う

参考

Heroku

  • slug size制限が存在するので注意

参考

@hirokisakabe hirokisakabe added the タスク [Deprecated] スクラムでの開発をしなくなったため非推奨 label Apr 6, 2022
@hirokisakabe hirokisakabe self-assigned this Apr 6, 2022
@hirokisakabe
Copy link
Contributor Author

一度、AWSの方で、検証用に構築してみる。

@hirokisakabe
Copy link
Contributor Author

AWSの初期設定中。

AWS Budgetsによるアラート設定を追加した。
32$ ≒ 4000円を超えそうだと予測されるとメールにてアラートされる。

スクリーンショット 2022-04-08 10 21 24

@takuya-okamoto-esm
Copy link
Contributor

AWSで構成した場合のアーキテクチャ概要を書き出してみました。
元ファイルはこちら

(Lambda用のコンテナを保持するECRについては省略)

コメント、質問などあればお願いします。

image

まだよくわからないところ

  • モデルの作成(バッチ処理的に動かすのかな)がLambdaでやれるのか
  • 定期実行はEventBridgeで行けるのか
  • 「モデル作成」とは何を作るのか
    → ニューラルネットでリコメンドする場合の流れについて理解不足
  • データベースに何を使うのか
  • 外部のオープンデータ(Amazonなど)との連携が発生するのかどうか
    → これはサービスの内容次第、1stリリースでは当面不要と思っています

@hirokisakabe
Copy link
Contributor Author

モデルの作成

これは、このIssueで取り扱っているスコープの範囲外だと認識しています。

@hirokisakabe
Copy link
Contributor Author

下記を確認できたので、AWSを中心に据えたアーキテクチャで決定とする。

  • Pythonが動作すること
  • Boltが動作すること
  • TensorFlowが動作すること

データベースに関しては、 #30 にて対応する。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
タスク [Deprecated] スクラムでの開発をしなくなったため非推奨
Projects
None yet
Development

No branches or pull requests

2 participants