Giter VIP home page Giter VIP logo

durablesbfun's Introduction

Service Bus with Durable Function

Naming conventions : C - Client Or Starter Function , O - Orchestrator Function , A - Activity Function. Please refer this link to know more about durable function types.

Durable Functions

C_sbTrigger/Index.js

This function gets triggered whenever is a new message. When this function is run successfully ,it marks the message complete in Service bus. When this function fails it is retried and finally the message is moved to DLQ.

O_Function/Index.js

This orchestrator function executes the activity functions. Its recommended to use try-catch while executing activity functions. Also its good idea to implement clean up activity function incase the intended activity function app fails.

A_Function/Index.js

  • Uncomment the the Context.log and comment Throw line to see Durable Function Consuming the message.
  • Comment the the Context.log and uncomment Throw line to see Durable Function failing and moving the message to DLQ.
module.exports = async function (context) {
    //Comment/Uncomment to test DLQ
    //context.log('@@@@@@@@@@',context.bindings.name);
    throw "Failing the Activity @@@@@@@@@@"; 
};

durablesbfun's People

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.