CAP is a library to achieve eventually consistent in distributed architectures system like SOA,MicroService. It is lightweight,easy to use and efficiently.
CAP is a .Net Standard library to achieve eventually consistent in distributed architectures system like SOA,MicroService. It is lightweight,easy to use and efficiently.
## OverView
## OverView
CAP is a library that used in an ASP.NET Core project,Of Course you can ues it in ASP.NET Core with .NET Framework.
CAP is a library that used in an ASP.NET Core project,Of Course you can ues it in ASP.NET Core with .NET Framework.
You can think of CAP as an EventBus because it has all the features of EventBus, and CAP provides a easier way to handle the publishing and subscribing than EventBus.
You can think of CAP as an EventBus because it has all the features of EventBus, and CAP provides a easier way to handle the publishing and subscribing than EventBus.
CAP has the function of Message Presistence, and it makes messages reliability when your service is restarted or down. CAP provides a Producer Service based on Microsoft DI that integrates seamlessly with your business services and supports strong consistency transactions.
CAP has the function of Message Presistence, and it makes messages reliability when your service is restarted or down. CAP provides a Publish Service based on Microsoft DI that integrates seamlessly with your business services and supports strong consistency transactions.
This is a diagram of the CAP working in the ASP.NET Core MicroService architecture:
This is a diagram of the CAP working in the ASP.NET Core MicroService architecture:
...
@@ -71,16 +71,16 @@ public void Configure(IApplicationBuilder app)
...
@@ -71,16 +71,16 @@ public void Configure(IApplicationBuilder app)
### Publish
### Publish
Inject `ICapProducerService` in your Controller, then use the `ICapProducerService` to send message
Inject `ICapPublisher` in your Controller, then use the `ICapPublisher` to send message