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

feat: 아무 API 호출시 분석 서버 시작 #120

Open
Yeonwu opened this issue Nov 3, 2021 · 1 comment
Open

feat: 아무 API 호출시 분석 서버 시작 #120

Yeonwu opened this issue Nov 3, 2021 · 1 comment
Assignees
Labels

Comments

@Yeonwu
Copy link
Member

Yeonwu commented Nov 3, 2021

No description provided.

@Yeonwu Yeonwu added the feat label Nov 3, 2021
@Yeonwu Yeonwu self-assigned this Nov 3, 2021
@Yeonwu
Copy link
Member Author

Yeonwu commented Nov 3, 2021

서버비 절감 계획

  1. API 서버가 호출되면 health-check 후 즉시 ML 서버 켜기
  2. 분석 요청을 aws sqs에 넣기
  3. ML 서버에서는 aws sqs에서 꺼내와서 사용하기
  4. ML 서버에서 일정 시간동안 아무 작업도 하지 않는다면 종료하기

Yeonwu added a commit to Yeonwu/WavyBackend that referenced this issue Nov 3, 2021
GET /auth/token에 적용한 이유는 해당 API가 호출되었다면 회원가입 또는 로그인이 이루어졌으므로, 조금 후 분석이 일어날 수 있기 때문이다.
차후 Google Analytics와의 연동으로 접속자 수에 따라 ML 서버를 시작 / 종료하게 만들 계획이다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant