Python web performance 101dans Bloc-notes
Par Alex Ptakhin − Salle Rosalind Franklin
Python web performance 101
Web engineers meet issues with performance with fast-growing or even maintaining existing products. It’s always unexpected and we have limited time for decisions. With our hero, we meet real-faced RAM, CPU and IO problems and learn troubleshooting approaches to monolithic and distributed systems.
We try different existing tools from Python and the cloud ecosystem including, but not limited to: cProfile, yappi, memory-profiler and tracing.
This talk will be more focused on backend parts and designed for intermediate-level web engineers, but all skill levels are welcome.
- Temporary solution: update hardware to get time for debug
- /!\ mesurement change system behavior
memory-profiler: require code changes
memray: looks promising
- Tracing: OpenTelemetry
- Things to remember
- getting time by adding ressources worth it
- Monitor application errors
- Measuring something can change the behaviour of the system
- Tuning is good, and remember, pure Python is not about the performance