Hello, My mistake - I configured the event inbox/outbox in EF Core for the administration and shared it in XXX.Shared.Hosting.Microservice, and my SaaS service is also under the administration service.
However, the outbox was inserted into the administration service instead of the SaaS service. Solution: I moved the configuration from EF Core to the HttpApi.Host project and it's working inserted into outbox table and deleted after publish an event
I will close this issue Thanks for your support
I created a trigger to track the records inserted into the Outbox table. If any records are inserted into the Outbox table, the trigger should insert a record into the AuditOutbox table. However, it does not insert records into either the Outbox or AuditOutbox table when an event is published.
Thansk for your support, I disabled sending flag and the event added to outbox, but not sent to event bus
Hello,
I using KafkaDistributedEventBus
to implemets the distributed event bus with Kafka
And enable inbox/outbox pattern
In HttpApi.Host layer and configuration in appsettings.json
[DependsOn(
typeof(AbpDistributedLockingModule),
typeof(AbpEventBusKafkaModule),
typeof(AbpCachingStackExchangeRedisModule),
)]
In the EntityFrameworkCore layer, my db context inherits IHasEventInbox
and IHasEventOutbox
interface
Configure<AbpDistributedEventBusOptions>(options =>
{
options.Inboxes.Configure(XXXServiceDbContext.DatabaseName, config =>
{
config.UseDbContext<XXXServiceDbContext>();
});
options.Outboxes.Configure(XXXServiceDbContext.DatabaseName, config =>
{
config.UseDbContext<XXXServiceDbContext>();
});
});
When I produce a message from the UI to Apache Kafka, my service successfully consumes the message and inserts it into the EventInbox
table.
However, when my service publishes a message, it is not inserted into the EventOutbox
table. Despite this, other services are still able to consume the message from Kafka.
Expected Behavior:
EventOutbox
table before being published to Kafka.Observed Behavior:
EventOutbox
table does not contain the published message