Skip to content

Conversation

@marcpiechura
Copy link
Contributor

Following up on our Discord discussion, I wanted to share this small addition to the documentation to help clarify the behavior of asynchronous projections when working with the Archived event.

There was at least one user who initially had the same misunderstanding, assuming that events appended to a stream would still be processed by asynchronous projections if they appear in the event sequence before the Archived event. That same user later solved the issue by using delayed messages, so I included this approach as one of the suggested workarounds.

@jeremydmiller
Copy link
Member

@marcpiechura Another way to handle this would be to use RaiseSideEffects() to append the Archived event

@jeremydmiller jeremydmiller merged commit 2741828 into JasperFx:master Oct 27, 2025
1 check passed
@marcpiechura
Copy link
Contributor Author

@jeremydmiller I actually added that as the first suggested option (“Writing the Archived event as a side effect within your asynchronous projection”), since you mentioned it during our Discord discussion.
Or did you mean a third option that I didn’t mention yet?

In the PR description, I just wanted to explain why I also included the delayed message option, because another user had used that approach successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants