You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lampros Smyrnaios 736d0f8526 | 2 months ago | |
---|---|---|
gradle/wrapper | 2 months ago | |
src | 2 months ago | |
.gitignore | 3 years ago | |
LICENSE | 2 months ago | |
README.md | 2 months ago | |
build.gradle | 2 months ago | |
createSwapStorage.sh | 2 months ago | |
gradle.properties | 1 year ago | |
gradlew | 2 months ago | |
gradlew.bat | 2 months ago | |
installAndRun.sh | 2 months ago | |
settings.gradle | 3 years ago |
README.md
UrlsWorker
The Worker's Application, requests assignments from the Controller and processes them with the help of the PublicationsRetriever software and downloads the available full-texts.
Then, it posts the results to the Controller, which in turn, requests from the Worker, the full-texts which are not already found by other workers, in batches.
The Worker responds by compressing and sending the requested files, in each batch.
Multiple instances of this app are deployed on the cloud.
We use Facebook's Zstandard compression algorithm, which brings very big benefits in compression rate and speed.
To install and run the application:
- Run
git clone
and thencd UrlsWorker
. - Set the preferable values inside the application.properties file.
- Execute the
installAndRun.sh
script.
Notes:
- The above script, installs the PublicationsRetriever software, as a library and then compiles and runs the whole Application.
- If you want to just run the app, then run the script with the argument "1":
./installAndRun.sh 1
. In this scenario, apart from the SpringBoot-app not re-building, the PublicationsRetriever software, will not be re-installed as well. - If you want to avoid re-installing the PublicationsRetriever software, but still building the Worker's application, run the script with the argument "0", followed by the argument "1":
./installAndRun.sh 0 1
, i.e. when using a development (non-published) version or when nothing has changed and wanting to avoid the time-overhead.