Giter VIP home page Giter VIP logo

notifier's Introduction

Notifier

基于rabbitmq回调消息队列,将队列消息转换为HTTP回调并带有定时重试通知。

当重试次数小于等于5次时,会已每30秒重试一次。

当重试次数大于等于6次时小于等于10,会已每60秒重试一次。

超过10次重试失败后存入失败队列(TTL 12小时)。

注册新消息

POST到http://notifier:1234/registerNotification并附带以下数据

Get

{
    "method":"get",
    "url":"http://www.x-speed.cc/1231111",
    "args":{
        "a":"aaaaa",
        "b":"bbbbb"
    }
}

消息将会通知到GET http://www.x-speed.cc/1231111?a=aaaaa&b=bbbbb

Json

{
    "method":"json",
    "url":"http://www.x-speed.cc/1231111",
    "args":{
        "a":"aaaaa",
        "b":"bbbbb"
    }
}

消息将会通知到POST http://www.x-speed.cc/1231111并附带JSON数据:

{
    "a":"aaaaa",
    "b":"bbbbb"
}

notifier's People

Contributors

srar 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.