Coder Social home page Coder Social logo

david-azaani / microservice-inaction Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1.49 MB

Microservice PlayGround Usnig Asp.Net Web API, Docker, RabbitMQ, MassTransit, Grpc, Ocelot API Gateway, MongoDB, Redis, PostgreSQL, SqlServer, Dapper, Entity Framework Core, CQRS and Clean Architecture implementation

License: MIT License

C# 70.87% Dockerfile 4.04% HTML 24.42% CSS 0.68%
clean-architecture cqrs-pattern docker dotnet-core eventbus microservice mogodb portainer postgresql rabbitmq redis sql-server swagger

microservice-inaction's Introduction

Microservice-inAction

There is a couple of microservices which implemented e-commerce modules over Catalog, Basket, Discount and Ordering microservices with NoSQL (MongoDB, Redis) and Relational databases (PostgreSQL, Sql Server) with communicating over RabbitMQ Event Driven Communication and using Ocelot API Gateway.

Features

  • Catalog microservice which includes :

    • ASP.NET Core Web API application
    • REST API principles, CRUD operations
    • MongoDB database connection and containerization
    • Repository Pattern Implementation
    • Swagger Open API implementation
  • Basket microservice which includes :

    • ASP.NET Web API application
    • REST API principles, CRUD operations
    • Redis database connection and containerization
    • Consume Discount Grpc Service for inter-service sync communication to calculate product final price
    • Publish BasketCheckout Queue with using MassTransit and RabbitMQ
  • Microservices Communication :

    • ASP.NET Grpc Server application
    • Build a Highly Performant inter-service gRPC Communication with Basket Microservice
    • Exposing Grpc Services with creating Protobuf messages
    • Using Dapper for micro-orm implementation to simplify data access and ensure high performance
    • PostgreSQL database connection and containerization
  • Discount microservice which includes :

    • Sync inter-service gRPC Communication
    • Async Microservices Communication with RabbitMQ Message-Broker Service
    • Using RabbitMQ Publish/Subscribe Topic Exchange Model
    • Using MassTransit for abstraction over RabbitMQ Message-Broker system
    • Publishing BasketCheckout event queue from Basket microservices and Subscribing this event from Ordering microservices
    • Create RabbitMQ EventBus.Messages library and add references Microservices
  • Ordering Microservice :

    • Implementing DDD, CQRS, and Clean Architecture with using Best Practices
    • Developing CQRS with using MediatR, FluentValidation and AutoMapper packages
    • Consuming RabbitMQ BasketCheckout event queue with using MassTransit-RabbitMQ Configuration
    • SqlServer database connection and containerization
    • Using Entity Framework Core ORM and auto migrate to SqlServer when application startup
  • API Gateway Ocelot Microservice

    • Implement API Gateways with Ocelot
    • Sample microservices/containers to reroute through the API Gateways
    • Run multiple different API Gateway/BFF container types
    • The Gateway aggregation pattern in Shopping.Aggregator
  • WebUI ShoppingApp Microservice

    • ASP.NET Core Web Application with Bootstrap 4 and Razor template
    • Call Ocelot APIs with HttpClientFactory and Polly
  • Ancillary Containers:

    • Use Portainer for Container lightweight management UI which allows you to easily manage your different Docker environments
    • pgAdmin PostgreSQL Tools feature rich Open Source administration and development platform for PostgreSQL
  • Docker Compose establishment with all microservices on docker:

    • Containerization of microservices
    • Containerization of databases
    • Override Environment variables

Contributions and Support

Contributions to this project are welcome! If you have any suggestions, improvements, or bug fixes, feel free to submit a pull request. For major changes, please open an issue first to discuss the proposed changes.

If you encounter any issues or have questions about using the UI, please check the existing issues in the repository. If your problem persists, feel free to open a new issue, and the community will be happy to assist you.

Acknowledgements

We would like to thank the contributors and the open-source community for their valuable contributions and support, making this project possible.

If you find this project helpful or have any suggestions, we would love to hear from you!

Happy coding!

License

This project is licensed under the MIT License. You are free to use, modify, and distribute the codebase as per the terms of this license.

microservice-inaction's People

Contributors

davood-azani avatar

Watchers

 avatar  avatar

Forkers

derkodex

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.