-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Event Hubs] Review the use of default DataTransformer #1742
Comments
An interesting case I found is // Sent as byte[]
await sender.send({ body: Buffer.alloc(1024) });
// Sent as JSON string
await sender.send({ body: new Uint8Array(1024) }); |
Including this work to be done as part of the Event Hubs work we are planning for this month. |
Review conclusions:
Regarding @mikeharder's point on Uint8Array: |
From #7253, we have the problem of message body getting wrapped in quotes when the body is of type string which needs to be fixed as well |
We also need to consider for Service Bus:
|
We received a request to support disabling the automatic JSON parsing on event bodies we do when receiving events. While we won't attempt to JSON parse an event that was sent as a byte array, it's not always possible for the same team to control how events are sent to Event Hubs. In high throughput cases, this can cause an unnecessary increase in CPU usage. At the very least, we should allow disabling the JSON parsing - potentially with a flag on |
Hi @ramya-rao-a, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support. |
From the notes in #1481
We need to review how the default DataTransformer behaves and whether received message body is in expected format, when for the various cases where the message body is
For more notes, see #1481
The text was updated successfully, but these errors were encountered: