Michael Kennedy
Michael Kennedy's Thoughts on Technology
Tools
Topics
Courses
Talk Python
Python Bytes
Open Source
AI Enablement
About
© 2006 - 2026 Michael Kennedy
Async
Chameleon templates, modernized: chameleon-rs
I rewrote Chameleon in Rust to make Python web apps faster. chameleon-rs runs your existing templates unchanged and adds async rendering, Markdown, and free-threaded Python support.
Oct 27, 2026
Cutting Python Web App Memory Over 31%
I reduced Python web app memory by 3.2 GB using async workers, import isolation, the Raw+DC database pattern, and disk caching. Detailed before and after numbers for each technique.
Apr 1, 2026
Raw+DC Database Pattern: A Retrospective
After migrating three production Python web apps to the Raw+DC database pattern, I share real-world performance benchmarks: nearly 2x requests per second, 18% less memory, native async support, and freedom from unmaintained ODM libraries.
Mar 30, 2026
Fire and Forget at Textual
Will McGugan hit the same asyncio.create_task garbage collection bug at Textual - and found the pattern in over 500K GitHub files. Why didn't the Python team just fix the event loop?
Mar 29, 2026
Fire and forget (or never) with Python’s asyncio
Python's asyncio.create_task() can silently garbage collect fire-and-forget tasks in 3.12+. Learn the background_tasks set pattern to fix it.
Mar 18, 2026
Talk Python migrated to Quart web framework
And I did a big write up in case it helps anyone on similar journeys.
Nov 19, 2024