SciQLop / speasy

Space Physics made EASY! A simple Python package to deal with main Space Physics WebServices (CDA,SSC,AMDA,..)
Other
24 stars 7 forks source link

Add mechanism to avoid sending multiple identical requests at the same time #1

Closed jeandet closed 1 year ago

jeandet commented 3 years ago

If you ask twice for the same data in parallel while not in cache, spwc will issue two identical requests to the server (AMDA, CDA, proxy...). This shouldn't happen too often and isn't so trivial to solve.

jeandet commented 3 years ago

Maybe one option, could be to add in cache a fake object locking any access until data is available.