spring-projects / spring-modulith

Modular applications with Spring Boot
https://spring.io/projects/spring-modulith
Apache License 2.0
779 stars 129 forks source link

Add UI to view and republish incomplete event publications #847

Open haisi opened 3 days ago

haisi commented 3 days ago

Currently, the only built-in way to republishing incomplete events is by restarting the app (spring.modulith.republish-outstanding-events-on-restart=true). Furthermore, there is no convenient way to view which and how many events are in an incomplete state.

By creating a UI which shows the incomplete publications (EventPublicationRegistry#findIncompletePublications) and allows operations to manually resend individual or all events (IncompleteEventPublications#resubmitIncompletePublications) we can improve the operations experience.

haisi commented 3 days ago

I've created a minimal UI to illustrate a possible solution: image

See: https://github.com/spring-projects/spring-modulith/compare/main...haisi:spring-modulith:main