Whats considered best practice to take Snapshots of the aggregates when using EventStore and CommonDomain (Is there a better place to ask, usergroup, something like that) ?
Related Questions in CQRS
- Domain driven design CQRS with multiple aggregates and bounded context
- Where do I put business logic when implementing CQRS pattern using Mediatr in a .Net Clean Architecture application?
- Separating command from query in the spring boot CQRS projects(Multi module)
- Prevent duplicate records in ASP.NET Core app with CQRS architecture
- Service IValidator Array
- Transactionnal events with NestJS & CQRS
- What should be stored in materialized view when implementing event driven CQRS?
- Operations without writing to the DB In DDD
- What is the alternate solution for AddMediatR in the .NET Core Web API Program.CS file?
- Akka: currentEventsByPersistenceId always returns zero for 'eventEnvelope.timestamp'
- Does a command persist state itself, when we combine CQRS with Event Sourcing, or is it delegating to the EventBus?
- How to handle one to many relationship in CQRS/ES/Saga architecture?
- Communication between the writing model and the reading model in CQRS + DDD
- Issue with CQRS Implementation in NestJS with Mongoose
- How to specify which handler to route Mediator query/command?
Related Questions in NEVENTSTORE
- Is there any way to compress the data while using mongo persistence with NEventStore?
- Correct way of implementing optimistic concurrency with NEventStore
- Global sequential number generator without using a relational database
- NEventStore with multiple producers
- EventSourcing in occassionally connected systems: what if there are two servers?
- Why do I keep getting a ConflictingCommandException when trying to save my domain object to NEventStore?
- Event Store subscription service to MongoDB
- Event Source, Anti-Corruption layer design with NEventStore
- NES- Command doesn't send to CommandHandler
- How to create a LocalDB instance for NEventStore
- NEventStore get projection which lists all aggregates of a given type
- Serializing complex types using the built in JSON Serializer of NEventStore
- NEventStore - decrypt and deserialize stared event data
- How to change the type of _id in NEventStore.Persistence.MongoDB?
- NEventStore: Sagas, Commands and not Losing Them
Related Questions in COMMONDOMAIN
- CommonDomain and NEventStore
- NEventStore Commit Guid, what is it really used for?
- CommonDomain - how to unit test aggregate root
- What's the proper way to handle concurrency exceptions in EventStore?
- CommonDomain/EventStore/CQRS : Where is the test project for commondomain?
- Howto: Use single transaction to span update of multiple aggregates
- Dispatching AR version together with its event in JO's CommonDomain
- CommonDomain/EventStore Interface Fetching
- J Oliver EventStore/CommonDomain SagaBase
- How to get list of aggregates using JOliviers's CommonDomain and EventStore?
- J Oliver EventStore V2.0 CommonDomain Snapshot
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Stack Overflow is the best place for questions because everyone can benefit from the answers.
Snapshots should generally be taken "out of band"--that is out of the mainline of processing. In other words, when a series of events are being committed, you don't want to take a snapshot at that point. Instead, you'll want to have another thread or process take a snapshot asynchronously. I recommend another thread instead of a completely separate process because you don't have to worry about making sure your assemblies (domain, message, etc.) are the same as that for your main processing threads.
The code for "how" to take a snapshot is left up to you, the end user. I will very likely provide some additional guidance in the next week or so on the exact steps for taking a snapshot.
One additional consideration is, do you really need snapshotting? How many streams do you have that go above 1000 events? If none, then you almost certainly don't need the complexity of snapshotting.