Code Monkey home page Code Monkey logo

functional-reactive-domain-modeling's Introduction

Functional and Reactive Domain Modeling

by Debasish Ghosh

## Functional Domain Modeling

Definitions

  • Domain
    • The area of interest in the business.
    • A blueprint of the relationships between the various entities of the problem domain and sketches out other important details (objects, behaviours, language, context...).
    • Example: personal banking business.
  • Bounded context
    • One complete functionality within your system.
    • Example: tax reports, deposit management...
  • Entities
    • Items with an identity that has to be managed in the course of its entire lifetime within the system.
    • Semantically mutable.
    • Example: account.
  • Value objects
    • Items identified entirely based on the value it contains.
    • Semantically immutable.
    • Example: address.
  • Services
    • Encapsulate behavior involving value objects and entities.
    • Example: account service.
  • Aggregates
    • Group of related objects defining a consistency boundary.
    • Can consist of one or more entities and value objects.
    • One of the entities is the aggregate root. It...
      • Ensures consistency boundary of business rules and transactions within the aggregate.
      • Prevents the implementation of the aggregate from leaking out to its clients acting as a façade for all the operations that the aggregate supports.
    • Example: account, containing bank, address, dates...
  • Repositories
    • Interface to persist entites.
    • Example: AccountRepository, implemented by AccountRepositoryPostgresql and AccountRepositoryInMemory.

functional-reactive-domain-modeling's People

Contributors

juanignaciosl avatar

Watchers

 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.