Ahsan Sheraz’s Post

🚀 pyresilience — All resilience patterns in 1 decorator, no dependency 💡 What is resilience? Your app keeps working even when dependencies fail, slow down, or overload. No crashes. No hanging. Just smart recovery. ⚠️ Pain point: Python teams often stitch together: • Retries ("tenacity") • Circuit breakers ("pybreaker") • Timeouts ("asyncio", "signal") • Rate limiting ("limits", "slowapi") • Fallbacks (custom code) 👉 These don’t coordinate → messy + inconsistent failure handling 📊 Existing tools: • "tenacity" (retries ~263.6M downloads/month) • "pybreaker" (circuit breaker ~9.6M downloads/month) 👉 Great individually, not unified ⚡pyresilience Benchmark: 🚀 pyresilience → 0.64 μs (🔥 ~10.4x faster) 🐢 tenacity → 6.64 μs 🛠️ What pyresilience does: One decorator with: ✅ Retry ✅ Circuit Breaker ✅ Timeout ✅ Fallback ✅ Bulkhead ✅ Rate Limiter ✅ Cache ➡️ Works together, not glued ➡️ Zero dependency ➡️ Sync + Async ➡️ High performance Frameworks: 🌐 FastAPI • Flask • Django 👨💻 For all Python developers 🔗 GitHub: https://lnkd.in/d-SRygNQ 🔗 PyPI: https://lnkd.in/dRg2H4D5 🔗 Docs: https://lnkd.in/dxZ4xYkw 💬 How are you handling resilience in Python today? #Python Python #BackendDevelopment #SoftwareEngineering #Microservices Python Software Foundation #SystemDesign #FastAPI #Django #Flask Python Coding #OpenSource #DevOps Python #Cloud #Resilience Python Valley

  • graphical user interface

722 downloads in 1 week 🔥 Thank you for the support. If you like it, share it with your network and give it a star ⭐

Like
Reply

To take your resilience to the next level, consider implementing a bulkhead pattern alongside pyresilience, isolating critical components from the rest of your system to prevent cascading failures 📊.

Seriously impressive work! I think it's the kind of tool that the community really needed. Proud to see you ship this 🚀

Amazing work really helpful!

good work! really helpful 👍 💯

See more comments

To view or add a comment, sign in

Explore content categories