Git Product home page Git Product logo

cqrs-demo's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lanceon alim586

cqrs-demo's Issues

`PersistentActor` recovery and `readJournal.eventsByTag` are touchy.

I've been playing around with this cqrs-demo project, and have forked it to experiment a bit. In my fork, I've created a LoggerBestAvgViewBuilder that just takes the tagged events from the persistence query stream and logs them to the console (I don't care about the read side DB implementation at this point). It works well, and as I start/stop the timer in the browser, I can see the BestAvgChanged event being logged to the console as expected.

The issue is that I can't get either the PersistentActor recovery or the readJournal.eventsByTag to work reliably when I try to make a prototype of my own. In fact, as I'm building out prototypes, (spikes or our actual project at work), I'm noticing that recovery is "senstive" - sometimes it works, and sometimes it doesn't. When it doesn't work, there are no errors in the log, just the Actor logging 'RecoveryCompleted` with a "zero" state, no events get played back, even though I can see the events in the Cassandra table. I think what I'm experiencing as "sensitivity" is me being ignorant of either some configuration issue, or I'm mis-managing my Cassandra instance somehow.

Similary, I can get a singleton actor up and running with an Akka Stream for the projector/persistence-query piece, no errors log, but the tagged data won't flow (my WriteEventAdapter is working and I can see the tags in the Cassandra table). My hunch is that if PersistentActor recovery isn't working, then the CassandraReadJournal projector won't work either. It seems to consistently be a "play-back" problem, whether for PersistentActor recovery, or for a CassandraReadJournal projector.

Are there any pitfalls that you are aware of that newbies like me commonly fall into when setting up an Akka solution with akka-persistence-cassandra? I guess with this being a leading edge technology, there aren't any tutorials (other than a couple of demo projects like this) that get through the nuts and bolts like that.

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.