Skip to content

Ibrahimhabeeb/norebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feature Improvement and Scaling Solutions

1. How can you improve the feature to make it more resilient against abuse/exploitation?

Answer: By implementing the express-rate-limit library, we can prevent too many requests from the same IP address (user). This helps mitigate the risk of abuse and ensures fair usage of the service.


2. How can you improve the feature to scale to millions of users and perform without issues?

Answer: By using an Application/Network Load Balancer and deploying the application across different servers, the load balancer can distribute requests evenly among the servers. This ensures better performance and availability.


3. How will you scale to a million concurrent users clicking the button at the same time?

Answer: By aggregating requests and processing them in batches, we can reduce the workload on the database. This approach minimizes the number of individual transactions and optimizes resource usage.


4. How will you scale to a million concurrent users requesting the article's like count at the same time?

Answer: The article data can be cached using a Content Delivery Network (CDN). By serving the data from edge servers, we reduce the load on the main server and improve response times for users.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors