Challenge Overview
Challenge Objectives
-
Add tests.
-
Fix a bug in the current implementation.
Project Background
We’re in the process of revamping our platform and adding support to store more information about our users as traits in order to improve the overall user experience in our platform.
Technology Stack
-
Node.js
-
Kafka
-
Docker and Docker Compose
-
AWS
Code Access
Existing code:
Branch: develop
Example processor with unit testing (for reference):
Detailed requirement
1. Unit tests (Major)
-
You need to create unit tests for the processor.
-
You need to update the README with instructions on how to run the unit tests.
2. Bug fix (Major)
The current implementation suffers from a bug that when the processor is brought down for some time, messages received during that time won’t be processed when the processor is restarted.
The consumer commits the offset to zookeeper but when the processor starts it picks the latest offset instead of the committed offset.
This needs to be fixed.
Feel free to ask on the challenge forum!
What to Submit
Submit:
-
Git patch for the latest commit in the develop branch. Make sure to note the exact commit you used so the reviewers can apply your patch file.
-
Instructions on how to apply your patch and test your submission.