GithubHelp home page GithubHelp logo

Comments (2)

watashiSHUN avatar watashiSHUN commented on September 20, 2024

Currently this is true

  1. eventGrid trigger function basically takes in an eventGrid event and expect void as return value, this does not give you any control over the http return code (although I think we can maybe improve this, ie expect a boolean return value, and we will send 400 back to eventGrid when we encountered "false" or exceptions)
  2. retry is more complicated when eventGrid enables batching (array of events in a single http request), if one of the entry causes a failure, eventGrid will resent the whole message, this would require extra work at client side to deduplicate. So for functions, we will return 202 when message is received from eventGrid and we will handle the retry of individual events in the extension (currently under development)
  3. However, for failures other than user code, ie 404, 401, 503 we will still trigger retry
    image

from azure-functions-eventgrid-extension.

aejmelaeus avatar aejmelaeus commented on September 20, 2024

Thank you for the detailed reply. I understand the architectural concepts and therefore the current design.

I will use the HttpTrigger for now for retries and make the processing of messages idempotent.

I'm curious to understand the Event Grid delivery/batching strategy. What I have experienced the messages are always sent in batches of one. I haven't found anything in the docs about this.

Cheers

Weikko

from azure-functions-eventgrid-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.