Commit Graph

10 Commits

Author SHA1 Message Date
Lampros Smyrnaios 89ddd5d963 - Add the "shutdownService.sh" script.
- Update dependencies.
2023-07-26 17:35:21 +03:00
Lampros Smyrnaios 41af8cc429 Add counters, in each gathering, for 1) the num of new datasources, 2) the num of updated datasource and 3) the num of added payloads. 2023-07-26 17:32:16 +03:00
Lampros Smyrnaios 1ee1a94eff - Handle the case where the "gatherNumberOfPayloadsPerDatasource()"-query-method is executed while some tables of the DB are in a "merge" state. In this case, the queries fail and the App retries up to 10 times.
- Handle the case when the aforementioned query-method fails with some unhandleable error. In this case the app retries 1 time and if it fails again, then if this has happened during initialization, the app shuts down, else the incident is ignored and the app will retry after 6 hours when the method is scheduled to run again.
2023-07-26 16:41:44 +03:00
Lampros Smyrnaios 8746d301d5 - Add useful messages for missing parameters in Stats API.
- Fix the Stats API returning simple numbers as "application/json". Now they are returned as "text/plain".
2023-07-25 15:39:20 +03:00
Lampros Smyrnaios 7e5c338de3 - Improve performance by avoiding checking if the huge ConcurrentHashMap is empty, on every request. After the first data-gathering, it will neven be empty and the checking-code is expensive.
- In case of an error retrieving data from the DB during initialization, gently shutdown the App. There is no point keeping the app running just to serve 500-Server-Errors.
- Code polishing.
2023-06-22 01:54:47 +03:00
Lampros Smyrnaios 64ef1bcf40 Add some TODOs to optimize performance and reliability. 2023-06-21 12:26:18 +03:00
Lampros Smyrnaios 1846f25c6b Update README. 2023-06-20 22:57:03 +03:00
Lampros Smyrnaios df92e4fe24 Add documentation about the API in README. 2023-06-20 22:49:44 +03:00
Lampros Smyrnaios 83b8231993 Fix link in README. 2023-06-20 22:42:53 +03:00
Lampros Smyrnaios cf0aed5274 Fully functional "PDF Aggregation Statistics" Service. 2023-06-20 22:16:07 +03:00