1

I want to know , which is best method to send and receive data between android and mongodb server ?

And what kind web service is good to work with mongodb , I know that python works with mongodb pretty good than php ..

4

2 回答 2

0

You can use JSON over HTTP. Since mongo supports JSON for its document store, it is quite natural.

于 2012-11-28T11:36:51.847 回答
0

best method is to have some kind of server in front of mongodb. you might not want to expose your db to the world directly.

between android and server you can choose whatever protocol you want. between server and mongodb, you use the appropriate driver.

But if you insist on communicating with mongodb directly from android, the latest java driver should work, according to https://jira.mongodb.org/browse/JAVA-295

于 2012-11-28T11:38:42.837 回答