GithubHelp home page GithubHelp logo

olympikesoft / pos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nhadi/pos

0.0 1.0 0.0 15.71 MB

Sample Application DDD, Reactive Microservices, CQRS Event Sourcing Powered by DERMAYON LIBRARY

C# 2.22% Dockerfile 0.09% HTML 4.52% CSS 33.96% JavaScript 58.78% PHP 0.43%

pos's Introduction

POS - DDD, Reactive Microservices, CQRS Event Sourcing Powered by DERMAYON LIBRARY

Sample Application DDD Reactive Microservices with CQRS & Event Sourcing with DERMAYON LIBRARY.

Architectures

Image of Architecture

Features

  1. Microservices
  2. CQRS (Command Query Responsibility Segregation)
  3. Event Sourcing
  4. Generic Repository
  5. UnitOfWork
  6. Domain Driven Design
  7. Api Gateway Ocelot
  8. Multiple Databases type [MongoDb, SqlServer, etc]
  9. Message Broker [Kafka]

Information

Image of DDD

  1. Domain Layer : Main of Application like Event, Repository, etc
  2. Infrastructure Layer : Dataabases, Files, etc
  3. Application Layer : WebApi, etc

Main Architecture

Image of mainarchitecture

Microservices - also known as the microservice architecture - is an architectural style that structures an application as a collection of services that are

  1. Highly maintainable and testable
  2. Loosely coupled
  3. Independently deployable
  4. Organized around business capabilities
  5. Owned by a small team

The microservice architecture enables the rapid, frequent and reliable delivery of large, complex applications. It also enables an organization to evolve its technology stack. reference

API Gateway

Image of gateway

The API Gateway encapsulates the internal system architecture and provides an API that is tailored to each client. It might have other responsibilities such as authentication, monitoring, load balancing, caching,

CQRS Event Sourcing

Image of cqrss

CQRS stands for Command Query Responsibility Segregation. It's a pattern that I first heard described by Greg Young. At its heart is the notion that you can use a different model to update information than the model you use to read information. For some situations, this separation can be valuable, but beware that for most systems CQRS adds risky complexity.

Benefits when to use CQRS Event Sourcing Image of cqrsmaterialized

imagine if the system is too complex and more than 1K user hit in server, how many related tables? and how long does it take to get data? with cqrs & event sourcing we can implement materialized views, or in other words denormalized tables into one data or flat

Reactive Services, Reactive Manifesto, and Microservices

Image of reactive

The Reactive Manifesto outlines qualities of Reactive Systems based on four principles: Responsive, Resilient, Elastic and Message Driven.

  1. Responsiveness means the service should respond in a timely manner.
  2. Resilience goes in line with responsiveness, the system should respond even in the face of failure.
  3. Elasticity works with resilience. The ability to spin up new services and for downstream and upstream services and clients to find the new instances is vital to both the resilience of the system as well as the elasticity of the system.
  4. Message Driven: Reactive Systems rely on asynchronous message passing. This established boundaries between services (in-proc and out of proc) which allows for loose coupling (publish/subscribe or async streams or async calls), isolation (one failure does not ripple through to upstream services and clients), and improved responsive error handling.

Get started

Clone the repository

Run and Build the app

cd Pos 
docker-compose up

pos's People

Contributors

nhadi avatar

Watchers

James Cloos 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.