We are using azure functions along with ServiceBus, and have the following questions regarding serviceplatform.
-
Does ServicePlatform automictically create (audit, error, healtchecks …etc) queues if not present ? or do we have to explicitly create them ?
-
Is there any point in have the following if we have the following if we have the ServicePlatform configuration in the code ?
sbConfiguration.AdvancedConfiguration.SendFailedMessagesTo("error"); sbConfiguration.AdvancedConfiguration.AuditProcessedMessagesTo("audit");
-
Do we have to enable anything specific for metrics ? or just have the following in the code will do the necessary ?
var platformConnection = new ServicePlatformConnectionConfiguration
{
ErrorQueue = "error",
Heartbeats = new ServicePlatformHeartbeatConfiguration
{
Enabled = true,
HeartbeatsQueue = "Particular.ServiceControl"
},
CustomChecks = new ServicePlatformCustomChecksConfiguration
{
Enabled = true,
CustomChecksQueue = "Particular.ServiceControl"
},
MessageAudit = new ServicePlatformMessageAuditConfiguration
{
Enabled = true,
AuditQueue = "audit"
},
SagaAudit = new ServicePlatformSagaAuditConfiguration
{
Enabled = true,
SagaAuditQueue = "audit"
},
Metrics = new ServicePlatformMetricsConfiguration
{
Enabled = true,
MetricsQueue = "Particular.Monitoring",
Interval = TimeSpan.FromSeconds(1),
InstanceId = "uniqueInstanceId"
}
};
Thanks -nen