GithubHelp home page GithubHelp logo

azure-servicebus-queue's Introduction

Windows Azure Servicebus Queue driver for Laravel, with MassTransit compatible payloads

Overview

The library provides support for Service Bus queues. The package should be auto discovered on Laravel > 5.6

Installation

Require this package with composer:

composer require insites-consulting/azure-service-bus-queue

Run composer update!

After composer update has, finished you need to add the following to the connection array in app/config/queue.php, and fill out your own connection data from the Azure Management portal:

'azureservicebus' => [
    'driver'       => 'azureservicebus',
    'endpoint'     => 'https://*.servicebus.windows.net',
    'shared_access_key_name' => '',
    'shared_access_key' => 'primary key',
    'queue'        => '<queue name>',
]

Usage

Once you completed the configuration you can use Laravel Queue API. If you do not know how to use Queue API, please refer to the official Laravel documentation.

From laravel Queue documentation, something like this should work:

        $payload = new \stdClass();
        $payload->id = 1;
        $payload->name = 'hello world';
        ProcessPodcast::dispatch($payload)->onConnection('azureservicebus')->onQueue('queue-name');

artisan worker should be started as per Laravel's official documentation:

php artisan queue:listen azureservicebus --queue=queue-name

Attribution

Inspired by https://github.com/goavega-software/laravel-azure-servicebus-topic & https://github.com/pawprintdigital/laravel-queue-raw-sqs

azure-servicebus-queue's People

Contributors

mrdth avatar

Watchers

James Cloos avatar  avatar

azure-servicebus-queue's Issues

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.