Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gutomaia/fast_queue
Simple Task Producer
https://github.com/gutomaia/fast_queue
Last synced: 13 days ago
JSON representation
Simple Task Producer
- Host: GitHub
- URL: https://github.com/gutomaia/fast_queue
- Owner: gutomaia
- License: mit
- Created: 2017-11-04T21:48:56.000Z (about 7 years ago)
- Default Branch: 0.0.x
- Last Pushed: 2022-01-06T22:23:47.000Z (almost 3 years ago)
- Last Synced: 2024-07-14T18:53:50.833Z (4 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
Fast Queue
==========Simple Task Producer
Getting Started
---------------When you import fast_queue, it does some Module Wrapper and Import Hook magic to create a mock that will schedule the task on your broker of choice in a way that celery can consume.
.. code:: python
from fast_queue.myapp.mail import send_mail
send_mail('[email protected]')Goal
----Decouple all your celery dependencies from your web project. With fast-queue You can separate your async task impl from your web project. Nowadays, most projects that relies on Celery is great monolithic with both web code and the async task code. With Fast-Queue, you can break them apart in two packages without any cross dependency.
You can benefit
Development benefits:
- Web project does not have dependency of the your async tasks.
- Async tasks, can evolve apart from the web project, as long as the signature does not change.Deployment benefits:
- Separated and independent deploys for both web and async task project
- Smaller web project size, and for the ones that use serveless, project size should be always a concern.Installing
----------Just pip install it!
pip install fast-queue
License
-------This project is licensed under MIT license
For Early Adopters
------------------Although I'm already using it on production environment, there are some improvements and bugs ahead that must be fixed.
- Easier to configure without monkey patching stuff
- Support for Python 3