Scaling Questions Pt: 2

Now we have plans to expand internationally. It turns out users in Europe and USA are complaining about slow loading. Why could that be? what would your suggested fix be?


After some time we notice our storage is increasing abnormally. It turns out that the logs are taking up most of the storage on the server and causing issues in processing → slow server. How would you resolve this?

Implement logRotations: logs are split by date (or something else) and deleted after some time.

Users love the app → we keep getting more traction.

Now we have a greater load to handle. In addition, we have CRON job running twice a day to backup our DB → we have so much data to process and our application slows down, because our db is busy with the CRON jobs in preparing the backups.

*The software utility cron also known as CRON job is a time-based job scheduler in Unix-like computer operating systems. Users who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals.

What would you suggest to resolve this issue?

To fix this, we first take a look to see what types of actions are being done → are there more reads vs writes? or vice versa?

Over time we realize that our single application server is not able to hold up to the load that we are getting. How would you resolve this?

Create multiple application servers and add load balancers to distribute the load evenly.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store