---
title: "Discussion on \"The agent stored the consumer offset in config, and a redeploy replayed the whole backlog\" | Hashnode"
description: "Discussion on \"The agent stored the consumer offset in config, and a redeploy replayed the whole backlog\". The agent tracked the last processed event in an environment constant, ran green locally, and reset on the first redeploy; the consumer re-read the whole queue and resent every welcome email to existing users."
url: "https://hashnode.com/posts/agent-stored-consumer-offset-in-config-replayed-backlog/6ae25b14bfe5a9dca77a1a56"
---

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

Discussion

# [The agent stored the consumer offset in config, and a redeploy replayed the whole backlog](https://blogs.powerduck.com/agent-stored-consumer-offset-in-config-replayed-backlog?utm_source=hashnode&utm_medium=feed)

The agent tracked the last processed event in an environment constant, ran green locally, and reset on the first redeploy; the consumer re-read the whole queue and resent every welcome email to existing users.

Oct 28 · 3 min read · blogs.powerduck.com  
Read the article

-   [#aiagents](https://hashnode.com/tag/aiagents)
-   [#eventstreaming](https://hashnode.com/tag/eventstreaming)
-   [#idempotency](https://hashnode.com/tag/idempotency)
-   [#deployment](https://hashnode.com/tag/deployment)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
