<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Esteve Fernandez escribió:
<blockquote cite="mid:200811031332.50581.esteve@sindominio.net"
 type="cite">
  <pre wrap="">
Do you plan to expose this REST api using Twisted?
  </pre>
</blockquote>
<br>
No, I want to use Django.<br>
<blockquote cite="mid:200811031332.50581.esteve@sindominio.net"
 type="cite">
  <pre wrap="">
Well, I wouldn't use a database at all (except for logging purposes only 
maybe). Actually you're already using the proper terms (queue, subscriber, 
etc.), so I would use a message-driven architecture:

- A messaging broker, either using AMQP (RabbitMQ, Qpid and OpenAMQ) or Stomp 
(RabbitMQ, ActiveMQ)
- You have a subscriber (waiting for messages on a queue), which dispatches 
tasks from the queue
- The web application sends messages to the messaging broker, which will route 
them to the right subscriber

One of the advantages of this scenario is that you can add more subscribers at 
runtime if needed, which will distribute the load between several conversion 
servers.

You can choose either AMQP [1] or Stomp [2], each has its strengths and 
weaknesses.
  </pre>
</blockquote>
The reason to use a database is because I need to save the state of
each conversion task. The message-driver architecture is very
interesting but I don't have many experience with this architecture. <br>
<br>
Anyway I will take a look products you say (RabbitMQ, Qpid, etc.).<br>
<br>
Thank you.<br>
<blockquote cite="mid:200811031332.50581.esteve@sindominio.net"
 type="cite">
  <pre wrap="">
Cheers.

1 - <a class="moz-txt-link-freetext" href="https://launchpad.net/txamqp">https://launchpad.net/txamqp</a> (disclaimer, I'm one of the developers)
2 - <a class="moz-txt-link-freetext" href="http://code.google.com/p/stomper/">http://code.google.com/p/stomper/</a>

_______________________________________________
Twisted-Python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<a class="moz-txt-link-freetext" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>

  </pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:RotisSemiSans;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EstiloCorreo18
        {mso-style-type:personal;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EstiloCorreo19
        {mso-style-type:personal-reply;
        font-family:Verdana;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<div>
<p class="MsoNormal"><font color="green" face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: green;">Daniel de
la Cuesta Navarrete</span></font><font color="blue"><span
 style="color: blue;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="#006600" face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: rgb(0, 102, 0);">Administrativo
Área
de Innovación y Tecnología</span></font><font color="blue"><span
 style="color: blue;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="black" face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: black;">Fundación
IAVANTE</span></font><font color="blue"><span style="color: blue;"></span></font></p>
<p class="MsoNormal"><font color="black" face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: black;">Telf.:
951 01 53 00 </span></font><font color="navy" face="Verdana" size="2"><span
 color:navy="">-</span></font><font color="black" size="2"><span
 style="font-size: 10pt; font-family: Verdana; color: black;"> Fax: 951
01 53 01</span></font><font color="blue"><span style="color: blue;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="gray" face="Verdana" size="2"><span
 10.0pt;font-family:verdana;color:gray=""><a
 href="http://www.iavante.es/" title="http://www.iavante.es/"><span
 style="text-decoration: none;"><span title="http://www.iavante.es/">www.iavante.es</span></span></a></span></font></p>
<p style="line-height: 150%;"><font color="#999999" size="1"><span
 style="font-size: 8pt; line-height: 150%; font-family: Verdana;">Este
correo electrónico y, en su caso, cualquier fichero anexo, contiene
información
confidencial exclusivamente dirigida a su(s) destinatario(s).
</span></font><font color="#999999" face="Verdana" size="1"><span
 style="font-size: 8pt; line-height: 150%; font-family: Verdana; color: rgb(153, 153, 153);"
 lang="EN-GB">Toda copia o divulgación
deberá ser autorizada por IAVANTE.</span></font><font
 face="RotisSemiSans" size="1"><span
 font-family:rotissemisans;color:gray="" lang="EN-GB"><br>
</span></font><font color="#999999" face="Verdana" size="1"><span
 style="font-size: 8pt; line-height: 150%; font-family: Verdana;">This
e-mail and any attachments are confidential and exclusively directed to
its
adressee(s). Any copy or distribution will have to be authorized by
IAVANTE.</span></font><span lang="EN-GB"></span></p>
</div>
</div>
</body>
</html>