[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:       Stefan Kögl <stefan () skoegl ! net>
Date:       2011-10-17 20:37:04
Message-ID: 4E9C91F0.4080000 () skoegl ! net
[Download RAW message or body]

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.


-- Stefan

_______________________________________________
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