playframework - play framework inter-app communication -


since play supports using 1 database per application, what's best way 1 play application access data of another? there better methods fetching data in json format?

i believe best method use rest call interact other application (if other application calling play one) or use ws library call webservices of target application if want call play.

personally, dislike idea of writing stuff "common database/table" means both applications must aware of structure of table, , changes on 1 end imply changes on table , other side. means create specific channel between these 2 applications hard reuse if, in future, want more applications take part in it.

i favor using rest (preferably) or soap this. decouple applications , make simpler (specially play). , if reason target app doesn't support rest/soap, simple wrapper application manage communication solve this.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -