[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amarok-devel
Subject:    Re: Review Request: [GSoC] Amarok integration with gpodder.net
From:       Lucas Lira Gomes <x8lucas8x () gmail ! com>
Date:       2011-10-17 21:41:59
Message-ID: CAH50j24F4--Ojx9rc8TGk5j6a1PA4N1RtftHppw7YqvDrHh4uQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all,

First and foremost, I would like to thanks all for the tips and suggestions=
.

On 17 October 2011 17:37, Stefan K=C3=B6gl <stefan@skoegl.net> wrote:

> Hi,
>
> On 10/17/2011 11:08 AM, Stefan Derkits wrote:
> > So our problem is: We need to make sure that the last Request to
> > upload an Episode Action was received by gpodder.net. Anyone has an
> > Idea how to do this, can we do this in Amarok or do I need to
> > implement Support for that in the Library.
>
> I can't judge if this will work for Amarok but I'll briefly describe how
> gPodder handles this.
>
> All actions are cached before sending them to the webservice in a batch.
> Accumulated actions are sent if no new actions appear for a certain time
> (1 minute) or right before gPodder terminates.
>
> This caching reduces load on the service (by sending in batches) and
> ensures that no actions are lost (eg when there is some maintenance on
> the site). If some actions can't be sent during shutdown, gPodder tries
> again at startup and keeps them in the cache until they have been
>  successfully uploaded.


Actually, we cache new actions for 30 seconds.
So we send their or just ignore, if the cache is empty.
Then the cache is erased when gpodder.net confirms that it has received the
actions.
Otherwise, we will try to send them in the next timeou(more 30 seconds).

The only difference from your suggestion is that I don't make actions data
persistent, since they are sent frequently(30 seconds interval) to the
server.
However, I'll save them in a file(amarokrc) before the user closes amarok,
so we can load that data in the next start ;}.

Regards, Lucas Lira Gomes.

[Attachment #5 (text/html)]

<div>Hi all,</div><div><br></div><div>First and foremost,  I would like to thanks all \
for the tips and suggestions.</div><div><br></div><div>On 17 October 2011 17:37, \
Stefan Kögl <span dir="ltr">&lt;<a href="mailto:stefan@skoegl.net" \
target="_blank">stefan@skoegl.net</a>&gt;</span> wrote:<br> </div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hi,<br>
<div><br>
On 10/17/2011 11:08 AM, Stefan Derkits wrote:<br>
&gt; So our problem is: We need to make sure that the last Request to<br>
&gt; upload an Episode Action was received by <a href="http://gpodder.net" \
target="_blank">gpodder.net</a>. Anyone has an<br> &gt; Idea how to do this, can we \
do this in Amarok or do I need to<br> &gt; implement Support for that in the \
Library.<br> <br>
</div>I can&#39;t judge if this will work for Amarok but I&#39;ll briefly describe \
how<br> gPodder handles this.<br>
<br>
All actions are cached before sending them to the webservice in a batch.<br>
Accumulated actions are sent if no new actions appear for a certain time<br>
(1 minute) or right before gPodder terminates.<br>
<br>
This caching reduces load on the service (by sending in batches) and<br>
ensures that no actions are lost (eg when there is some maintenance on<br>
the site). If some actions can&#39;t be sent during shutdown, gPodder tries<br>
again at startup and keeps them in the cache until they have been<br>  successfully \
uploaded.</blockquote><div><br></div><div>Actually, we cache new actions for 30 \
seconds.</div><div>So we send their or just ignore, if the cache is empty.</div> \
<div>Then the cache is erased when <a href="http://gpodder.net">gpodder.net</a> \
confirms that it has received the actions.</div><div>Otherwise, we will try to send \
them in the next timeou(more 30 seconds).</div><div><br></div> <div>The only \
difference from your suggestion is that I don&#39;t make actions data persistent, \
since they are sent frequently(30 seconds interval) to the server.</div><div>However, \
I&#39;ll save them in a file(amarokrc) before the user closes amarok, so we can load \
that data in the next start ;}.</div> <div><br></div><div>Regards, Lucas Lira \
Gomes.</div>



_______________________________________________
Amarok-devel mailing list
Amarok-devel@kde.org
https://mail.kde.org/mailman/listinfo/amarok-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic