Proposal: Custom application counters

0 views
Skip to first unread message

Oleg Pylnev

unread,
Apr 17, 2008, 1:53:36 PM4/17/08
to opensocial-an...@googlegroups.com

Hello All,

 

It would make sense to allow OpenSocial applications to have own set of global counters.

 

Using Global App Data store does not work due to concurrency, so here is the proposed set of methods:

 

newIncrementGlobalAppCounter(id, value) // value can be negative/positive

newUpdateGlobalAppCounter(id, value) // creates counter or forces specific value for counter.

newFetchGlobalAppCounters(ids)

newRemoveGlobalAppCounters(ids) // Removes counter (optional)

 

Regards,

Oleg Pylnev

Myspace.com

 

Louis Ryan

unread,
Apr 17, 2008, 3:15:14 PM4/17/08
to opensocial-an...@googlegroups.com
Oleg,

Can you provide some use cases? For applications which have their own backends this if functionality I can see them implementing on their own.

Cheers

-Louis

Oleg Pylnev

unread,
Apr 17, 2008, 4:24:56 PM4/17/08
to opensocial-an...@googlegroups.com

The apps with own backend will not need it.

 

But for developers who wants to host most/all of app data on container, it makes sense. I do not believe that Amazon S3 provides custom counters either due to ‘eventual consistency’ of data updates.

 

As for use cases, I can see ‘bitten by zombies this week’ counter or ‘total songs played today’ counter.

 

-Oleg

Zhen Wang

unread,
Apr 17, 2008, 5:53:41 PM4/17/08
to opensocial-an...@googlegroups.com
Again, how do you prevent mischievous gadget users from tampering with the app counters?

Arne Roomann-Kurrik (Google)

unread,
Apr 24, 2008, 6:39:06 PM4/24/08
to OpenSocial and Gadgets Specification Discussion
-1 because of the huge potential for abuse.

On Apr 17, 2:53 pm, "Zhen Wang" <wa...@google.com> wrote:
> Again, how do you prevent mischievous gadget users from tampering with the
> app counters?
>
> On Thu, Apr 17, 2008 at 1:24 PM, Oleg Pylnev <opyl...@myspace.com> wrote:
> > The apps with own backend will not need it.
>
> > But for developers who wants to host most/all of app data on container, it
> > makes sense. I do not believe that Amazon S3 provides custom counters either
> > due to 'eventual consistency' of data updates.
>
> > As for use cases, I can see 'bitten by zombies this week' counter or
> > 'total songs played today' counter.
>
> > -Oleg
>
> > *From:* opensocial-an...@googlegroups.com [mailto:
> > opensocial-an...@googlegroups.com] *On Behalf Of *Louis Ryan
> > *Sent:* Thursday, April 17, 2008 12:15 PM
> > *To:* opensocial-an...@googlegroups.com
> > *Subject:* Re: Proposal: Custom application counters
>
> > Oleg,
>
> > Can you provide some use cases? For applications which have their own
> > backends this if functionality I can see them implementing on their own.
>
> > Cheers
>
> > -Louis
>

Cassie

unread,
Apr 25, 2008, 7:44:50 AM4/25/08
to opensocial-an...@googlegroups.com
-1 Yeah, this is the reason we never allowed updating of the global app data way back in 0.5.. you just can't trust javascript (or your friend's javascript)
Perhaps we can help developers in another way? (I don't have any ideas right now, but maybe someone else does...)

- Cassie

Cassie

unread,
Apr 27, 2008, 7:16:07 PM4/27/08
to opensocial-an...@googlegroups.com
This issue is not receiving much positive attention or consensus for 0.8 so I'm considering it closed for now.
Thanks.

- Cassie
Reply all
Reply to author
Forward
0 new messages