Coder Social home page Coder Social logo

aperture's Introduction

Aperture

Aperture is an intensely minimal projection-only Dogma engine.

Documentation Latest Version Build Status Code Coverage

Aperture's primary purpose is to integrate Dogma projections with event-driven systems that are not necessarily already using Dogma. Given a user-supplied source of event messages, it provides the bare minimum of logic needed to correctly apply those events to Dogma projections.

aperture's People

Contributors

danilvpetrov avatar dependabot-preview[bot] avatar dependabot[bot] avatar dogmatiq-automation[bot] avatar github-actions[bot] avatar jmalloc avatar

Watchers

 avatar  avatar  avatar  avatar

aperture's Issues

Memory cursor in irrecoverable state after sealing with cursors

Reproduction:

  • Append message of type X to memory stream
  • Seal the memory stream
  • Open a consumer that only subscribes to type Y
  • Call Next

I expected this to return a ErrStreamSealed, however it hangs forever. The above is a contrived example, however this will occur if the ending message is any message the consumer hasn't subscribed to and Seal is called before the last message is encountered.

Initial gut feel is (c *memoryCursor) get() (Envelope, <-chan struct{}, error) needs to check whether the stream is sealed before the if c.stream.ready == nil { ... } check, so that a channel that will never be closed isn't returned.

Add a non-event-sourcing implementation.

This will need to be something like a queue-based approach. The projection OCC system can be used to mark a message ID as handled by storing some non-zero-length version using the message ID as the resource.

The queue abstraction should support an ACK/NACK approach. After a message is ACK'd its associated resource can be deleted.

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.