Open Closed

disable Inboxes and outboxes #10503


User avatar
0
laura created

I wnt to disable Inboxes and outboxes behaviour for distributed bus


1 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • In ABP, the Inbox/Outbox behavior is not enabled by default. It is enabled only if you configure it via AbpDistributedEventBusOptions (and add the required DbContext/Mongo context mappings as described in the docs).
    • So to “disable” Inbox/Outbox, remove (or don’t add) the Inbox/Outbox configuration.

    What to do (ABP 9.1.1):

    1. Find where you have something like the following (typically in your *.HttpApi.Host module’s ConfigureServices):
    Configure<AbpDistributedEventBusOptions>(options =>
       {
           options.Outboxes.Configure(config =>
           {
               config.UseDbContext<YourDbContext>();
           });
    
           options.Inboxes.Configure(config =>
           {
               config.UseDbContext<YourDbContext>();
           });
       });
    
    1. Delete that configuration (or comment it out).
    2. If you added Inbox/Outbox tables/collections previously (e.g., IncomingEventRecord/OutgoingEventRecord and migrations), they simply won’t be used anymore. You can keep them or remove them with a migration (optional).

    Optional (per publish):

    • If you still have Outbox configured but want to bypass it for a specific publish, ABP supports publishing without the outbox by setting useOutbox: false when calling PublishAsync (but the main “disable globally” action is removing the Outbox/Inbox configuration).

    Sources:

    • https://abp.io/docs/latest/framework/infrastructure/event-bus/distributed/

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.3.0-preview. Updated on March 09, 2026, 08:51
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.