Hands-On Microservices with Django by Tieme Woldman
Author:Tieme Woldman
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2024-04-02T00:00:00+00:00
Celery
Celery is an open source task queue system written in Python and available as a Python package (https://pypi.org/project/celery/). Celery runs on top of message queue brokers such as RabbitMQ and Redis, enabling producers to offload tasks asynchronously to workers.
Celery brings the tasks for both the producer and the worker together in a single tasks.py file, which leads to a Django setup like this:
Figure 6.5 â Celery-Django setup with overlapping producer and worker
Letâs walk through this setup from a Django perspective:
Producer: A user calls for a web page action via the urls.py file.
Producer: The urls.py file passes the action to the views.py file.
Producer: The views.py file links to the tasks.py file and offloads a task to a shared task microservice via Celery.Okay, so far, for the producer; now, the worker gets into action.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Content Management | Programming |
User Experience & Usability | User Generated Content |
Web Design | Web Marketing |
Web Services | Website Analytics |
Hello! Python by Anthony Briggs(9422)
The Mikado Method by Ola Ellnestam Daniel Brolund(9352)
Dependency Injection in .NET by Mark Seemann(8896)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7440)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7161)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6274)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6006)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5535)
Kotlin in Action by Dmitry Jemerov(4683)
Audition by Ryu Murakami(4140)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(3990)
Functional Programming in JavaScript by Mantyla Dan(3742)
Svelte with Test-Driven Development by Daniel Irvine(3378)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(3005)
Test-Driven Development with PHP 8 by Rainier Sarabia(2974)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2865)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2688)
Architecting Modern Java EE Applications: Designing lightweight, business-oriented enterprise applications in the age of cloud, containers, and Java EE 8 by Daschner Sebastian(2570)
Web Development with Django by Ben Shaw Saurabh Badhwar(2433)