String frequency manager.
- SFM shall process log file in a configurable local folder. Configuration can be done using property sfm.folder property in src/main/resources/application.properties
- Keep track of how many times a particular string has appeared in those log files. For this I used MapDB
- Provided an endpoint API to make use of this frequency of String http://localhost:8080/isStringValid?String={string} If the string appears more than 5 times in the last 24 hours, return {"response":"false"}, else return {"response":"true"}
- execute run.sh or mvn spring-boot:run
- sfm.folder=./src/test/resources/logs
- sfm.pattern=string-generation-[0-9]+.log
- sfm.extension=.log
- sfm.wordCount=5