-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Bernardo Teixeira edited this page Nov 4, 2021
·
8 revisions
ApolloBus is an EventBus with RabbitMQ Client, Kafka Client, and ServiceBus Azure. Is a simple way to use an EventBus. ApolloBus use Message/Event represented by .NET types and routes by their .NET type.
version >=2.2.4
public class EventFromMicroserviceA : ApolloEvent
{
public string Name { get; set; }
public string Message { get; set; }
}
version <2.2.4
public class EventFromMicroserviceA : ApolloBus.Events.Event
{
public string Name { get; set; }
public string Message { get; set; }
}
This means that messages are defined by .NET classes. Each distinct message type that you want to send is represented by a class. The class should be public and public read/write properties.
The interface IApolloBus is messaging/event management. To publish the message and the subscription for the IEventHandler<>. The IEventHandler<> is the handler for the message/event.
- Share data between Application
- Using Event-Driven
dotnet add package ApolloBus --version 1.1.4
You can see more in the Sample