开发者

Using MongoLab Database service vs Custom web service with MongoDB running on AWS

开发者 https://www.devze.com 2023-03-28 10:00 出处:网络
I am looking for feasible solutions for my Application to be backed with MongoDB. I am looking to host the MongoDB on the cloud with a python based server to interact with the DB and my app (either mo

I am looking for feasible solutions for my Application to be backed with MongoDB. I am looking to host the MongoDB on the cloud with a python based server to interact with the DB and my app (either mobile/web). I am trying to understand how the architecture should look like.

  1. Either i can host a mongoDB on the AWS cloud and have the server running t开发者_JS百科here only.

  2. I also tried using MongoLab and seemed to be simple accessing it using HTTP requests. but i am not sure if it exposes all the essential features of MongoDB (what ever i can do using a pymongo driver)? Also, should i go for accessing the MongoLab service directly from my application or still i should build a server in-between?

I would prefer to building an server in either case as i want to do some processing before sending the data back to application. but i am not sure in that case how my DB-server-app interaction design should be

Any suggestions?


One thing to consider is that you don't need to use MongoLab's REST API. You can connect directly via a driver as well.

So, if you need to implement business logic (which it sounds like you do), it makes sense to have a three tier architecture with an app server connecting to your MongoLab database via one of the drivers. In your case it sounds like this would be pymongo.

-will

0

精彩评论

暂无评论...
验证码 换一张
取 消