GithubHelp home page GithubHelp logo

event-store-mongodb's Introduction

Broadway

Broadway is a project providing infrastructure and testing helpers for creating CQRS and event sourced applications. Broadway tries hard to not get in your way. The project contains several loosely coupled components that can be used together to provide a full CQRS\ES experience.

build status

About

Read the blog post about this repository at:

Installation

$ composer require broadway/broadway

Documentation

You can find detailed documentation of the Broadway bundle on broadway.github.io/broadway.

Feel free to join #qandidate on freenode with questions and remarks!

Acknowledgements

The broadway project is heavily inspired by other open source project such as AggregateSource, Axon Framework and Ncqrs.

We also like to thank Benjamin, Marijn and Mathias for the conversations we had along the way that helped us shape the broadway project. In particular Marijn for giving us access to his in-house developed CQRS framework.

License

MIT, see LICENSE.

event-store-mongodb's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar matiux avatar othillo avatar robinvdvleuten avatar wjzijderveld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

event-store-mongodb's Issues

New release?

There's a bugfix (missing void returntype) waiting to be released. Is there any issue holding that release back? Can I help?

Namespace of test cases is incorrect

Currently the namespace of the test cases (Broadway\\EventStore\\Mongo\\) are different from the library's namespace (Broadway\\EventStore\\MongoDB\\). These should be the the same.

Missing serializer services in example setup

The services reference broadway.serializer.payload and broadway.serializer.metadata which aren't defined. For simplicity reasons, I'd just do this:

services:
    broadway.event_store.mongodb_client:
        class: MongoDB\Client
        arguments:
            - 'mongodb://%mongodb_host%:%mongodb_port%'

    broadway.event_store.mongodb_collection:
        class: MongoDB\Collection
        factory:
            - '@broadway.event_store.mongodb_client'
            - 'selectCollection'
        arguments:
            - '%mongodb_database%'
            - 'events'

    broadway.serializer:
        class: Broadway\Serializer\ReflectionSerializer

    broadway.event_store.mongodb:
        class: Broadway\EventStore\MongoDB\MongoDBEventStore
        arguments:
            - '@broadway.event_store.mongodb_collection'
            - '@broadway.serializer'
            - '@broadway.serializer'
  • This formats argument lists on separate lines (better readability, IMHO).
  • It adds a serializer.
  • It uses the serializer for both payload and metadata.

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.