Azure / azure-service-bus

☁️ Azure Service Bus service issue tracking and samples
https://azure.microsoft.com/services/service-bus
MIT License
580 stars 775 forks source link

Request for additional sending link metadata for service limitations #708

Open jsquire opened 4 weeks ago

jsquire commented 4 weeks ago

Problem statement

To provide the best possible developer experience, the Service Bus client library attempts to eagerly validate caller-provided data before invoking a service operation to allow for a more responsive API. To avoid drift between the client and service enforcement, the client limits validations to items that either have meaning only to the client or that are based on information that the Service Bus service provides.

When publishing messages, there are a few cases which are impactful to developers and for which the client lacks appropriate context to provide a good experience:

Potential workarounds

Because certain service limits are not discoverable, the only viable workaround would be for the client library to hardcode assumptions for the maximum standard message size and maximum message limit and enforce them. Some of the shortcomings of this approach are:

Desired outcome

References and related

jsquire commented 4 weeks ago

//cc: @EldertGrootenboer

EldertGrootenboer commented 3 weeks ago

Thank you for the feedback, we already have several items around this in our backlog, and hope to have updates around these in the coming months. Once we have updates, we will share these here.