Hey everyone,
I’m working on an email aggregation app and running into duplicate thread issues when syncing with the Nylas API. Specifically, I’m seeing the same email appearing multiple times in my local cache after consecutive syncs.
Has anyone found a clean approach to handle this? I’m currently relying on a combination of message IDs and the update_at timestamp as a heuristic, but threads that get updated frequently still cause problems since update_at changes.
I’ve been looking at using thread-level deduplication — grouping messages by conversation thread and only inserting new messages that don’t exist in our cache. Does anyone have tips on which Nylas parameters are most reliable for this? Also, is there a recommended rate or polling interval to avoid hitting rate limits while staying reasonably up-to-date?
Would love to hear about any production patterns others have settled on.