Giter VIP home page Giter VIP logo

ddd-symfony-sample's Introduction

DDD symfony sample application

By Jose Celano

A symfony sample application using DDD.

The purpose: testing some DDD concepts using Symfony.

Domain

  • User can register

Installation

Symfony standard installation.

What I want to test?

Command and Event Bus by Matthias Noback

  • Store events (DDD-CQRS)
  • Handle events asynchronously (for better performance)
  • Log events (for debugging)
  • Use message queue (ActiveMQ and RabbitMQ) to send messages between different application modules

Security layer Michiel Uithol

  • Authorization, where: command, app service?

Repositories

  • Agnostic base repository (implementations with Doctrine, MongoDB, ...)
  • Is possible to use doctrine with annotations and keep domain decoupled? I have seen some people store view instead of domain entity.

Validation

  • Where to put validation: command, domain service, repository?

Usage

On order to test Matthias Noback message bus sample using asynchronous events bus must run this Symfony command to pull events from the message queue:

´´´´ php app/console matthias:user:asyn-event-subscriber ´´´´

Stomp message queue parameter are defined in ´´´´parameters.yml´´´´

´´´´ # stomp message queue stomp_host: 127.0.0.1 stomp_port: 61613 stomp_default_queue: /queue/foo stomp_user: admin stomp_password: adminPassword ´´´´

References

Other DDD Symfony sample applications

The best blogs I have found about DDD+Symfony

Posts that has inspired me.

ddd-symfony-sample's People

Contributors

josecelano avatar

Watchers

xzb avatar

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.