Skip to main content

AMQP-backed ASGI channel layer implementation

Project description

An ASGI channel layer that uses AMQP as its backing store with group support.

Settings

The asgi_amqp channel layer looks for settings in ASGI_AMQP and has the following configuration options. URL and connection settings are configured through CHANNEL_LAYER same as any channel layer.

MODEL Set a custom ChannelGroup model to use. See more about this in the ChannelGroup Model section of this README.

Usage:

ASGI_AMQP = {'MODEL': 'awx.main.models.channels.ChannelGroup'}

INIT_FUNC A function that you want run when the channel layer is first instantiated.

Usage:

ASGI_AMQP = {'INIT_FUNC': 'awx.prepare_env'}

ChannelGroup Model

This channel layer requires a database model called ChannelGroup. You can use the model and migation provided by adding asgi_amqp to your installed apps or you can point the ASGI_AMQP.MODEL setting to a model you have already defined.

Installed Apps:

INSTALLED_APPS = [
    ...
    'asgi_amqp',
    ...
]

Settings:

ASGI_AMQP = {
    'MODEL': 'awx.main.models.channels.ChannelGroup',
}

Project details


Release history Release notifications

This version
History Node

1.1.1

History Node

1.1.0

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.2

History Node

0.3.1

History Node

0.3

History Node

0.2.1

History Node

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
asgi_amqp-1.1.1-py2.py3-none-any.whl (7.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Feb 28, 2018
asgi_amqp-1.1.1.tar.gz (4.7 kB) Copy SHA256 hash SHA256 Source None Feb 28, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page