Closed phob0s-pl closed 7 years ago
Yep, agreed. Batches should be saved up to a defined size limit and resent later. The app should keep these batches in /var/alphasoc/namescore.
I have implemented of queries storing, the limit is in number of files (each file has known number of queries). The name is namescorequeries
There should be introduced buffering mechanism for queries, for example when alphasoc server will be down for some time.
My proposal: All unsuccessful attepts to send would be stored in: /tmp/asoc/chunk_ID
Create worker gorutine, which would every time_interval check them and try to resend.