Git Product home page Git Product logo

masstransit.eventstoreintegration's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on Eventuous, an Event Sourcing library for .NET
  • ๐Ÿค” Iโ€™m looking for help with RestSharp
  • ๐Ÿ“ซ How to reach me: follow me on Twitter
  • ๐Ÿ˜„ Pronouns: he/him

masstransit.eventstoreintegration's People

Contributors

alexeyzimarev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

masstransit.eventstoreintegration's Issues

How to manually persist saga instance in specified state

I wonder if it is possible to persist manually stream of events which will represent a saga instance in specified state?

I try to do some integration tests connected with sagas persisted in ES, here is my scenario:

  1. Prepare stream with events:
  • SagaInstanceTransitioned (Initial)
  • event1
  • SagaInstanceTransitioned (state1)
  1. Publish event2 which will change saga state from state1 to state2
  2. Verify if saga has changed the state (state2)

During publishing of event2 I receive error that event2 is not expected in Initial saga state (like the saga would not exist). I suppose that I`m missing some MT configuration (using RabbitMQ).

Can you give me some advice if such scenario is possible?

.NET Core Build + Nuget Package

Hello @alexeyzimarev !
I am using MassTransit in my .NET Core Service and came to the idea to use EventStore with it. As there is already an integration for it, it would be perfect to be able to use it in my .NET Core Application.

Do you plan to offer an .NET Core package?

Greetings,
OriginalDeveloper

System.TypeLoadException: Method 'SendQuery' in type 'MassTransit.EventStoreIntegration.Saga.EventStoreSagaRepository`1' from assembly 'MassTransit.EventStoreIntegration, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

Hi Alexey,

I'm working on a project which required saga features. The Sample-Courier provided by MassTransit describes everything I need, except the storing part.

So I'm writing a POC to be more familiar with Routing Slip pattern and so on...based on Sample-Courier and your MassTransit.EventStoreIntegration to store the saga state in EventStore.

When I start the SagaStateMachine host, I've got the following error:
"System.TypeLoadException: Method 'SendQuery' in type 'MassTransit.EventStoreIntegration.Saga.EventStoreSagaRepository`1' from assembly 'MassTransit.EventStoreIntegration, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation."

I noticed the Task SendQuery<T> method throw:
NotImplementedByDesignException("Redis saga repository does not support queries");

Can you explain me why this method is not implemented?

I hope it's clear enough...

Thanks for your help.

Allow customized serializer settings

I get this exception, which could be ignored if I could set Json serializer settings:

invalid expiration '-68745': {value_negative,-68745}) (Self referencing loop detected for property 'Warehouse' with type 'REST.NWMS.Warehouse'. Path 'Warehouses.Value[0].SupervisorOrg[0]'.)

 ---> MassTransit.RabbitMqTransport.MessageNotConfirmedException: rabbitmq://localhost/import-microservice-nwms-service-warehouse_delay => The message was not confirmed: PRECONDITION_FAILED - invalid expiration '-68745': {value_negative,-68745}

   at async Task MassTransit.RabbitMqTransport.Contexts.RabbitMqModelContext.MassTransit.RabbitMqTransport.ModelContext.BasicPublishAsync(string exchange, string routingKey, bool mandatory, IBasicProperties basicProperties, byte[] body, bool awaitAck)
   at async Task MassTransit.RabbitMqTransport.Transport.RabbitMqSendTransport+SendPipe<T>.Send(ModelContext modelContext)
   at async Task MassTransit.RabbitMqTransport.Transport.RabbitMqSendTransport+SendPipe<T>.Send(ModelContext modelContext)
   at async Task GreenPipes.Agents.PipeContextSupervisor<TContext>.GreenPipes.IPipeContextSource<TContext>.Send(?)
   at async Task GreenPipes.Agents.PipeContextSupervisor<TContext>.GreenPipes.IPipeContextSource<TContext>.Send(?)
   at async Task GreenPipes.Agents.PipeContextSupervisor<TContext>.GreenPipes.IPipeContextSource<TContext>.Send(?)
   at async Task<ScheduledMessage<T>> MassTransit.RabbitMqTransport.Scheduling.DelayedExchangeScheduleMessageProvider.ScheduleSend<T>(Uri destinationAddress, DateTime scheduledTime, Task<T> message, IPipe<SendContext<T>> pipe, CancellationToken cancellationToken)
   at async Task MassTransit.Pipeline.Filters.RedeliveryRetryFilter<TContext, TMessage>.Send(TContext context, IPipe<TContext> next)

   --- End of inner exception stack trace ---

 ---> (Inner Exception #1) Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'Warehouse' with type 'IME.CustomerManagement.Models.Infrastructures.REST.NWMS.Warehouse'. Path 'Warehouses.Value[0].SupervisorOrg[0]'.
   at bool Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CheckForCircularReference(JsonWriter writer, object value, JsonProperty property, JsonContract contract, JsonContainerContract containerContract, JsonProperty containerProperty)
   at bool Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, out JsonContract memberContract, out object memberValue)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)

   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)

   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at void Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, object value, Type objectType)
   at void Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, object value, Type objectType)
   at void Newtonsoft.Json.JsonSerializer.Serialize(TextWriter textWriter, object value)
   at byte[] MassTransit.EventStoreIntegration.Audit.EventStoreMessageAudit.Serialise(object event)
   at Task MassTransit.EventStoreIntegration.Audit.EventStoreMessageAudit.StoreMessage<T>(T message, MessageAuditMetadata metadata)
   at Task MassTransit.Audit.Observers.AuditSendObserver.MassTransit.ISendObserver.PostSend<T>(SendContext<T> context)
   at Task MassTransit.Pipeline.Observables.SendObservable.PostSend<T>(SendContext<T> context)+(ISendObserver x) => { }
   at Task GreenPipes.Util.Connectable<T>.ForEachAsync(Func<T, Task> callback)

Migrate to MassTransit v6.0.2

Hi Alexey,
Thanks for your sharing your work.
I'm willing to use it for my projet but from what I see, this is not compatible with the last version of MassTransit.
Any chance you can take a look?

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.