Skip to content

i-am-csr/AMQP-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMQP Example

This is a simple example of how to use AMQP with CloudAMPQ using Python.

Usage

  1. Install the required packages:
pip install -r requirements.txt
  1. Set the environment variables:
export CLOUDAMQP_URL=your_cloudamqp_url
  1. Run the producer:
python producer.py
  1. Run the consumer:
python consumer.py

Explanation

This program simulates a producer and a consumer. The producer sends a message to the queue and the consumer receives it. This is a simple example of sending and receiving messages using AMQP with CloudAMPQ. The messages are sent and received are a simulation of a temperature and humidity sensors. In a real scenario, having this data, we could store it in a database, send it to a dashboard, or even trigger an alert if the values are out of the expected range.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages