Technology | Badge |
---|---|
License | |
Travis CI | |
Codacy |
This is filter for contacts. It takes regexp from REST and process it in java layer. Architecture of application is based on REST principle. Construct with Spring and Postgres as main DB.
Use Maven for build this project. This project package in war file, you need some Servlet Container to deploy it.
Build command.
mvn clean package
Before you start the program you must to encode your regex pattern OR allow forbidden characters in your servlet container.
Tomcat servlet example configuration. Put this line in your ** catalina.properties**
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
Configure your db connection in jdbc.properites
Init database table by script init_db.sql
Configure main mapReduce properties in main.properties
Example:
Total num threads is active in module
slots=15
Max Mapper count for one proceess
maxMappers=5
Min Mapper count for one proceess
minMappers=3
Batch rows in table for one mapper
batch=50000
Get contacts by regexp. Method GET.
http://localhost:8080/hello/contacts?nameFilter={YourRegexpHere}
- Jackson
- Apache Connection Pool
- JDBC
- Slf4j
- Logback
- JUnit
- AssertJ
- Mockito
- Hamcrest
- Spring Test
- Jsonpath
- Spring MVC
- Lombok
If you have any questions I will be happy to answer it.
- Author: Артём Муравлёв
- Linkeidn: My Linkeidn
- Telegram: @artem_murk
- Mail: muravlevars@gmail.com