Recommendations for Python

By Jérôme Vieilledent, on May 06, 2021

Recommendations are a key feature of Blackfire Profiler. They are actionable insights Blackfire offers when detecting potential flaws in your application. They are fully documented, so you understand exactly what Blackfire detected and how to fix the issue.

Recommendations are based on Metrics, like for the tests you define in your .blackfire.yaml and follow common best practices. Most of them are generic, but some are more specialized or vendor-centric (i.e. specific frameworks and/or libraries).

We recently added more metrics and recommendations for generic Python, Django and Flask applications.

Generic Recommendations for Python

Regarding Python itself, we focused on:

  • AMQP connections;
  • Connection to Cache servers (including pymemcache, pylibmc, python-memcached and redis);
  • Database connections;
  • Spawned sub-processes;
  • Security advice.

Recommendations for Django and Flask

As for Django and Flask, we added recommendations on the following topics:

  • Cache settings;
  • Debug settings;
  • CSRF and Click-jacking;
  • Django Security middleware.

Give Blackfire a try!

Recommendations are available for all paid plans (Profiler, Premium, and Enterprise plans). Play with the demo or subscribe now!

Happy Profiling 🐍!

Jérôme Vieilledent

As a Developer Advocate, Jérôme is all about spreading the love! His technical/development background enable him to talk as a peer to peers with our developer users. You’ll read his tips and advices on performance management with Blackfire. And he’ll support you as a day-to-day user.