Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove telemetry batch operation over MQTT #3000

Merged
merged 7 commits into from
Dec 6, 2022
Merged

Conversation

abhipsaMisra
Copy link
Member

No description provided.

@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@drwill-ms drwill-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments inline.

abhipsaMisra and others added 2 commits December 2, 2022 18:42
Co-authored-by: David R. Williamson <drwill@microsoft.com>
@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

// is the recommended pattern for sending large numbers of messages over an asynchronous
// protocol like MQTT
await Task.WhenAll(messages.Select(x => SendTelemetryAsync(x, cancellationToken))).ConfigureAwait(false);
throw new InvalidOperationException("Batch telemetry is supported only over AMQP.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the MQTT transport layer shouldn't know about the other transports. A more cohesive message would be that it is not supported over MQTT. Thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see your point. I think we'll still need to guide users down the correct path.
How about:
throw new InvalidOperationException("This operation is not supported over this protocol. Please refer to the doc comments for additional details.");

abhipsaMisra and others added 3 commits December 4, 2022 21:15
Co-authored-by: David R. Williamson <drwill@microsoft.com>
@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abhipsaMisra abhipsaMisra merged commit 8056df1 into previews/v2 Dec 6, 2022
@abhipsaMisra abhipsaMisra deleted the abmisr/mqtt2 branch December 6, 2022 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants