Giter VIP home page Giter VIP logo

Comments (7)

nzthiago avatar nzthiago commented on September 21, 2024 1

@nzthiago This should work for any functions that have an azure event hub sdk. You should be able to find the correct sdk for your language here https://docs.microsoft.com/en-us/azure/event-hubs/sdks

Sure if you want to forego Functions bindings altogether you can just use the SDK for any of the languages in your own functions code, that is the workaround our customers are using. But if using bindings, .NET is the only one that lets you bind to EventHubClient.

from azure-functions-eventhubs-extension.

alrod avatar alrod commented on September 21, 2024

After testing in production it turned out different tiers have different max message sizes.
standard: 1MB
basic: 256KB

We need to stick with 256KB for now. Also there is no way to get pricing tier for an Event Hub using SDK.

from azure-functions-eventhubs-extension.

sebader avatar sebader commented on September 21, 2024

@alrod erally? Where did you see this? I can't find any different limits apart from the 1MB.

Would it maybe at least be possible to make the 256KB the default in the binding but allow in overwrite via the host.json config?!

from azure-functions-eventhubs-extension.

alrod avatar alrod commented on September 21, 2024

I tested this using console app and latest eventhub sdk (4.1.0) sending messages of different sizes.

Overwriting in host.json sounds as good idea, I created an issue to track. As workaround you can bind to [EventHub(TestHubName)] EventHubClient client in azure function and send a message more than 256KB using EventHubClient.

from azure-functions-eventhubs-extension.

sebader avatar sebader commented on September 21, 2024

Yeah I just tested myself and you are right, Basic event hub has still the limit of 256KB message size. Doesn't seem to be documented anywhere. I'll reach out to the PG.

from azure-functions-eventhubs-extension.

nzthiago avatar nzthiago commented on September 21, 2024

@alrod - that workaround would only work for .NET Functions right? For other functions we'd have to wait until the linked issue you created is fixed?

from azure-functions-eventhubs-extension.

joshbro avatar joshbro commented on September 21, 2024

@nzthiago This should work for any functions that have an azure event hub sdk. You should be able to find the correct sdk for your language here https://docs.microsoft.com/en-us/azure/event-hubs/sdks

from azure-functions-eventhubs-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.