Giter Site home page Giter Site logo

bionstt / aspnetmicroservices-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mansoorafzal/aspnetmicroservices

0.0 0.0 0.0 3.06 MB

Development and Communication of Microservices with .NET Core 5 using ASP.NET Web API, Docker Compose, RabbitMQ, MassTransit, Portainer, gRPC, Protocol Buffers, SQL Server, Redis, MongoDB, PostgreSQL, Dapper, Entity Framework Core, AutoMapper, MediatR, FluentValidation, Ocelot, Elasticsearch, Kibana, Polly, OpenTelemetry, Jaeger.

License: MIT License

JavaScript 0.12% C# 79.27% CSS 0.74% HTML 17.46% Dockerfile 2.26% SCSS 0.15%

aspnetmicroservices-1's Introduction

Microservices with ASP.NET Core 5.0

Overview

Implementation is based on the online course on Microservices. It aims to show the working and communication among separate stand-alone Microservices. Each microservice has its own database which includes MongoDB, Redis, PostgreSQL, MySQL and SQL Server. These microservices use event driven communication with RabbitMQ via MassTransit. API Gateway is based on Ocelot. Elasticsearch and Kibana is used for observability and distributed logging. Resilience is implemented with Polly. WatchDog is used to monitor the health check of all microservices. Portainer is setup to view the status of running Docker containers. OpenTelemetry and Jaeger is used for distributed tracing.

TODO

Security will be implemented through IdentityServer4, JSON Web Token, OpenID Connect, Identity Model and OAuth 2. Build pipeline will be setup using Azure Container Registry, Kubernetes, Azure Kubernetes Service and Azure DevOps.

Installation & Setup

To start, run below command:

docker-compose -f .\docker-compose.yml -f .\docker-compose.override.yml up -d

To stop, run below command:

docker-compose -f .\docker-compose.yml -f .\docker-compose.override.yml down

Endpoints & Credentials

  • Catalog Api = 8000
  • Basket Api = 8001
  • Discount Api = 8002
  • Discount Grpc = 8003
  • Ordering Api = 8004
  • Shopping Aggregator = 8005
  • Web Application = 8006
  • Health Check Portal = 8007
  • Ocelot Api Gateway = 8010
  • Identify Server = 8015
  • MongoDB Client = 3000
  • pgAdmin4 = 5050 ([email protected] / Abcd1234)
  • Kibana = 5601
  • phpMyAdmin = 8080 (root / Abcd1234)
  • Portainer = 9000 (admin / Abcd1234)
  • Elasticsearch = 9200
  • RabbitMQ = 15672 (guest / guest)
  • Jaeger = 16686

List of Packages

  • AspNetCore.HealthChecks.MongoDb
  • AspNetCore.HealthChecks.MySql
  • AspNetCore.HealthChecks.NpgSql
  • AspNetCore.HealthChecks.Rabbitmq
  • AspNetCore.HealthChecks.Redis
  • AspNetCore.HealthChecks.UI
  • AspNetCore.HealthChecks.UI.Client
  • AspNetCore.HealthChecks.UI.InMemory.Storage
  • AspNetCore.HealthChecks.Uris
  • AutoMapper
  • AutoMapper.Extensions.Microsoft.DependencyInjection
  • Dapper
  • FluentValidation
  • FluentValidation.DependencyInjectionExtensions
  • Grpc.AspNetCore
  • IdentityServer4
  • IdentityServer4.EntityFramework
  • MassTransit
  • MassTransit.AspNetCore
  • MassTransit.RabbitMQ
  • MediatR.Extensions.Microsoft.DependencyInjection
  • Microsoft.EntityFrameworkCore.SqlServer
  • Microsoft.EntityFrameworkCore.Design
  • Microsoft.EntityFrameworkCore.Tools
  • Microsoft.Extensions.Caching.StackExchangeRedis
  • Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore
  • Microsoft.Extensions.Http.Polly
  • Microsoft.Extensions.Logging.Abstractions
  • Microsoft.VisualStudio.Azure.Containers.Tools.Targets
  • MongoDB.Driver
  • Newtonsoft.Json
  • Npgsql
  • Ocelot
  • Ocelot.Cache.CacheManager
  • OpenTelemetry
  • OpenTelemetry.Exporter.Console
  • OpenTelemetry.Exporter.Jaeger
  • OpenTelemetry.Extensions.Hosting
  • OpenTelemetry.Instrumentation.AspNetCore
  • OpenTelemetry.Instrumentation.Http
  • Polly
  • Pomelo.EntityFrameworkCore.MySql
  • SendGrid
  • Serilog.AspNetCore
  • Serilog.Enrichers.Environment
  • Serilog.Sinks.Elasticsearch
  • Swashbuckle.AspNetCore

aspnetmicroservices-1's People

Contributors

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