Skip to main content

2 posts tagged with "dart"

View All Tags

The Request You Forgot to Cancel

· 6 min read
Anirudh Singh
Creator of Polly Dart

You open a product detail screen. The app fires a request to load the data. You change your mind and swipe back. Flutter pops the route, disposes the widget, closes the cubit. Everything on the Flutter side cleaned up correctly.

But out on the internet, a request is still running.

The server received it. It's querying the database, serializing JSON, preparing a response. Nobody is waiting for that response anymore — the screen is gone, the cubit is gone, the state is gone. But the server doesn't know that. So it finishes the work anyway, sends the bytes back, and your app quietly receives them, parses them, and throws them away.

This is the part that always gets missed.

Introducing Polly Dart - Resilience for the Dart Ecosystem

· 5 min read
Anirudh Singh
Creator of Polly Dart

Today, I'm excited to announce Polly Dart - a comprehensive resilience and transient-fault-handling library for Dart applications. Inspired by the battle-tested .NET Polly library, Polly Dart brings enterprise-grade resilience patterns to the Dart ecosystem.

Why Resilience Matters More Than Ever

In our interconnected world, applications depend on numerous external services, APIs, databases, and resources. Network hiccups, service outages, and resource contention are not exceptions—they're inevitable realities. The question isn't whether your application will encounter failures, but how gracefully it will handle them.

Consider these common scenarios:

  • A mobile app loses network connectivity while syncing data
  • A Flutter web app calls an API that's temporarily overwhelmed
  • A Dart server application hits database connection limits
  • A microservice times out due to unexpected load

Without proper resilience strategies, these situations lead to poor user experiences, data loss, and system instability.