Introduce max batch size, and configurable publish window
Still need to implement queue size limit Also fixes env var consistency between addon and consumer
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace Scraper.Models;
|
||||
namespace Producer.Models;
|
||||
|
||||
public class RabbitMqConfiguration
|
||||
{
|
||||
@@ -10,4 +10,7 @@ public class RabbitMqConfiguration
|
||||
public string? Password { get; set; }
|
||||
public string? QueueName { get; set; }
|
||||
public bool Durable { get; set; }
|
||||
public int MaxQueueSize { get; set; } = 1000;
|
||||
public int MaxPublishBatchSize { get; set; } = 100;
|
||||
public int PublishIntervalInSeconds { get; set; } = 1000 * 10;
|
||||
}
|
||||
Reference in New Issue
Block a user