Блог пользователя generalpy

Автор generalpy, история, 4 года назад, По-английски

I am creating a project with my friend using codeforces API.

Github code available here : https://github.com/maxrage2529/cp-only.

This webapp aims to compare your progress with other users. Our own API makes calls to codeforces API in backend to get user details(questions solved). Problem occurs when 2 requests are sent simultaneously. Since python is used in this project, 2 requests at same time also means multiple requests to codeforces to codeforces API at almost same time. When 2 requests contain query such as : https://cp-only.herokuapp.com/getProblemLinks?userlist=maxrage,dev_manus,nitin4184,abisheka,hugewarriors,chandanagrawal23&need=3&low=1400&high=1600 my application crashes(it is handled with error handled now) due to 503 from codeforces side.

Is there a rate limit on codeforces API? I will use different server side caching strategies in future but currently to create a naive application I m using no caching.

  • Проголосовать: нравится
  • -11
  • Проголосовать: не нравится

»
4 года назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

This usually occurs because the number of connection pools is limited, apparently you can store the data you have got.