1단계 ERD 전면 재수정

정규화 과정이 이뤄져있지 않은 듯하다 .
한번 수정을 진행해보자

위와 같이 정규화 과정을 하면 될듯하다 .
또한, 이제 궁금증이 생긴다. 아니 .... 어떻게 가져올까 저번에는 크롤링 방식으로 가져왔지만 아무래도 이렇게 하면 타 사이트에 너무 많은 트래픽이 몰리게 할수도 있다. 그렇다면 api를 쓰는게 좋을듯하다.
그런데 kbo는 공식 api를 제공하지 않는다. 그래서 api를 서핑하던 도중 https://www.football-data.org/
football-data.org - ur src for machine readable football data
Purpose of the project football-data.org provides football data and statistics (live scores, fixtures, tables, squads, lineups/subs, etc.) in a machine-readable way. I won't announce how awesome football-data is, you're welcome to find out by yourself (or
www.football-data.org
사이트를 발견했다. 여기서에서 5대 축구 리그 api를 제공받을수있었다.
https://developer.sportradar.com/baseball/reference/global-baseball-overview
Global Baseball v2 Overview
Introduction The Global Baseball API provides real-time, inning-by-inning scoring (when available) and a database of supplementary statistics. Data is collected via Sportradar on-venue scouts and in-house operators. League coverage includes: MLB, NPB, KBO,
developer.sportradar.com
여기서는 kbo와 npb
https://developer.sportradar.com/baseball/reference/mlb-overview
MLB v8 Overview
Introduction Sportradar is the Official Provider of real-time MLB statistics. The data collection comes direct from the MLB operations teams on-venue. This provides lightning speed and the highest-quality stats available to power your baseball experiences.
developer.sportradar.com
여기서는 메이저리그의 정보를 얻어 올수있다.
이제 어느 정도 타협을 해야할것같다. 원래 배구 쪽까지 했으나
축구 야구 만 하는 선에서 해야할듯하다,
대신 축구에서 프리미어리그만 했지만 5대리그 를 할수있고 야구도 kbo와 mlb만 했지만 kbo mlb npb까지 확장할수있을듯 하다
이렇게 1단계는 마무리 지을수도 있지만
전략을 새워야한다. 실시간으로 계속 요청을 하려면 축구 기준 무료 플랜은 1분에 10번 내외 이므로 웹소켓 과 같은 비동기 통신보다 동기 통신으로 하는게 효율적으로 보이고 6초에 한번 조회하는 형식으로 보여주면 좋을 듯하다 .
그러나 여기서 로그인 상태라면 웹소켓으로 지속적인 알람을 주는 게 좋을듯하다 예를 들어 골이나 이벤트 발생시에 말이다.
이렇게 마무리하고 2단계 구현 및 정리를 하면 될듯하다 .
'프로젝트 한걸음 더' 카테고리의 다른 글
| 정보처리기사 준비하다가 프로젝트 리펙토링 2단계 (1) | 2025.08.01 |
|---|---|
| 정보처리기사 준비하다가 프로젝트 리펙토링 1일차 (3) | 2025.07.31 |