Skip to content

EventHubs health checks create a new client on each health check #7537

@eerhardt

Description

@eerhardt
          This isn't great because it will create a new `EventHubProducerClient` instance each time the health is checked. `EventHubProducerClient` establishes an amqp connection, which isn't cheap.

I'm not sure, but I don't believe the client is getting disposed. So we might risk having memory issues here.

cc @oising @sebastienros

Originally posted by @eerhardt in #4139 (comment)

Metadata

Metadata

Assignees

Labels

area-integrationsIssues pertaining to Aspire Integrations packagesazureIssues associated specifically with scenarios tied to using Azureazure-eventhubsIssues related to Azure Event Hubs integration

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions