Skip to content

Commit

Permalink
GH-806 - Add archiving completion mode.
Browse files Browse the repository at this point in the history
We now support an archiving completion mode that copies the entry to be completed into a dedicated archive to retain the completed event publications but also keep the main publication store small for more efficient data access.

Co-authored-by: Oliver Drotbohm <[email protected]>
  • Loading branch information
ciberkleid and odrotbohm committed Oct 24, 2024
1 parent ce83e62 commit c9cc3a7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ public enum CompletionMode {
/**
* Completes an {@link org.springframework.modulith.events.EventPublication} by removing the database entry.
*/
DELETE;
DELETE,

/**
* Completes an {@link org.springframework.modulith.events.EventPublication} by moving the database entry to
* an archive.
*/
ARCHIVE;

public static final String PROPERTY = "spring.modulith.events.completion-mode";

Expand Down

0 comments on commit c9cc3a7

Please sign in to comment.