Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

設計と概観 #1

Open
1 task done
kawasin73 opened this issue Jun 2, 2019 · 3 comments
Open
1 task done

設計と概観 #1

kawasin73 opened this issue Jun 2, 2019 · 3 comments
Assignees

Comments

@kawasin73
Copy link
Owner

kawasin73 commented Jun 2, 2019

雑に。

以下の構成でいく。

  • 管理アプリ (Rails)
  • ワーカーバックエンド (Go)

具体的な設計などをここに書き留める。

@kawasin73 kawasin73 self-assigned this Jun 2, 2019
@kawasin73
Copy link
Owner Author

Twilter とは

TODO:

  • 監視したい人のツイートを RT する bot
  • RT を行うツイッターアカウント自体はユーザーが用意
    • そのアカウントは鍵垢推奨
  • 監視しているツイートのうちフィルターにマッチするものを RT する
    • 画像付きツイート
    • リンク付きツイート
    • リツイート
    • 特定のキーワードに合致するツイート
  • サブスクリプションモデル
    • フリーでは監視できるのは 3 アカウントまで
    • フリーでは 10 分に 1回監視?
    • フリーではキーワードフィルタリングができない

@kawasin73
Copy link
Owner Author

kawasin73 commented Jun 2, 2019

管理アプリ

モデル

  • User

    • twitter_id
    • credentials
    • 課金情報
  • Account

    • twitter_id
    • 鍵?
  • Target

    • user_id
    • account_id
    • from
    • is_active
  • Filter

    • target_id
    • filter_type
      • RT?
      • image?
      • link?
      • keyword

@kawasin73
Copy link
Owner Author

Go

タスクキュー

最初は、Rails の DB を使える。
大規模化した場合は、専属のキューを作る

機能

  • 初回の fetch
    • 最近1時間以内のものをとって from を決める。
  • 2回目以降の fetch
    • Target の中で一番古いものから取得する
  • 復旧
    • is_active の切り替わりによって以前の from ではなく、

@kawasin73 kawasin73 changed the title 設計 設計と概観 Jun 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant