Skip to content

Outbox message deletion #1

@jaybi4

Description

@jaybi4

Hi Vincenzo,

I stumbled upon this repo looking for a reference to implement the outbox pattern. You really did a good job here👍

Getting an issue in this repo might sound weird but I just wanted to give you some insight on something. I see that when you store the messages to the outbox persistence you perform it like this (in the publishers):

OutboxEvent savedOutboxEvent = this.outboxEventRepository.save(outboxEvent);
this.outboxEventRepository.delete(savedOutboxEvent);

While understanding why you delete them, I think it would be better not to. There are two main reasons for this:

  • They will be of great help for troubleshooting (acting like a log)
  • They will enable the replay of messages

Let me know your thoughts.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions