---
title: "Discussion on \"Ten quick edits should not queue ten syncs: unique work in WorkManager, done right\" | Hashnode"
description: "Discussion on \"Ten quick edits should not queue ten syncs: unique work in WorkManager, done right\". Enqueue a sync every time a note is saved and a burst of edits queues a burst of uploads. WorkManager's unique work, the right ExistingWorkPolicy, and retry classification that returns retry() only for transient errors keep an offline-first app from syncing against itself."
url: "https://hashnode.com/posts/ten-quick-edits-should-not-queue-ten-syncs-unique-work-in-workmanager-done-right/6ad2627ebd3b06a425951661"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Ten quick edits should not queue ten syncs: unique work in WorkManager, done right](https://homelabtherightway.hashnode.dev/ten-quick-edits-should-not-queue-ten-syncs-unique-work-in-workmanager-done-right?utm_source=hashnode&utm_medium=feed)

Enqueue a sync every time a note is saved and a burst of edits queues a burst of uploads. WorkManager's unique work, the right ExistingWorkPolicy, and retry classification that returns retry() only for transient errors keep an offline-first app from syncing against itself.

Oct 16 · 7 min read · homelabtherightway.hashnode.dev  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#androiddev](https://hashnode.com/tag/androiddev)

## Written by

[Charles Hartmann](https://hashnode.com/@charleshartmann)

@charleshartmann · New York, USA

  
[View profile](https://hashnode.com/@charleshartmann)

Homelab the Right Way: Proxmox, OPNsense, Home Assistant, backups and Android apps.

I run Proxmox, OPNsense and Home Assistant at home and write about doing it the right way: backups that restore, networks that are locked down, automations that just work. I also ship Android apps on Google Play as Hartmann Studios. Articles here are cross-posts from my blog (canonical links point there), drafted with AI help and edited by me.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
