- Install memcached
Ubuntu: apt-get install memcached
orMacOS: brew install memcached
. - Install MongoDB using this link.
- Install Node.js v12+ using this link
- Run
npm i
command to install the dependencies. - Create
.env
by copying or renaming.env.example
. - Replace variables in
.env
from local variables. - Run
npm run debug
command to start the server.
- Using
memcached
forLRU Caching
. - Generating short url by hashing using
MD5
& then encoding it tobase64
. - Can generate
64^8 = ~281 trillion
possible strings without collision.
- Load Balancing
- Distributing Data across regions
- Missing User APIs
- Improved analytics
- Postman Link - https://www.getpostman.com/collections/650a6462af5648eb378f