Enviar búsqueda
Cargar
Introduction to Django-Celery and Supervisor
•
Descargar como PPT, PDF
•
0 recomendaciones
•
338 vistas
S
Suresh Kumar
Seguir
Introduction to Django-Celery and Supervisor
Leer menos
Leer más
Internet
Denunciar
Compartir
Denunciar
Compartir
1 de 28
Descargar ahora
Recomendados
Anton Boyko, "The evolution of microservices platform or marketing gibberish"
Anton Boyko, "The evolution of microservices platform or marketing gibberish"
Sigma Software
Anton Boyko "The future of serverless computing"
Anton Boyko "The future of serverless computing"
Fwdays
Azure Functions - the evolution of microservices platform or marketing gibber...
Azure Functions - the evolution of microservices platform or marketing gibber...
Katherine Golovinova
Selenium
Selenium
Bryan Mikaelian
Rainbows, Unicorns, and other Fairy Tales in the Land of Serverless Dreams
Rainbows, Unicorns, and other Fairy Tales in the Land of Serverless Dreams
Josh Carlisle
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDB
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDB
Oren Eini
Embracing the Future
Embracing the Future
Jemuel Young
ESNext, service workers, and the future of the web
ESNext, service workers, and the future of the web
Jemuel Young
Recomendados
Anton Boyko, "The evolution of microservices platform or marketing gibberish"
Anton Boyko, "The evolution of microservices platform or marketing gibberish"
Sigma Software
Anton Boyko "The future of serverless computing"
Anton Boyko "The future of serverless computing"
Fwdays
Azure Functions - the evolution of microservices platform or marketing gibber...
Azure Functions - the evolution of microservices platform or marketing gibber...
Katherine Golovinova
Selenium
Selenium
Bryan Mikaelian
Rainbows, Unicorns, and other Fairy Tales in the Land of Serverless Dreams
Rainbows, Unicorns, and other Fairy Tales in the Land of Serverless Dreams
Josh Carlisle
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDB
Zapping ever faster: how Zap sped up by two orders of magnitude using RavenDB
Oren Eini
Embracing the Future
Embracing the Future
Jemuel Young
ESNext, service workers, and the future of the web
ESNext, service workers, and the future of the web
Jemuel Young
Kudu voodoo slideshare
Kudu voodoo slideshare
Aidan Casey
RavenDB 4.0
RavenDB 4.0
Oren Eini
RavenDB 3.5
RavenDB 3.5
Oren Eini
Build a Chatbot in Ten Minutes - Dave Kerr - Serverless Summit
Build a Chatbot in Ten Minutes - Dave Kerr - Serverless Summit
CodeOps Technologies LLP
Navigate around the edge with PowerShell
Navigate around the edge with PowerShell
Jaap Brasser
RubyConf Taiwan 2016 - Large scale Rails applications
RubyConf Taiwan 2016 - Large scale Rails applications
Florian Dutey
Automate it with Azure Functions
Automate it with Azure Functions
Jaap Brasser
The future of cloud programming
The future of cloud programming
Jason Straughan
RavenDB embedded at massive scales
RavenDB embedded at massive scales
Oren Eini
Azkaban
Azkaban
wyukawa
A brief intro to nodejs
A brief intro to nodejs
Jay Liu
Automate it with Azure Functions
Automate it with Azure Functions
Jaap Brasser
Scaling tokopedia-past-present-future
Scaling tokopedia-past-present-future
Rein Mahatma
Hello world - intro to node js
Hello world - intro to node js
Refresh Annapolis Valley
Conquering AngularJS Limitations
Conquering AngularJS Limitations
Valeri Karpov
NCUG 2019: Super charge your API’s with Reactive streams
NCUG 2019: Super charge your API’s with Reactive streams
Frank van der Linden
Lessons in Open Source from the MongooseJS ODM
Lessons in Open Source from the MongooseJS ODM
Valeri Karpov
Secure your environment by automation
Secure your environment by automation
Jaap Brasser
Orleans – a “cloud native” runtime built for #azure
Orleans – a “cloud native” runtime built for #azure
Brisebois
Writing power shell the right tool for the job
Writing power shell the right tool for the job
Jaap Brasser
Journey towards serverless infrastructure
Journey towards serverless infrastructure
Ville Seppänen
Transforming Enterprise Release Management in Elastic Beanstalk using Jenkins...
Transforming Enterprise Release Management in Elastic Beanstalk using Jenkins...
Yves Hwang
Más contenido relacionado
La actualidad más candente
Kudu voodoo slideshare
Kudu voodoo slideshare
Aidan Casey
RavenDB 4.0
RavenDB 4.0
Oren Eini
RavenDB 3.5
RavenDB 3.5
Oren Eini
Build a Chatbot in Ten Minutes - Dave Kerr - Serverless Summit
Build a Chatbot in Ten Minutes - Dave Kerr - Serverless Summit
CodeOps Technologies LLP
Navigate around the edge with PowerShell
Navigate around the edge with PowerShell
Jaap Brasser
RubyConf Taiwan 2016 - Large scale Rails applications
RubyConf Taiwan 2016 - Large scale Rails applications
Florian Dutey
Automate it with Azure Functions
Automate it with Azure Functions
Jaap Brasser
The future of cloud programming
The future of cloud programming
Jason Straughan
RavenDB embedded at massive scales
RavenDB embedded at massive scales
Oren Eini
Azkaban
Azkaban
wyukawa
A brief intro to nodejs
A brief intro to nodejs
Jay Liu
Automate it with Azure Functions
Automate it with Azure Functions
Jaap Brasser
Scaling tokopedia-past-present-future
Scaling tokopedia-past-present-future
Rein Mahatma
Hello world - intro to node js
Hello world - intro to node js
Refresh Annapolis Valley
Conquering AngularJS Limitations
Conquering AngularJS Limitations
Valeri Karpov
NCUG 2019: Super charge your API’s with Reactive streams
NCUG 2019: Super charge your API’s with Reactive streams
Frank van der Linden
Lessons in Open Source from the MongooseJS ODM
Lessons in Open Source from the MongooseJS ODM
Valeri Karpov
Secure your environment by automation
Secure your environment by automation
Jaap Brasser
Orleans – a “cloud native” runtime built for #azure
Orleans – a “cloud native” runtime built for #azure
Brisebois
Writing power shell the right tool for the job
Writing power shell the right tool for the job
Jaap Brasser
La actualidad más candente
(20)
Kudu voodoo slideshare
Kudu voodoo slideshare
RavenDB 4.0
RavenDB 4.0
RavenDB 3.5
RavenDB 3.5
Build a Chatbot in Ten Minutes - Dave Kerr - Serverless Summit
Build a Chatbot in Ten Minutes - Dave Kerr - Serverless Summit
Navigate around the edge with PowerShell
Navigate around the edge with PowerShell
RubyConf Taiwan 2016 - Large scale Rails applications
RubyConf Taiwan 2016 - Large scale Rails applications
Automate it with Azure Functions
Automate it with Azure Functions
The future of cloud programming
The future of cloud programming
RavenDB embedded at massive scales
RavenDB embedded at massive scales
Azkaban
Azkaban
A brief intro to nodejs
A brief intro to nodejs
Automate it with Azure Functions
Automate it with Azure Functions
Scaling tokopedia-past-present-future
Scaling tokopedia-past-present-future
Hello world - intro to node js
Hello world - intro to node js
Conquering AngularJS Limitations
Conquering AngularJS Limitations
NCUG 2019: Super charge your API’s with Reactive streams
NCUG 2019: Super charge your API’s with Reactive streams
Lessons in Open Source from the MongooseJS ODM
Lessons in Open Source from the MongooseJS ODM
Secure your environment by automation
Secure your environment by automation
Orleans – a “cloud native” runtime built for #azure
Orleans – a “cloud native” runtime built for #azure
Writing power shell the right tool for the job
Writing power shell the right tool for the job
Similar a Introduction to Django-Celery and Supervisor
Journey towards serverless infrastructure
Journey towards serverless infrastructure
Ville Seppänen
Transforming Enterprise Release Management in Elastic Beanstalk using Jenkins...
Transforming Enterprise Release Management in Elastic Beanstalk using Jenkins...
Yves Hwang
Building a document e-signing workflow with Azure Durable Functions
Building a document e-signing workflow with Azure Durable Functions
Joonas Westlin
OracleStore: A Highly Performant RawStore Implementation for Hive Metastore
OracleStore: A Highly Performant RawStore Implementation for Hive Metastore
DataWorks Summit
SQL Analytics for Search Engineers - Timothy Potter, Lucidworksngineers
SQL Analytics for Search Engineers - Timothy Potter, Lucidworksngineers
Lucidworks
Stackato v4
Stackato v4
Jonas Brømsø
Stackato v5
Stackato v5
Jonas Brømsø
Scaling tappsi
Scaling tappsi
Óscar Andrés López
Project Sherpa: How RightScale Went All in on Docker
Project Sherpa: How RightScale Went All in on Docker
RightScale
Gradual migration to MicroProfile
Gradual migration to MicroProfile
Rudy De Busscher
Gradual Migration to MicroProfile
Gradual Migration to MicroProfile
Payara
The Boss: A Petascale Database for Large-Scale Neuroscience, Powered by Serve...
The Boss: A Petascale Database for Large-Scale Neuroscience, Powered by Serve...
Amazon Web Services
Profiling and Tuning a Web Application - The Dirty Details
Profiling and Tuning a Web Application - The Dirty Details
Achievers Tech
Webcast: DevOps in AWS is different! How can containers help?
Webcast: DevOps in AWS is different! How can containers help?
Applatix
Stackato v2
Stackato v2
Jonas Brømsø
Cloud Architect Alliance #15: Openstack
Cloud Architect Alliance #15: Openstack
Microsoft
Service-Oriented Design and Implement with Rails3
Service-Oriented Design and Implement with Rails3
Wen-Tien Chang
DockerCon SF 2015: From Months to Minutes
DockerCon SF 2015: From Months to Minutes
Docker, Inc.
Bluemix paas 기반 saas 개발 사례
Bluemix paas 기반 saas 개발 사례
uEngine Solutions
Advanced Web Technology.pptx
Advanced Web Technology.pptx
ssuser35fdf2
Similar a Introduction to Django-Celery and Supervisor
(20)
Journey towards serverless infrastructure
Journey towards serverless infrastructure
Transforming Enterprise Release Management in Elastic Beanstalk using Jenkins...
Transforming Enterprise Release Management in Elastic Beanstalk using Jenkins...
Building a document e-signing workflow with Azure Durable Functions
Building a document e-signing workflow with Azure Durable Functions
OracleStore: A Highly Performant RawStore Implementation for Hive Metastore
OracleStore: A Highly Performant RawStore Implementation for Hive Metastore
SQL Analytics for Search Engineers - Timothy Potter, Lucidworksngineers
SQL Analytics for Search Engineers - Timothy Potter, Lucidworksngineers
Stackato v4
Stackato v4
Stackato v5
Stackato v5
Scaling tappsi
Scaling tappsi
Project Sherpa: How RightScale Went All in on Docker
Project Sherpa: How RightScale Went All in on Docker
Gradual migration to MicroProfile
Gradual migration to MicroProfile
Gradual Migration to MicroProfile
Gradual Migration to MicroProfile
The Boss: A Petascale Database for Large-Scale Neuroscience, Powered by Serve...
The Boss: A Petascale Database for Large-Scale Neuroscience, Powered by Serve...
Profiling and Tuning a Web Application - The Dirty Details
Profiling and Tuning a Web Application - The Dirty Details
Webcast: DevOps in AWS is different! How can containers help?
Webcast: DevOps in AWS is different! How can containers help?
Stackato v2
Stackato v2
Cloud Architect Alliance #15: Openstack
Cloud Architect Alliance #15: Openstack
Service-Oriented Design and Implement with Rails3
Service-Oriented Design and Implement with Rails3
DockerCon SF 2015: From Months to Minutes
DockerCon SF 2015: From Months to Minutes
Bluemix paas 기반 saas 개발 사례
Bluemix paas 기반 saas 개발 사례
Advanced Web Technology.pptx
Advanced Web Technology.pptx
Más de Suresh Kumar
Scrum referencecard
Scrum referencecard
Suresh Kumar
Owasp testing guide_v4
Owasp testing guide_v4
Suresh Kumar
Zap Scanning
Zap Scanning
Suresh Kumar
Testing Mobile Apps
Testing Mobile Apps
Suresh Kumar
Amazon web services
Amazon web services
Suresh Kumar
Ansible presentation
Ansible presentation
Suresh Kumar
Angular 2
Angular 2
Suresh Kumar
Book hudson
Book hudson
Suresh Kumar
Microservices designing deploying
Microservices designing deploying
Suresh Kumar
Más de Suresh Kumar
(9)
Scrum referencecard
Scrum referencecard
Owasp testing guide_v4
Owasp testing guide_v4
Zap Scanning
Zap Scanning
Testing Mobile Apps
Testing Mobile Apps
Amazon web services
Amazon web services
Ansible presentation
Ansible presentation
Angular 2
Angular 2
Book hudson
Book hudson
Microservices designing deploying
Microservices designing deploying
Último
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119
APNIC
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptx
NIMMANAGANTI RAMAKRISHNA
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
rnrncn29
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
eusebiomeyer
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
zdzoqco
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
494f574xmv
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
rnrncn29
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptx
mibuzondetrabajo
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptx
Mario
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptx
AndrieCagasanAkio
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
Dyna Gilbert
Último
(11)
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptx
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptx
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptx
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
Introduction to Django-Celery and Supervisor
1.
Introducti on to Celery
2.
What is Celery? “Celery
is an asynchronous task queue based on distributed message passing.” It is a powerful, production-ready asynchronous job queue, which allows you to run time-consuming Python functions in the background.
3.
Why should I
use Celery?
4.
User perspective • Minimize
request/response cycle • Smoother user experience • Difference between pleasant and unpleasant
5.
Developer perspective • Offload
time/cpu intensive processes • Scalability - add workers as needed • Flexibility - many points of customization • Actively developed • Great documentation • Lots of tutorials
6.
OUT OF THE REQUEST/RESPONSE CYCLE •
Example: Sending emails asynchronously.
7.
TASKS IN THE BACKGROUND. •
Example: Computational heavy jobs. • Example: Interacting with external APIs.
8.
PERIODIC JOBS
9.
10.
Celery Architecture
11.
PRODUCER • Produces a
task for the queue.
12.
BROKER • Stores the
task backlog • Answers, what work remains to be done? • RabbitMQ, Redis, SQLAlchemy, Django's ORM, MongoDB
13.
WORKER • Execute and
consumes tasks. • Distributed.
14.
RESULTS BACKEND • Stores
the results from our tasks.
15.
EXAMPLE
16.
INTERGRATING WITH DJANGO.
17.
BEWARE OF DJANGO- CELERY
18.
IMPORTANT SETTINGS • BROKER_URL
= 'redis://localhost:6379/0' • CELERY_RESULT_BACKEND = 'redis://localhost:6379/0' • CELERY_TASK_RESULT_EXPIRES = 7*86400 # 7 days • CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler" • CELERY_ACCEPT_CONTENT = ['application/json'] • CELERY_TASK_SERIALIZER = 'json' • CELERY_RESULT_SERIALIZER = 'json' • BROKER_BACKEND = "redis" • BROKER_CONNECTION_TIMEOUT = 5.0 • CELERY_IMPORTS = ('<your-app-name>.tasks',)
19.
Write code in
celery.py
20.
Intialize celery in
__init__.py
21.
BEST PRACTICES
22.
NEVER PASS OBJECTS
AS ARGUMENTS.
23.
AVOID LAUNCHING SYNCHRONOUS SUBTASKS
24.
25.
PERIODIC TASKS
26.
THINGS GO WRONG
?
27.
RE-TRY!
28.
Thanks!
Descargar ahora