Skip to content

API for reading events and huge reliability improvements on high loads

Pre-release
Pre-release

Choose a tag to compare

@alvaroloes alvaroloes released this 19 Apr 15:41
· 1381 commits to main since this release

It's been a lot going on in Booster lately so expect some very exciting news listed here!

⚠ Breaking Changes

  • In version 0.12.0 there was a change in the AWS Provider event store (DynamoDB) to create two new indexes. If you are updating from version 0.11.* or older, you will get an error when deploying your app because AWS limits the number of new indexes per deployment to just one. The solution is simple but involves doing two deploys. Follow these steps:
    1. Update all your Booster dependencies (core, types, etc) to this new version, "0.14.4", except the framework-provider-aws-infrastructure package.
    2. For that package, use the following version: "0.14.4-pre12step.1". This version is exactly the same as the "0.14.4" but it only creates one index. The package.json file should show something similar to this:
      image
    3. Deploy your application with boost deploy. You should not see any error now.
    4. When finished, change the version of framework-provider-aws-infrastructure to the final one, "0.14.4". The package.json file should now show something like this:
      image
    5. Do another deployment and you are done.

⚰️ Deprecated

  • Method Booster.fetchEntitySnapshot is deprecated and will be deleted in the next major version. Use Booster.entity instead.

🚀 Features & Improvements

  • Booster now generates a GraphQL API to directly read events (besides your read models). Documentation is being created (issue #790), but you can take a look at this PR description to know what is it about
  • You can also query events in your command or event handlers by using the Booster.events method
  • The storage and processing of events is now much more reliable on extremely high loads (thousands of events per second)
  • Added experimental support for Azure provider 🎉
  • Added experimental support for Kubernetes provider 🎉

🩹 Fixes

  • Fixed a bug caused by a race condition on huge loads when projecting read models. Now optimistic concurrency is used to ensure data is not corrupted.
  • Fixed a bug that was causing some events to be overwritten on huge loads.
  • Many, many, many more bug fixes

🐛 Known bug

  • We are working to provide full support to filter read models by any property. Some of those filters, although not documented, were available using a "beta" structure. If you were one of those adventurous users that were using them, you need to know that they are broken in this version. In the next version we will release full support for those filters, so stay tuned!