I applied online. The process took 2 weeks. I interviewed at CyberCube (Tallinn)
Interview
First, call with HR. Asked about my background, experiences, told me about company
Second, sent me a technical task about microservices : Create two microservices for calculating people's social rating.
They didn't like my solution.
Interview questions [1]
Question 1
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).