get-event-store

Could not load type Castle.Proxies.IReadinessProxy when running xUnit integration tests in parallel with Autofac

和自甴很熟 提交于 2019-12-25 01:18:28
问题 I am having an issue that I've been many days unable to resolve. I use xUnit with a given-then-when abstraction to make tests more readable. I am using a wrapper over EventStore and running some integration tests. They all go well.. except one that fails when running all in parallel (and xUnit runs in parallel), but if I run them all sequentially they all succeed. I cannot understand why this would be an issue because every single fact is supposed to run the constructor (the given) and the

Replay events for adjustments

房东的猫 提交于 2019-12-22 10:48:44
问题 Hypothetically I'm working on a system that uses "Event Sourcing" (storing the business events) that has purchase and selling of materials; at some point a report, with prices and costs information is generated. Imagine that one of my clients call me and says, "The costs are wrong, for me, the rules from profit are this way". I could add more handlers or change the rules to adjust to this particular case, and replay the events. But my question is, this is the correct approach (or at least the

Occasionally connected CQRS system

扶醉桌前 提交于 2019-12-18 12:19:59
问题 Problem: Two employees (A & B) go off-line at the same time while editing customer #123, say version #20, and while off-line continue making changes... Scenarios: 1 - The two employees edit customer #123 and make changes to one or more identical attributes. 2 - The two employees edit customer #123 but DO NOT make the same changes (they cross each other without touching). ... they then both come back on-line, first employee A appends, thereby changing the customer to version #21, then employee

Subscribe to category stream, event never appears in subscription client

十年热恋 提交于 2019-12-12 19:09:28
问题 Being a first time user of GetEventStore and having read the docs, I have an issue where events never appears on my subscription client. This is possible due to a configuration step I've missed. Having this console application client: public class EventStoreSubscriptionClient : ISubscriptionClient { private const string GroupName = "liner"; private const string StreamName = "$ce-happening"; private readonly IProvideEventStoreConnection _eventStoreConnection; private readonly UserCredentials

Using the Event Store Client API (.NET), how to I write to a stream and link one event to another?

匆匆过客 提交于 2019-12-12 18:07:26
问题 I have set up Event Store, and can happily write events to the stream, subscribe, and read historical events, that all works fine. I can see that in the ResolvedEvent that gets passed to my subscription handler method has a Link property, but I'm wondering how, when I write to the stream, do I 'set' this property? I've tried setting various meta data properties (using JSON notation), looking through the source code, but didn't find anything that works. It is possible that I'm going about this

EventSourced Saga Implementation

孤街醉人 提交于 2019-12-09 12:57:52
问题 I have written an Event Sourced Aggregate and now implemented an Event Sourced Saga... I have noticed the two are similair and created an event sourced object as a base class from which both derive. I have seen one demo here http://blog.jonathanoliver.com/cqrs-sagas-with-event-sourcing-part-ii-of-ii/ but feel there may be an issue as Commands could be lost in the event of a process crash as the sending of commands is outside the write transaction? public void Save(ISaga saga) { var events =

EventStore basics - what's the difference between Event Meta Data/MetaData and Event Data?

我是研究僧i 提交于 2019-12-07 08:17:36
问题 I'm very much at the beginning of using / understanding EventStore or get-event-store as it may be known here. I've consumed the documentation regarding clients, projections and subscriptions and feel ready to start using on some internal projects. One thing I can't quite get past - is there a guide / set of recommendations to describe the difference between event metadata and data ? I'm aware of the notional differences; Event data is 'Core' to the domain, Meta data for describing, but it is

EventStore basics - what's the difference between Event Meta Data/MetaData and Event Data?

最后都变了- 提交于 2019-12-05 16:18:45
I'm very much at the beginning of using / understanding EventStore or get-event-store as it may be known here. I've consumed the documentation regarding clients, projections and subscriptions and feel ready to start using on some internal projects. One thing I can't quite get past - is there a guide / set of recommendations to describe the difference between event metadata and data ? I'm aware of the notional differences; Event data is 'Core' to the domain, Meta data for describing, but it is becoming quite philisophical. I wonder if there are hard rules regarding implementation (querying etc)

Is Snapshot supported from Greg Young EventStore?

故事扮演 提交于 2019-12-04 17:23:35
问题 I am seriously thinking of using EvenStore from Greg Young, for implementing a system based on events. However, I am not sure whether EventStore from Greg Young supports Snapshots. Snapshots are key requirement for my application as we do not want to replay all the events to construct object state every time. Could anybody provide me with samples on how to create snapshots in EventStore (Greg Young Version)? 回答1: Yes, just put them in a stream and read the first value of that stream. Eg:

EventSourced Saga Implementation

孤街浪徒 提交于 2019-12-03 16:16:21
I have written an Event Sourced Aggregate and now implemented an Event Sourced Saga... I have noticed the two are similair and created an event sourced object as a base class from which both derive. I have seen one demo here http://blog.jonathanoliver.com/cqrs-sagas-with-event-sourcing-part-ii-of-ii/ but feel there may be an issue as Commands could be lost in the event of a process crash as the sending of commands is outside the write transaction? public void Save(ISaga saga) { var events = saga.GetUncommittedEvents(); eventStore.Write(new UncommittedEventStream { Id = saga.Id, Type = saga