Challenge Overview
Challenge Objectives
-
Add tests unit & e2e tests on the provided processor.
-
Fix a bug in the existing implementation.
-
Update README.md
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
Code Access
Existing code:
Branch: develop
Detailed requirement
1. Unit tests (Major)
-
You need to create both unit and E2E tests for the processor.
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.
3. Update README.md (Major)
The existing README.md is empty. You need to update it to include detailed instructions on how to configure, run and test the processor.
Feel free to ask on the challenge forum!
Notes
-
You are allowed to refactor the existing code to follow the best practices or to improve it in general.
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.
-