Efficient Caching in Python: From Local to External Solutions — Akshita Gupta
[EuroPython 2025 — South Hall 2A on 2025-07-18] 🎤 Efficient Caching in Python: From Local to External Solutions by Akshita Gupta 🔗 https://ep2025.europython.eu/session/... 📝 Abstract: We all know that caching speeds up database queries, but are we aware which caching technique is right for our specific use case? Did we know that even simple, seemingly obvious code can be drastically improved with the right caching strategy? Improper or excessive use of caching can however introduce unnecessary complexity—impacting deployment, performance, scalability, and maintenance. In this talk, we will address these challenges by exploring Python-specific caching strategies and the decision-making process behind transitioning from local in-memory caching to external solutions. We will focus on optimizing applications without over-complicating things. Starting with a quick introduction on caching fundamentals, we will dive into simple Pythonic ways to leverage local in-memory caching with functools.lru_cache, cachetools, and joblib, and explore how cache warming, expiry, and cache invalidation can really improve performance. After comparing multiple caching strategies, we will discuss external caching and when it’s time to use it. We’ll discuss Redis and how to integrate it into a Python app to scale up our caching strategy effectively. Through this talk attendees will: Learn how to implement efficient internal caching using Python’s built-in libraries. Discover practical techniques for cache invalidation, expiry, and cache warming to ensure optimal cache performance. Understand when to scale with Redis (or other external caching solutions) and how to integrate them into our Python projects. Be equipped to choose the right caching strategy for different use cases, ensuring faster and more scalable Python applications. --- This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License: https://creativecommons.org/licenses/...

Async Python: Concurrency Without the Headaches — Krzysztof Wilczyński, Mateusz Zaremba

Navigating the mesh: Istio for Python applications — Israel Blancas

Why Aliens Would NEVER Invade Africa

Everything You Ever Wanted to Know About Asyncio | Asyncio That Just Makes Sense Pt 1

Blue Ridge Ruby 2026 - State is the First Decision You Never Made by Joël Quenneville

I Re-Created A Quant Trading Strategy With Claude Code (Insanely Cool)

Something is jamming GPS over Europe. Here's what we found

Andrej Karpathy: From Vibe Coding to Agentic Engineering w/ Stephanie Zhan

Why The Russian Accent Terrifies Everyone

Python Variables | Python Operators | Python Tutorial For Beginners | Intellipaat

The Strange Math That Predicts (Almost) Anything

If You Have A Bad Memory, I’ll Help You Fix It In 28 Minutes

The Insane Genius of a Formula 1 Gearbox

Why AI Agents are either the best or worst thing we’ve ever built

USA vs Germany - ALL GOALS & Highlights | FIFA International Friendly 2026

Stop Rambling: The 3-2-1 Speaking Trick That Makes You Sound Like A CEO

How AI agents & Claude skills work (Clearly Explained)

Building the PERFECT Linux PC with Linus Torvalds

I Investigated India’s Biggest Smartphone Controversy

