|
|
||
|---|---|---|
| gradle/wrapper | ||
| src | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| build.gradle | ||
| createSwapStorage.sh | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| installAndRun.sh | ||
| settings.gradle | ||
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 or html-pages.
Then, it posts the results to the Controller, which in turn, requests from the Worker, the files 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 cloud VMs.
We use Facebook's Zstandard compression algorithm, which brings very big benefits in compression rate and speed and as a result, reduces cloud costs.
Requirements and installation
Requirements
- Java 25
- Gradle 9.2.0
Installation and execution
- Run
git cloneand thencd UrlsWorker. - Set the preferable values inside the application.properties file. Mainly the "workerId" and "controllerIp" properties.
- Execute the
installAndRun.shscript.
Notes:
- If you want to just run the app, then run the script with the argument "1":
./installAndRun.sh 1. In this scenario, the SpringBoot-app will not be re-built.