How to use example
-
Make sure you have your aws creds in ~/.aws
https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html -
aws sqs create-queue --queue-name foo
-
pipenv install --dev -
change the queuname in
producer.pyandconsumer.pytofoo -
start producer and consumer in different shells:
- terminal 1
pipenv shellpython sample/producer.py
- terminal 2
pipenv shellpython sample/consumer.py
- terminal 1
-
create new tasks in producer by pressing any key. consumer process should start processing these tasks. yay!