0% found this document useful (0 votes)
35 views1 page

Node.js Microservices Coding Test

Create microservices in Node.js for CRUD operations on user data stored in MongoDB, including username, account number, email, and ID number. Protect the APIs with authorization headers, validate requests, and implement either caching of vehicle data with Redis or consuming data from Kafka. Deploy to Docker/Heroku. Provide an API to generate tokens and functions to search users by account or ID numbers. Define constraints and indexing in the database.

Uploaded by

jox
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Node.js Microservices Coding Test

Create microservices in Node.js for CRUD operations on user data stored in MongoDB, including username, account number, email, and ID number. Protect the APIs with authorization headers, validate requests, and implement either caching of vehicle data with Redis or consuming data from Kafka. Deploy to Docker/Heroku. Provide an API to generate tokens and functions to search users by account or ID numbers. Define constraints and indexing in the database.

Uploaded by

jox
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Backend Coding Test

● Create microservices (nodejs) for CRUD operation and store in database


(mongodb) for user data (Point 50)
○ User data : Id, userName, accountNumber, emailAddress, identityNumber
● Protect the API with the authorization header (Point 5)
● Validate the header request (authorization header) (Point 5)
● Choose 1 of these: (Point 30)
1. Implement caching strategy (redis) for vehicle data. (any data changes in
mongodb should sync to redis)
2. Consume data from kafka (consumer)
● Deploy into docker/heroku or any platform services. (Point 10)

Notes:
● Provide API to generate the token
● For read operation please create 2 functions to get user by accountNumber and
get user by IdentityNumber.
● Please define the constraint and indexing in the database.
● Use your name for the database and microservices name.

Please send us back the test result at the latest 2 days from today.

You might also like