Effective defenses include implementing constant-time algorithms that ensure execution duration is independent of secret input values, despite challenges from compiler optimizations. Other strategies involve adding noise or random delays to operations, using hardware isolation (e.g., containerization), and specific mitigations for cached systems like batching prefix caches. Protecting the underlying hardware and firmware is also crucial.