python - Exchanging NDB Entities between two GAE web apps using URL Fetch -


i planning exchange ndb entities between 2 gae web apps using url fetch.

one web app can initiate http post request entity model name, starting entity index number , number of entities fetched. each entity have index number incremented sequentially new entities.

to send entity:
delimiter added separate different entities separate properties of entity. http response have variable (say "content") containing entity data.

receiving side web app:
receiver web app parse received data , store entities , property values creating new entities , "put"ting them

both web apps running gae python , have same models.

my questions: there disadvantage above method? there better way achieve in automated way in code?

i intend implement kind of infrequent data backup design implementation

you can use ndb to_dict() method entity , use json exchange te data. if lot of data can use cursor.

to exchange entity keys, can add safe key dict.


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -