Review Request: [GSoC] Amarok integration with gpodder.net (GPodder stuff)
Lucas Lira Gomes
x8lucas8x at gmail.com
Mon Oct 17 21:41:59 UTC 2011
Hi all,
First and foremost, I would like to thanks all for the tips and suggestions.
On 17 October 2011 17:37, Stefan Kögl <stefan at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20111017/73e310db/attachment-0001.html>
More information about the Amarok-devel
mailing list