Skip to content

날씨 데이터 호출 방식 개선 #27

Description

@kiteB

현재 날씨 데이터 호출 API Docs: https://openweathermap.org/current


OpenWeather API를 활용하여 특정 도시의 실시간 날씨 데이터를 호출하고 있음

https://api.openweathermap.org/data/2.5/weather?q={city name}&appid={API key}
  • 하나의 API 호출 당 한 개의 도시 데이터만 조회 가능함

문제점

  • 현재 방식대로라면 도시 개수 증가에 따라 API 호출 횟수가 기하급수적으로 늘어남
  • OpenWeather Free Access 제한:
    • 60 API calls/minute
    • 1,000,000 calls/month
  • 매 시간마다 데이터 갱신을 위해 서버에서 지속적인 API 호출이 필요함

해결 방안 모색

  1. 여러 개 도시 데이터를 한 번에 가져오는 API 지원 여부 확인
  2. Lazy Loading 방식 - 필요할 때만 호출

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions