Repository navigation
tinyurl_v2.0
Compared to previous benchmarks the performance just went a 200x times faster.
Benchmark (version 1.0.0) -
The physics of a round trip was stopping the system to fast scale up, so we set up a queue and stored the user's requests in a buffer memory which pushed the requests to a queue and then send to the mongodb, not requiring one connection for one request. Now the only hurdle is RAM. As the buffer is stored on RAM.
Now the problem that persists is of reading the url. Which would hit mongodb each time for letting know. Setting up a cache layer like redis would solve this problem as well.