question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Writing to EventStore is taking so much time, sometimes it doesn't work, and events don't reach directly to Application endpoint.

See original GitHub issue

I’m facing an issue trying to build the Application endpoint that will have handlers and listen to events that’s triggered in the Domain endpoint using Apply method.

  • When I run both endpoints together: I was facing an issue that sometimes command reach the domain handler and the method Apply but is not saved in the EventStore (I can’t see it in the “Stream Browser” window), then it started working.

  • When I run only the Domain endpoint without running the Application endpoint, all works perfectly.

  • When I run again the Domain endpoint+Application endpoint the domain works and data saved in ES but event doesn’t reach the Application, BUT if I turned off the Application endpoint and run it again, I receive ALL the events that I Domain triggered from the beginning of the test (all stacked there), even after receiving them, If I re-run the Application endpoint again I receive them again.

The tests all done using the ToDo sample code.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
charlessolarcommented, Apr 4, 2021

Oh yes I absolutely agree if you are pausing the debugger in an app you’ll need to set the timeouts very long.

Agg.net doesn’t handle connecting to the event store itself but the logic is simple using the event store api. You’ll also need to set the timeouts on the server settings as well

0reactions
AbdoDabbascommented, Apr 4, 2021

Hi @charlessolar, Regarding the issue of setting timeout, any advice ?!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advice for offline mobile client application - EventStoreDB
I am working on a project which I think can really benefit from using event sourcing and it is going well so far....
Read more >
Poor performance from Event Store - EventStoreDB
Firstly the TL;DR of the below detail is that we're seeing really poor event store performance when writing new events “as quickly as...
Read more >
Event store projections failing on a regular basis
Unfortunately, we have noticed that the projections engine fails regularly, and requires that we reboot the Event store. We are currently using ......
Read more >
Event Sourcing and CQRS - Event Store Blog
Therefore, we need to establish a real-time connection to the event store, so the projection receives events immediately after they are stored. ...
Read more >
$all in stream browser not working? - #20 by esr
I keep getting “Failure, stream does not exist”, even after reinstalling. 3.0.3 Windows.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found