Ski Resort Forecast

फ़्री
द्वारा Joey Kyber | अपडेट किया गया hace 2 meses | Weather
लोकप्रियता

9.4 / 10

लेटेंसी

1,387ms

सेवा का स्तर

79%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

Concurrency Limits?

Rapid account: Aayevtushenko
aayevtushenko
hace 2 años

Great API! Are there any concurrency limits? I’d like to make some calls in parallel for a small project using Spark. I’m afriad I’ll tank the system however. Any recommendations?

Rapid account: Joeykyber
joeykyber Commented hace 2 años

Thank you! I spent the last several hours testing concurrency. With the hosting service I am using, it did end up crashing when I sent over a handful of parallel requests via Apache JMeter. I tried implementing clustering, which allows you to distribute the processes from each request amongst different threads. However, this is only really helpful if the tasks are CPU-intensive. The response times from this API are mainly due to network delays from web scraping, so when I tried clustering, it actually worsened response times. It also ended up using more memory than this hosting service allows.

If you are going to do parallel requests, I’d recommend only a few at a time.

Also, I just fixed a couple bugs and you should now be able to use the hourly endpoint. The lift elevations in the “basic info” are also now usable.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें