Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Execução em background
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
leonardo  
View profile   Translate to Translated (View Original)
 More options Nov 19 2012, 11:43 am
From: leonardo <leonardo.s.c...@gmail.com>
Date: Mon, 19 Nov 2012 08:43:51 -0800 (PST)
Local: Mon, Nov 19 2012 11:43 am
Subject: Execução em background

Pessoal,

A dúvida aqui é mais teórica.
Tenho uma app que o usuário submete uma série de dados financeiros em um
form e depois só precisa acessá-los consolidados.
Estou consolidando os dados em cada pesquisa, o que torna oneroso e
desnecessário, pois os cálculos não são triviais e a quantidade de dados é
grande.
Gostaria que assim que o usuário fizesse o post, este continuava a usar a
aplicação normalmente e em background, executasse a consolidação. Assim na
próxima vez que ele acessasse o dado, era só pegar o consolidado direto do
banco sem precisar de cálculos a cada pesquisa.

Qual a tecnologia apropriada para isso ? O tal ZeroQM ? Alguma forma de
assíncronismo ? Filas ?

E a arquitetura ? Utilizando dois BDs (um deles NoSQL) ? Redis ? Tanto faz ?

Abs,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rafael Novello  
View profile   Translate to Translated (View Original)
 More options Nov 19 2012, 12:34 pm
From: Rafael Novello <rafa.reis.nove...@gmail.com>
Date: Mon, 19 Nov 2012 15:34:26 -0200
Local: Mon, Nov 19 2012 12:34 pm
Subject: Re: Execução em background

Oi Leonardo.

Uma das ferramentas mais usadas para esse tipo de situação é o
Django-Celery [1].

Funciona como uma app que vc "instala" no seu projeto e passa a poder
delegar tarefas para serem executadas em background.

Na própria documentação vc vai encontrar a resposta para suas perguntas,
arquitetura, gerenciador de filas, BD e etc.

[1] - http://packages.python.org/django-celery/

Espero que te ajude. Um abraço!
Atenciosamente,
Rafael Novello.

Twitter: @rafa_novello
Blog: http://rafanovello.wordpress.com/

Em 19 de novembro de 2012 14:43, leonardo <leonardo.s.c...@gmail.com>escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
leonardo  
View profile   Translate to Translated (View Original)
 More options Nov 19 2012, 12:40 pm
From: leonardo <leonardo.s.c...@gmail.com>
Date: Mon, 19 Nov 2012 09:40:12 -0800 (PST)
Local: Mon, Nov 19 2012 12:40 pm
Subject: Re: Execução em background

Rafael,

Obrigado pela dica.
Estou vendo agora sobre o Celery. A documentação fala em RabbitMQ ou Redis.
Sabe se pode ser utilizado o ZeroMQ como broker ?

Abs,

Em segunda-feira, 19 de novembro de 2012 14h34min31s UTC-3, Rafael Novello
escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rafael Novello  
View profile   Translate to Translated (View Original)
 More options Nov 19 2012, 1:16 pm
From: Rafael Novello <rafa.reis.nove...@gmail.com>
Date: Mon, 19 Nov 2012 16:16:43 -0200
Local: Mon, Nov 19 2012 1:16 pm
Subject: Re: Execução em background

Leonardo,

O broker padrão é o RabbitMQ mesmo, mas acredito que seja possível trocar.
Nunca tentei, mas acho que rola.

Um abraço!
Atenciosamente,
Rafael Novello.

Twitter: @rafa_novello
Blog: http://rafanovello.wordpress.com/

Em 19 de novembro de 2012 15:40, leonardo <leonardo.s.c...@gmail.com>escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vinicius Assef  
View profile   Translate to Translated (View Original)
 More options Nov 19 2012, 1:38 pm
From: Vinicius Assef <vinicius...@gmail.com>
Date: Mon, 19 Nov 2012 16:37:49 -0200
Local: Mon, Nov 19 2012 1:37 pm
Subject: Re: Execução em background
Eu prefiro o feijão-com-arroz, sempre que possível.

Que tal pensar em atualização em background via cron?

--
Vinicius

2012/11/19 leonardo <leonardo.s.c...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian S. Perone  
View profile   Translate to Translated (View Original)
 More options Nov 19 2012, 2:29 pm
From: "Christian S. Perone" <christian.per...@gmail.com>
Date: Mon, 19 Nov 2012 17:29:19 -0200
Local: Mon, Nov 19 2012 2:29 pm
Subject: Re: Execução em background

O Celery não suporta ZeroMQ como broker porque o ZeroMQ não tem um broker
como há no modelo do RabbitMQ, esse é um dos motivos do ZeroMQ ter a
performance que tem.

2012/11/19 Vinicius Assef <vinicius...@gmail.com>

--
*"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great big
joke on me."*
http://pyevolve.sourceforge.net/wordpress/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic