Git Product home page Git Product logo

multipledb.api's Introduction

MultipleDB.API

.NET CORE API with multi database connection using with design pattern.

Overview:

The aim of the project is provides CRUD operations with 2 main database connection class which is generated by a factory with a desing patterns.

Controllers:

There are 3 type of controllers in this project:

  1. User Controller
  2. Team Controller
  3. Test Controller

Desing Pattern - Factory Design Pattern:

We can describe factory pattern as there are one factory that generates the main entity/model class from implemented interface with inherited factory class as briefly. In our scenario, There are 2 main models. The one is User model and the other is Team model. The user models stored in PostgreSQL DB and Teams are stored in MongoDB. There are 2 DB context which implemented by an interface. And there are 2 factory which are inherited a abstarct factory class. In addition, these factories generate DB contexts of their own with DB settings.

Injections:

The one is MongoDB settings. It has inserted to servers side as singleton injection. The other one is PostgresContext added as singleton injection. Their settings are gathered from config file of api. And using in constructor of the determined controllers.

Notes:

In the middleware, system has request-reponse logger and exception handler mechanism. In addition, it has custom health check class as external utilty.

⌚️Continues to be developed.

multipledb.api's People

Contributors

kaan-celik avatar

Stargazers

 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.