rebus-org / Rebus.SqlServer

:bus: Microsoft SQL Server transport and persistence for Rebus
https://mookid.dk/category/rebus
Other
44 stars 45 forks source link

Introduce Configurable Interval for Outbox Forwarder #111

Open jeroenkoknl opened 2 months ago

jeroenkoknl commented 2 months ago

Currently, the interval for forwarding messages from the outbox table to the bus transport is hardcoded to 1 second:

_forwarder = asyncTaskFactory.Create("OutboxForwarder", RunForwarder, intervalSeconds: 1);

To make this more flexible for users of the outbox feature, I propose introducing configuration options that will allow the interval to be adjusted. My plan is as follows:

This change will maintain backward compatibility since OutboxForwarder and its constructor are public.

Looking forward to your feedback on this proposal!