Yes, an app's modules can be in different languages. You do need to pay
care to how they share entries in the datastore or memcache (if they do
such sharing) -- the byte-stream-level is typically not documented (if any
interoperability is in fact possible). For example, if a Python module uses
a field of type ndb.PickleProperty, there is, I believe, no way for a Java
module to recover the underlying Python object (it would require
"unpickling" and I don't think Java has a way to unpickle -- it's a
Python-only protocol).

In this respect, it's pretty much as if, in a non-GAE context, different
programs wrote and read data files from different programming languages;
interoperability can then be murky.

To recover an arbitrary bunch of bytes from Python w/o any interpretation,
declare those fields to be of type BlobProperty; from
Java, com.google.appengine.api.datastore.Blob (or ShortBlob if < 1500
bytes). However, it's then up to you to explore how best to achieve
whatever level of interoperation, if any, is needed.

Alex

On Wed, Mar 23, 2016 at 1:54 PM, Alejandro Magnani <
alejandro.magn...@gmail.com> wrote:

> I've a couple of app engine applications that interact to each other -
> some of them developed in python and others in java. I was wondering if I
> can merge the solutions in just one app engine with different modules
> without changing the code base.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/6ecaedc4-9eef-42f2-b4f9-a5e21647516a%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/6ecaedc4-9eef-42f2-b4f9-a5e21647516a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAE46Be_DYTdSWR7fGcLRD8K9PDaRmYucO_dpPYLXoV2wke-BBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to