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

안녕하세요 delay, timeout 문의드립니다. #12

Closed
jiyuha opened this issue Aug 6, 2021 · 2 comments
Closed

안녕하세요 delay, timeout 문의드립니다. #12

jiyuha opened this issue Aug 6, 2021 · 2 comments

Comments

@jiyuha
Copy link

jiyuha commented Aug 6, 2021

안녕하세요 :)
먼저 코드 공유해주심에 감사한 마음 전해드리고 싶습니다!
제가 궁금한 부분은 기본으로 설정되어있는 delay, timeout - 1000, 3000을 수정하여도 실행되는데 큰 지장이 없는지(?) 입니다.
더욱 개선하려면 어떻게 숫자를 수정해야할까요 ..? ㅠㅠ 실행되는 중에 선착순 마감이 수십번 되다보니 속상해서용 ,, >ㅜ<

@kimytsc
Copy link
Owner

kimytsc commented Aug 6, 2021

안녕하세요 :)
먼저 코드 공유해주심에 감사한 마음 전해드리고 싶습니다!
제가 궁금한 부분은 기본으로 설정되어있는 delay, timeout - 1000, 3000을 수정하여도 실행되는데 큰 지장이 없는지(?) 입니다.
더욱 개선하려면 어떻게 숫자를 수정해야할까요 ..? ㅠㅠ 실행되는 중에 선착순 마감이 수십번 되다보니 속상해서용 ,, >ㅜ<

delay는 병원 리스트를 갱신하는 최소 시간이며 timeout은 리스트를 가져올때 timeout 시간보다 오래걸리면 중단하고 다시 가져오는 값입니다. 그래서 delay, timeout 수치를 수정해도 실행되는데는 지장이 없습니다.
다만, delay를 너무 짧게 잡으면 너무 잦은 호출로 인해 일시적으로 IP 차단이 되는 경우가 있으니 감안하여 조정하시면 됩니다.
timeout도 너무 짧으면 병원 리스트를 가져오기 전에 중단시키는 경우가 발생하니 2,000보다는 크게 설정하시는걸 추천드립니다(단, 자체적으로 네이버는 3,000(3초), 카카오는 180,000(3분)의 timeout이 존재).

@jiyuha
Copy link
Author

jiyuha commented Aug 6, 2021

감사합니다 !!

@kimytsc kimytsc closed this as completed Aug 7, 2021
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

2 participants