New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MessageDb feed source #181
Conversation
tests/Propulsion.MessageDb.Integration/Propulsion.MessageDb.Integration.fsproj
Outdated
Show resolved
Hide resolved
tests/Propulsion.MessageDb.Integration/Propulsion.MessageDb.Integration.fsproj
Outdated
Show resolved
Hide resolved
tests/Propulsion.MessageDb.Integration/Propulsion.MessageDb.Integration.fsproj
Outdated
Show resolved
Hide resolved
Might as well also wire this into |
FYI I implemented an "all caught up" check in
which is used in Lambda reactors e.g. https://github.com/jet/dotnet-templates/blob/e063a661de8154336d29eba090e62157ed6dbe6d/equinox-shipping/Watchdog.Lambda/Function.fs#L97 This could probably be generalized somewhat (it's messy to do for Cosmos, but that impl would work for esdb, sss and also mdb) For mdb, you might be able to do a slightly more optimized thing (though the monitor here has all the context to know the instant all feed positions have caught the tail, regardless of where those checkpoints live and/or whether they've actually been committed yet) Probably the best resolution is to do a PR to move it somewhere more general if you ever end up needing it |
Interesting! I would love to learn more about this. I hadn't considered an "all caught up" check to be possible with an ever growing sequence of events 🤔. Looking at the code it seems to use the What's the context you're using this in? Based on the comments I'm gathering that you have a processor running in lambda, and you run this lambda every minute via cron. I'm guessing this is a cost optimization strategy for you since after catching up you'd be billed for the lambda essentially doing nothing? So I guess it's in a context where
|
3dde6af
to
3abd627
Compare
Co-authored-by: Ruben Bartelink <ruben@bartelink.com>
tests/Propulsion.MessageDb.Integration/Propulsion.MessageDb.Integration.fsproj
Outdated
Show resolved
Hide resolved
6f39a0e
to
7f579b5
Compare
Lovely work, thanks! |
No description provided.