Create two microservices for calculating people's social rating.
First microservice (data collector) should:
1. consume http requests with JSON in a body:
{
"first_name": <text>,
"last_name": <text>,
"age": <number>
}
2. read calculation seed from application properties file (it can be just a random
number 0-1)
3. send all information to the queue
Second microservice (social rating calculator) should:
1. read message from the queue
2. calculate social rating score (score = base seed * user’s age)
3. print similar to the following message to the application console
"<firstName> <lastName> has <socialRatingScore> score"
Bonus points:
- use docker to run dependent services
- the second microservice should save calculated scores for each user in the Redis
- It should be possible to specify properties file on the application start phase
Desirable to use Java, Spring Boot, Apache Kafka (or AWS SQS).