https://tella.video/cluster-locking-challenge-1-1f05
<aside> 💡 This challenge was solved by one of our engineers internally.
challenge.mjs
file is 96
lines long.</aside>
challenge.mjs
do not modify any other file.send(string)
to send data to the other server instantly.test.mjs
to send hundreds of requests to both servers at the same time to see if your servers sucessfully only handle each task only once.onRequest
function inside challenge.mjs
you will have to call await doWork()
and console.log
the returned data.console.log
only once.Clone the repo first
git clone [email protected]:fringecore/fringecore-backend-challenge-cluster-locking.git
cd
into the directory, and install npm packages.
cd fringecore-backend-challenge-cluster-locking
npm install
Open your favorite code editor (like vscode for example.)