There are total 100 Billion users out of which there are active 10% users daily, so the count comes to 100 million Daily active users out of this each user makes 5 requests a day
1- Create New URL
4- To redirect to the full path when calling the short url
APIs - (postmapping)/createURL/{full-path}
1- Client Applications (User Authorization, Load Balancing, API Gateways)
2- Service layer - this will hold the algorithm to create the short url's and store them in the hash map scenario in the application
3 - Model Layer from here the different API's will be called and redirected to the correct service layer
4- Horizontal scaling would be there to enable the equal distribution
Define the data model. Identify the main entities, their attributes, and relationships. Consider the choice of database type (SQL vs NoSQL) and justify your decision based on access patterns...
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.