spring-modulith icon indicating copy to clipboard operation
spring-modulith copied to clipboard

Add archiving event publication completion mode

Open odrotbohm opened this issue 1 year ago • 0 comments
trafficstars

The recently introduced delete completion mode provides an alternative to the default updating mode. It allows keeping the number of event publication entries low at the expense of completed publications not being accessible. A new archiving mode could augment the deletion of the original entry with an insert into a publication archive.

Required steps

  • Augment CompletionMode enum with ARCHIVING value
  • In JDBC, Add schema files that create a separate database table. Adapt SQL statement creation to let the completion and the lookup of completed publications target that new archive table.
  • Similar approaches for MongoDB, Neo4j and JPA

odrotbohm avatar Sep 09 '24 15:09 odrotbohm