Tried a design problem of Amazon’s sales rank by category feature

Tomoharu Tsutsumi
2 min readMar 16, 2024

--

I tried this problem. I could learn some points and summarize them.

My answer

The sample answer

The points I missed are below.

・Sales rank service

I had it in my mind, but I didn’t write it. I should have written it because it has a comparatively big class object, which means it is a feature.

・ObjectStore

Necessary for storing logs of sales.

・Queue

Queue is not necessary. At first, I added it because calculating the rank would take much time. However, the rank is calculated, using logs in the object store. That’s why, queue can be left out.

・Cache

If the service require an availability, it should be included.

However, my answer and the sample answer look similar. I’ll keep improving my design skills!

Feel free to reach out to me on LinkedIn, which you can find below. Looking forward to connecting!

https://www.linkedin.com/in/tomoharu-tsutsumi-56051a126/

--

--

Tomoharu Tsutsumi

Senior Software Engineer at two industry-leading startups ( Go | Ruby | TypeScript | JavaScript | Gin | Echo | Rails | React | Redux | Next)