3 ms·
I wouldn't. Exactly-once is a fool's quest, and the scheme in this article does not offer it. To achieve at-least-once, you need only track which tasks have be
by jeffbee 6y ago
I wouldn't. Exactly-once is a fool's quest, and the scheme in this article does not offer it.
To achieve at-least-once, you need only track which tasks have been successfully retired, and persist that knowledge in the database by either deleting or mutating the task. During a cold start you scan the persistent store to find tasks that were still pending/live at the time your process began.