← Learning center

How do I monitor my application when scaling?

In this stage of your product's life cycle, the focus shifts towards expanding production capacity and optimizing processes to meet increasing demand.

As your application scales, you may begin to experience performance issues. As more users interact with your application, it may struggle to keep up with requests. This could see throughput (how many requests your application can process) drop as demand increases. In this instance, you will need to scale your application so that it can handle more traffic. There are two ways you can scale:

MethodDescription
VerticalIncreasing your server's resources, such as RAM or CPU power. This method is recommended when your application is experiencing performance issues due to a lack of resources.
HorizontalAdding additional servers to your application. This method is recommended when your application experiences performance issues due to heavy traffic.

Key metrics to monitor

MetricDescriptionWhat to look out for
ThroughputHow many requests your application is processingA decrease in throughput may indicate issues such as server overload, network problems, or performance bottlenecks.
Status codesHow your application is responding to requestsAn increase in error status codes (e.g., 4xx or 5xx) can indicate issues such as broken functionality, incorrect input handling, or problems with integrations.
ConnectionsA gauge of the connections currently being handledA sudden increase in connection count could suggest a surge in user activity. It can also indicate your application needs more resources to handle increased traffic or improper connection handling, leading to performance issues or bottlenecks.
Error ratePercentage of requests that result in an errorA sudden increase in the error rate may indicate underlying issues such as bugs, server problems, or inadequate error handling.

Spotting patterns

In the scaling phase, spotting patterns becomes increasingly important, as your application's increased usage makes it impossible to investigate and reproduce every anomaly.

Some key patterns to look out for:

  • Increasing error rate: Investigate and debug issues to locate the error and resolve its triggers.
  • Traffic is increasing: Begin horizontally scaling your application so it can keep up with requests.
  • Response times are increasing: Vertically scale your application so it has more processing resources.

With AppSignal, you will have real-time access to your application's critical metrics, visualized in graphs, allowing you to spot patterns and investigate them quickly:

NGINX magic dashboard

You can even set up triggers for key metrics to notify you when they reach a specific threshold, allowing you to take the necessary steps to maintain your application's availability.

The other stages of product development

This article is part of a series. We have a Learning Center article for each stage in the product life cycle:

The APM that scales with you

Don't worry about surprise invoices or having to guess your usage. Thanks to our relaxed upgrade policy, AppSignal scales with you. Join us with a free trial to start monitoring your application with AppSignal. You can be set up in as little as five minutes. If you have any questions or require help, our dev-to-dev support is on hand.

Start your free trial

Don’t let the bad bugs bite. Try AppSignal for free.

AppSignal offers a 30-day free trial, no credit card is required. All features are available in all plans. Start monitoring your application in just a few clicks!