In my app I need to receive objects that has changed since last call
to the server, and normally I would have used some sequence/serial
datatype for that. But such a datatype isn't effective in a
distributed environment so I'll try to "hack" the same functionality
using a Date instead, and then just "handle it" if the client receives
a few already received objects when polling the server. This may
happen if the server clocks aren't perfectly in sync.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
The increment-code can be seen in
demos/shardedcounter/src/com/google/appengine/demos/shardedcounter/
v3/ShardedCounter.java
in the App Engine SDK.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
The basic idea is to use MemcacheService#increment to get unique and
sequential integer values, while writing logs for them to obtain a
durability. While it should be as durable as the option 4, while it
should be more scalable and faster because the log writing can be in
parallel and there's no point of race condition.
Thanks,
Kaz
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Oops, I pasted a wrong link. Here's my code:
By "Log" I do not mean the log messages, but actual entities which
works as journals of the counter updates (or whatever you write on
memcache). Instead of updating existing entities (which can be a
bottleneck), it would be scalable to add new entities to gain the
durability.
Thanks,
Kaz
On Apr 1, 2:24 am, "Ikai L (Google)" <ika...@google.com> wrote:
> That link goes to a groups post.
>
> I wouldn't use logging for this. Right now we are saving logs for what looks
> like 90 days, but this may change such that logging is only until you run
> out of space. Also - you can't programmatically filter on values in logs at
> the application level easily.
>
>
>
> On Tue, Mar 30, 2010 at 8:12 PM, kazunori_279 <kazunori...@gmail.com> wrote:
> > FYI, here's my another proposal as an alternative to the sharded
> > counter: LogCounter.
>
> >http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > The basic idea is to use MemcacheService#increment to get unique and
> > sequential integer values, while writing logs for them to obtain a
> > durability. While it should be as durable as the option 4, while it
> > should be more scalable and faster because the log writing can be in
> > parallel and there's no point of race condition.
>
> > Thanks,
>
> > Kaz
>
> > On Mar 27, 11:10 pm, jbdhl <jbirksd...@gmail.com> wrote:
> > > Nice points. I actually think approach 2) will suffice. Thanks alot!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-a...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengi...@googlegroups.com<google-appengine%2Bunsu...@googlegroups.com>