Giter Site home page Giter Site logo

jefking / fn-call-webhook Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 3.0 119 KB

Web Hook Registry, and Invoker (Serverless)

License: MIT License

JavaScript 100.00%
event-sourcing azure-functions-v2 serverless cloud arm azure-resource-manager iaac azure azure-storage service-bus-queue

fn-call-webhook's Introduction

Azure Functions

Diving deep into a hack-a-thon, with Functions. fakeload (test) -> API -> Worker -> fakehook (test)

Functions

  • fake-hook: used to provide an endpoint to call out to.
  • fake-load: cron-job, to push events through the system.
  • publish: publishes an action on the queue
  • register: registers a user/action to a web hook
  • worker: calls web hooks, when message is pushed through queue

Order Fake Load -> Publish (event) -> Service Bus Queue -> Worker -> loads data from /registry -> calls registered webhook (Fake-hook)

  • Fake Load, generates fake/random data
  • Publish, where you push your events to (what Fake Load calls)

Deployment

Deploy to Azure

Pre-requisits

Azure-Cli

Step 1.

az group create -l westus2 -n oss

Step 2.

az group deployment create --name deploying --resource-group oss --template-file azure-deploy.json --parameters azure-deploy.params.json

Step 3

Function App configuration 'LoadPost' set to URL of Publish function

Step 4.

Update files in ./data: -> URL of 'fake-hook' function; which simulates catching web-hook calls.

Step 5.

Upload files to Blob Storage; local ./data -> storage acc/registry

fn-call-webhook's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.