Coder Social home page Coder Social logo

sebastianowy / inflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devmentors/inflow

0.0 0.0 0.0 289 KB

Modular Monolith virtual payments app sample - reference project for the comprehensive course

Home Page: https://modularmonolith.net

License: MIT License

C# 100.00%

inflow's Introduction

Inflow

Modular Monolith

About

Inflow is the sample virtual payments app built as Modular Monolith, written in .NET 6.0. Each module is an independent vertical slice with its custom architecture, and the overall integration between the modules is mostly based on the event-driven approach to achieve greater autonomy between the modules. The shared components (such as cross-cutting concerns & abstractions) can be also found in a modular framework.

Starting the application

Start the infrastructure (only PostgreSQL) using Docker:

docker-compose up -d

Start API located under Bootstrapper project:

cd src/Bootstrapper/Inflow.Bootstrapper
dotnet run

Solution structure

Bootstrapper

Web application responsible for initializing and starting all the modules - loading configurations, running DB migrations, exposing public APIs etc.

Modules

Autonomous modules with the different set of responsibilities, highly decoupled from each other - there's no reference between the modules at all (such as shared projects for the common data contracts), and the synchronous communication & asynchronous integration (via events) is based on local contracts approach.

  • Customers - managing the customers (create, complete, verify, browse).
  • Payments - managing the money deposits & withdrawals (to/from actual bank account).
  • Wallets -managing the virtual wallets & money transfers between them.
  • Users - managing the users/identity (register, login, permissions etc.).

Each module contains its own HTTP requests definitions file (.rest) using REST Client extension.

Saga

Sample Saga pattern implementation for transactional handling the business processes spanning across the distinct modules.

Shared

The set of shared components for the common abstractions & cross-cutting concerns. In order to achieve even better decoupling, it's split into the separate Abstractions and Infrastructure, where the former does contain public abstractions and the latter their implementation.

Microservices transition

The sample module to microservice transition along with the integration with the existing modular monolith application can be found on microservices branch. The complete, microservices based solution can be found in Inflow-micro repository.

Additional resources

Modular Monolith

inflow's People

Contributors

spetz 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.