|
|
@@ -1,34 +1,34 @@ |
|
|
|
# 介绍 |
|
|
|
# Introduction |
|
|
|
|
|
|
|
CAP 是一个EventBus,同时也是一个在微服务或者SOA系统中解决分布式事务问题的一个框架。它有助于创建可扩展,可靠并且易于更改的微服务系统。 |
|
|
|
CAP is an EventBus and a solution for solving distributed transaction problems in microservices or SOA systems. It helps create a microservices system that is scalable, reliable, and easy to change. |
|
|
|
|
|
|
|
在微软的 [eShopOnContainer](https://github.com/dotnet-architecture/eShopOnContainers) 微服务示例项目中,推荐使用 CAP 作为生产环境可用的 EventBus。 |
|
|
|
In Microsoft's [eShopOnContainer] (https://github.com/dotnet-architecture/eShopOnContainers) microservices sample project, it is recommended to use CAP as the EventBus available in the production environment. |
|
|
|
|
|
|
|
!!! question "什么是 EventBus?" |
|
|
|
|
|
|
|
An Eventbus is a mechanism that allows different components to communicate with each other without knowing about each other. A component can send an Event to the Eventbus without knowing who will pick it up or how many others will pick it up. Components can also listen to Events on an Eventbus, without knowing who sent the Events. That way, components can communicate without depending on each other. Also, it is very easy to substitute a component. As long as the new component understands the Events that are being sent and received, the other components will never know. |
|
|
|
!!! question "What is EventBus?" |
|
|
|
|
|
|
|
相对于其他的 Service Bus 或者 Event Bus, CAP 拥有自己的特色,它不要求使用者发送消息或者处理消息的时候实现或者继承任何接口,拥有非常高的灵活性。我们一直坚信约定大于配置,所以CAP使用起来非常简单,对于新手非常友好,并且拥有轻量级。 |
|
|
|
An Eventbus is a mechanism that allows different components to communicate with each other without knowing about each other. A component can send an Event to the Eventbus without knowing who will pick it up or how many others will pick it up. Components can also listen to Events on an Eventbus, without knowing who sent the Events. That way, components can communicate without depending on each other. Also, it is very easy to substitute a component. As long as the new component understands the Events that are being sent and received, the other components will never know. |
|
|
|
|
|
|
|
CAP 采用模块化设计,具有高度的可扩展性。你有许多选项可以选择,包括消息队列,存储,序列化方式等,系统的许多元素内容可以替换为自定义实现。 |
|
|
|
Compared to other Service Bus or Event Bus, CAP has its own characteristics. It does not require users to implement or inherit any interface when sending messages or processing messages. It has very high flexibility. We have always believed that the appointment is greater than the configuration, so the CAP is very simple to use, very friendly to the novice, and lightweight. |
|
|
|
|
|
|
|
The CAP is modular in design and highly scalable. You have many options to choose from, including message queues, storage, serialization, etc. Many elements of the system can be replaced with custom implementations. |
|
|
|
|
|
|
|
## 相关视频 |
|
|
|
## Related videos |
|
|
|
|
|
|
|
[Video: bilibili 教程](https://www.bilibili.com/video/av31582401/) |
|
|
|
[Video: bilibili Tutorial](https://www.bilibili.com/video/av31582401/) |
|
|
|
|
|
|
|
[Video: Youtube 教程](https://youtu.be/K1e4e0eddNE) |
|
|
|
[Video: Youtube Tutorial](https://youtu.be/K1e4e0eddNE) |
|
|
|
|
|
|
|
[Video: 腾讯视频教程](https://www.cnblogs.com/savorboard/p/7243609.html) |
|
|
|
[Video: Tencent Tutorial](https://www.cnblogs.com/savorboard/p/7243609.html) |
|
|
|
|
|
|
|
## 相关文章 |
|
|
|
## Related articles |
|
|
|
|
|
|
|
[Article: CAP 介绍及使用](http://www.cnblogs.com/savorboard/p/cap.html) |
|
|
|
[Article: Introduction and how to use](http://www.cnblogs.com/savorboard/p/cap.html) |
|
|
|
|
|
|
|
[Article: CAP 2.5 版本中的新特性](https://www.cnblogs.com/savorboard/p/cap-2-5.html) |
|
|
|
[Article: New features in version 2.5](https://www.cnblogs.com/savorboard/p/cap-2-5.html) |
|
|
|
|
|
|
|
[Article: CAP 2.4 版本中的新特性](http://www.cnblogs.com/savorboard/p/cap-2-4.html) |
|
|
|
[Article: New features in version 2.4](http://www.cnblogs.com/savorboard/p/cap-2-4.html) |
|
|
|
|
|
|
|
[Article: CAP 2.3 版本中的新特性用](http://www.cnblogs.com/savorboard/p/cap-2-3.html) |
|
|
|
[Article: New features in version 2.3](http://www.cnblogs.com/savorboard/p/cap-2-3.html) |
|
|
|
|
|
|
|
[Article: .NET Core Community 首个千星项目诞生:CAP](https://www.cnblogs.com/forerunner/p/ncc-cap-with-over-thousand-stars.html) |
|
|
|
[Article: .NET Core Community The first thousand-star project was born: CAP](https://www.cnblogs.com/forerunner/p/ncc-cap-with-over-thousand-stars.html) |