Giter Site home page Giter Site logo

lidiadev / ecommerce-microservices Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 11.0 50 KB

Event-Driven Microservice Architecture using ASP.NET Core Web API, RabbitMQ, Ocelot API Gateway, SQL Server, MongoDB, Redis and Docker

C# 96.45% Dockerfile 3.55%
microservices asp-net-core rabbitmq mongodb redis sqlserver docker ocelot-gateway restful-api swagger event-driven-microservices

ecommerce-microservices's Introduction

Event-Driven Microservice Architecture

Microservices implemented using:

  • ASP.NET Core Web API
  • RabbitMQ
  • Ocelot API Gateway
  • SQL Server
  • MangoDB
  • Redis
  • Docker

Architecture overview

The ECommerce system is using a microservice oriented architecture with autonomous microservices (each one owning its own data/db) and implementing different approaches within each microservice (simple CRUD vs. DDD/CQRS patterns) using HTTP as the communication protocol between the client apps and the microservices and supports asynchronous communication for data updates propagation across multiple services based on Integration Events and an Event Bus (RabbitMQ).

Components overview

Catalog microservice:

  • ASP.NET Core Web API application
  • REST API principles, CRUD operations
  • Mongo DB NoSQL database connection on docker

Basket microservice:

  • ASP.NET Core Web API application
  • REST API principles, CRUD operations
  • Redis connection as a Database on docker

RabbitMQ messaging library:

  • Base EventBus implementation

Prerequirements

  • Visual Studio 2019
  • .NET Core 3.0.1 SDK
  • Docker Desktop

How to run the solution

  1. Clone the repository
  2. At the root directory which include docker-compose.yml files, run the command:
docker-compose -f docker-compose.yml -f docker-compose.override.yml up โ€“d
  1. Launch microservices:

ecommerce-microservices's People

Contributors

lidiadev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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