Skip to content

cacayue/MicroService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于NetCore3.1开发的微服务学习项目

项目构成

User.Identity 认证服务

  • 使用IdentityServer4构建的鉴权服务
  • 授权方式基于自定义的6位验证码模式

User.API 用户服务

  • 使用EFCore + Mysql 进行数据持久化
  • Dockerfile完成容器化
  • 数据更新时使用RabbitMQ + CAP 进行发送更新事件

Contact.API 通讯录服务

  • 使用Mongdb完成持久化
  • 使用CAP+RabbitMQ订阅消息,接受数据Uer.API更新通知

Project.API 项目服务

  • 使用DDD架构进行开发,将项目转为事件驱动,持久化与应用服务剥离解耦
  • 使用MediatR进行领域事件传递,RabbitMq进行集成事件的传递
  • CQRS进行读写分离(仅为逻辑分离,物理层面仍是同一个Mysql)

Gateway.API 网关服务

  • Ocelot作为服务网关
  • 负责服务级别的初步过滤,由AllowedScopes配置

Recommend.API 推荐服务

基础设施

  • 服务注册由Consul进行
  • 由DnsClient + Consul完成服务间调用的服务发现
  • Polly负责服务间调用时的服务容错

资料汇总

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors