[google-appengine] Re: Remote realtime FIFO implementation

2011-12-19 Thread Grigory Fishilevich
> both clients are behind NAT, so I can pull only

I mean, I can only pull from clients, both clients can not be reached
from GAE application :(

-- 
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-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Remote realtime FIFO implementation

2011-12-19 Thread Grigory Fishilevich
Hey guys, thanks a lot for the answers. I really have to think about
how I do it.

Problems I see:

- ds is too expensive, I await about 3 reads/write per second

- RAM-cache will not work (as James X Nelson says, I mean it's not
shared between instances, but I have to learn some more about RAM-
concept of GAE)

- as I understand channel api, it's only PUSH, so I can't push,
because both clients are behind NAT, so I can pull only

Sorry, I'm too tired today to understand all of James post ;) but I
will be back tomorrow ;)

Thanks again for the answers.

-- 
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-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Remote realtime FIFO implementation

2011-12-11 Thread Grigory Fishilevich
Hi all, 

I'm new to Google App Engine and I'm looking for an advice. 

I want write a remote FIFO for realtime access outside of GAE. 
This FIFO should contains small integers only and works as follows: 
- client A write integer-values to FIFO
- client B reads the values 1-5 seconds later
- after what the values are invalid and can be deleted
- there are always only 2 client per FIFO
- it should be possible to have x FIFOs in the app

Importent for me: ability for realtime and concurrency, no deadlock etc. 

So, I'm new to GAE, wich service can I use for my App? 
Pull Queues are limited to 100 active queues, it's not enough for me. 

Should I use memcache? DB? 

Thank in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/aEVQATdRwkQJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] using Guice in mapreduce mappers

2011-05-04 Thread grigory
I've created a couple of mapreduce mappers that successfully run. Now,
I wanted to use my existing classes (DAOs and Managers) from within
these mappers. I developed them for my existing GAE application (that
the mapreduce mappers are part of now). I use Guice in my GAE
application successfully. So how would I plug mapreduce mappers with
Guice DI - so far I have not succeeded with that?

So far I've got this going:
I do use Guice Servlet and I have defined

serve("/mapreduce/*").with(MyMapReduceServlet.class);

in MyServletModule along with my other servlets. mapreduce servlet is
defined:

@Singleton
public class MyMapReduceServlet extends MapReduceServlet {


All of them work including mapreduce servlet. But when I launch
mapreduce job I get NPE on injected property:

@Inject
private WineDAO wineDAO;

@Inject  // not sure this is needed...
public DeleteAllMapper() {
   super();
}

-- 
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-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.