Better Programming

Advice for programmers.

Follow publication

Member-only story

Continuous Performance Improvement of HTTP API

Vadim Markovtsev
Better Programming
Published in
7 min readFeb 23, 2022
Burning down. Image licensed CC0.

In my previous post, I detailed a few code tricks to improve backend performance. How did I know where to focus and what to optimize, though? Indeed, joining Cython and other low-level gizmos to the party should have solid reasoning.

I work at Athenian. Athenian offers a SaaS that helps engineering leaders build a continuous improvement software development culture. We have pretty strict performance targets dictated by the UX. It’s hard to achieve great P95 response times without proper tooling. So we’ve wrapped ourselves with high-quality apps and services:

  • Sentry Distributed Tracing allows us to investigate why a particular API request executed slow in production. This tool works in the Python domain.
  • Prodfiler gives an independent zoom into the native CPU performance, including all the shared libraries.
  • py-spy is an excellent low-overhead Python profiler by Ben Frederickson.
  • Prometheus + Grafana help to monitor the immediate situation and trigger performance disaster recovery.
  • Google log-based metrics augment the previous…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Vadim Markovtsev
Vadim Markovtsev

Written by Vadim Markovtsev

Machine learning and software engineer. Development teams manager. Public speaker. Google Developer Expert in Machine Learning (2018–2021).

Write a response