event-sourcing

Migrate legacy database to cqrs/event sourcing view

风流意气都作罢 提交于 2021-02-07 10:37:18
问题 We got old legacy application with complex business logic which we need to rewrite. We consider to use cqrs and event sourcing. But it's not clear how to migrate data from the old database. Probable we need migrate it to the read database only, as we can't reproduce all the events to populate event store. But we atleast need to create some initial records in event store for each aggregate, like AggregateCreated ? Or we need write a scripts and to use all the commands one by one to recreate

Automatically scale Axon's tracking event processors

大城市里の小女人 提交于 2021-02-07 09:13:52
问题 I am using Axon framework 4.0.3 with Spring Boot to have event sourcing, and have one tracking processor which is configured to have multiple segments/threads to process events concurrently: axon.eventhandling.processors[my_processor].initial-segment-count = 6 axon.eventhandling.processors[my_processor].thread-count = 3 It is meant to have 2 nodes of my_processor using 3 threads each. However, the problem with this solution is that it's not scalable. I have to know from the very beginning how

Automatically scale Axon's tracking event processors

余生长醉 提交于 2021-02-07 09:13:07
问题 I am using Axon framework 4.0.3 with Spring Boot to have event sourcing, and have one tracking processor which is configured to have multiple segments/threads to process events concurrently: axon.eventhandling.processors[my_processor].initial-segment-count = 6 axon.eventhandling.processors[my_processor].thread-count = 3 It is meant to have 2 nodes of my_processor using 3 threads each. However, the problem with this solution is that it's not scalable. I have to know from the very beginning how

Indefinite log retention on kafka

最后都变了- 提交于 2021-02-07 08:18:42
问题 I am using kafka for event-sourcing. I realized that we still need to configure the log retention time, i.e. log.retention.hours . What is the best value to use if I want to keep all my messages indefinitely? The sample configuration for log.retention.bytes is set to -1, can I use -1 also in the log.retention.hours ? 回答1: See the following Kafka JIRA which is due for the 0.9.0.0 release. For the time being set as suggested: log.retention.bytes = -1 log.retention.hours = 2147483647 Which is

Indefinite log retention on kafka

≯℡__Kan透↙ 提交于 2021-02-07 08:14:00
问题 I am using kafka for event-sourcing. I realized that we still need to configure the log retention time, i.e. log.retention.hours . What is the best value to use if I want to keep all my messages indefinitely? The sample configuration for log.retention.bytes is set to -1, can I use -1 also in the log.retention.hours ? 回答1: See the following Kafka JIRA which is due for the 0.9.0.0 release. For the time being set as suggested: log.retention.bytes = -1 log.retention.hours = 2147483647 Which is

Axon Replay TrackingEvent related to some “aggregateIdentifier” using Axon 4

眉间皱痕 提交于 2021-02-07 04:32:49
问题 We are using CQRS and Event Sourcing using Axon 4. We have the following scenario. Domain Book Action- Create new Book into DB using the Axon CRQS and event sourcing flow (Command - Aggregate - Event) Action- Update the already created Book into DB using the Axon CRQS and event sourcing flow (Command - Aggregate - Event) In the Axon event store this two commands explained above (createCommand and updateCommand) have the same "aggregateIdentifier" id, they are in the same Aggregate tree,

Why is whole system event sourcing an anti-pattern?

别来无恙 提交于 2021-01-18 04:29:02
问题 I'm currently designing a new enterprise system. The system's purpose is to track, display, and notify employees of customer's interactions (i.e. events) with the company. Using an event source pattern to keep a ledger of all the customer interactions/events being collected seems like a very good fit, since all of our additional domain objects are derived from the stream of events. However, I came across an article saying that a whole-system based off of event sourcing is an anti-pattern. Why

Why is whole system event sourcing an anti-pattern?

こ雲淡風輕ζ 提交于 2021-01-18 04:29:00
问题 I'm currently designing a new enterprise system. The system's purpose is to track, display, and notify employees of customer's interactions (i.e. events) with the company. Using an event source pattern to keep a ledger of all the customer interactions/events being collected seems like a very good fit, since all of our additional domain objects are derived from the stream of events. However, I came across an article saying that a whole-system based off of event sourcing is an anti-pattern. Why

Why is whole system event sourcing an anti-pattern?

烈酒焚心 提交于 2021-01-18 04:28:11
问题 I'm currently designing a new enterprise system. The system's purpose is to track, display, and notify employees of customer's interactions (i.e. events) with the company. Using an event source pattern to keep a ledger of all the customer interactions/events being collected seems like a very good fit, since all of our additional domain objects are derived from the stream of events. However, I came across an article saying that a whole-system based off of event sourcing is an anti-pattern. Why

Rebuild queries from domain events by multiple aggregates

ε祈祈猫儿з 提交于 2020-12-30 02:29:46
问题 I'm using a DDD/CQRS/ES approach and I have some questions about modeling my aggregate(s) and queries. As an example consider the following scenario: A User can create a WorkItem, change its title and associate other users to it. A WorkItem has participants (associated users) and a participant can add Actions to a WorkItem. Participants can execute Actions. Let's just assume that Users are already created and I only need userIds. I have the following WorkItem commands: CreateWorkItem