Closed johanhaleby closed 1 month ago
Maybe by setting a startUpMode = BACKGROUND
or startUpMode = FOREGROUND
. If the latter, call waitUntilStarted
on the subscription
The problem is that the CatchupSubscriptionModel
always does "catch-up" when calling subscribe. Instead it should start in the background, and only "synchronize" if waitUntilStarted
is called.
For example, if you have many events or a subscription whose processing is very slow:
then the Spring application won't start until all events have been consumed. This is not good! Instead, start the subscription in another (virtual?) thread. Should this be configurable in the annotation?