示例应用程序包括以下后端服务:
· An identity microservice, which uses ASP.NET Core Identity and IdentityServer4.
· A catalog microservice, which is a data-driven, create, read, update, delete (CRUD) service that consumes an SQL Server database using EntityFramework Core.
· An ordering microservice, which is a domain-driven service that implements domain driven design patterns.
· A basket microservice, which is a data-driven CRUD service that uses Redis Cache
· A Marketing and Location microservices as example of No-SQL databases (MongoDB and CosmosDB).
· An MVC watchdogs web app to query and show info from the HealthChecks (not shown in the above architecture diagram).
这些后端服务使用ASP.NET Web API实现为微服务器,并在单个Docker主机中部署为唯一容器。然后,客户端应用程序通过表示状态转移(REST)Web界面与后端服务进行通信。
微服务器还通过基于在RabbitMQ上实现的事件总线的异步消息进行通信,但事件总线也可以基于任何其他代理或服务总线,如Azure Service Bus,NServiceBus,MassTransit等。
此外,示例应用程序附带三个客户端应用程序:
·使用ASP.NET Core开发的MVC应用程序。
·使用Angular 2和Typescript开发的单页应用程序(SPA)。
·用Xamarin.Forms开发的跨平台移动应用程序。
博客介绍:https://blogs.msdn.microsoft.com/dotnet/2017/08/02/microservices-and-docker-containers-architecture-patterns-and-development-guidance/
电子书文档地址:https://docs.microsoft.com/zh-cn/dotnet/standard/microservices-architecture/
电子书PDF下载:http://aka.ms/MicroservicesEbook
.NET应用程序架构中心:https://www.microsoft.com/net/learn/architecture
如果你觉得本文对你有帮助,请点击“推荐”,谢谢。