Giter Site home page Giter Site logo

ots_onion_monolyth's Introduction

OTS - A Monolith system with Onion Architecture

Product Overview

The Online Ticketing System is designed to automate the process of ticket booking for events, travel, and other occasions. The system will allow users to search for events, view available seats, and book tickets online. The objective is to provide a user-friendly and efficient platform that simplifies ticket purchasing and management for both users and administrators.

Why we chose a Monolithic-Architecture for this Design?

Before designing any system, I always adhere to the YAGNI principle (You Aren't Gonna Need It). Based on our discussion during the first interview call and after reviewing the SRS document, it appears that the app is in its early stages and does not require handling millions of users.

Given these points, I decided not to over-engineer the solution by introducing microservices upfront. Instead, I opted for a monolithic architecture to keep the design simple and efficient.

Structural Architecture Overview:

I used basic minimum version of Onion. Just to support this kind of small app. It can easily help me addresses structural concerns within the application codebase, focusing on maintainability, testability, and flexibility.

System Diagram

Code Structure:

root
└─ pipeline  
└─ resources  
└─ tests
	│
	└─ OTS.UnitTests
	└─ OTS.IntegrationTests
└─ src
	│   
	└─ consumers
		│  └─ OTS.API
		│  └─ OTS.EmailWorkerService
		│  └─ OTS.SmsWorkerService	
	└─ core
		│  └─ OTS.Application
		│  └─ OTS.Domain
	└─ OTS.Infrastructure
	└─ [OTS_Onion.sln]
	

What we achieved using it?

  • Layered Structure: We have multiple layers like Domain, Application, Infrastructure, and Consumers.
  • Dependency Inversion: Inner layers do not depend on outer layers. instead, dependencies point inward.
  • Separation of Concerns: Each layer has a specific responsibility, promoting a clean separation of concerns.

High Level Design - System Architecture

System Diagram

Low level Design - ERD

System Diagram

ots_onion_monolyth's People

Contributors

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