I'm new to the db and cloud world.
So I'm writing an app that needs to query a very simple data (open/closed status of some location).
I thought of two options:
1) An ec2 micro instance running LAMP + MongoDB, and I wrote a php page that will query the db, format it and returns it.
2) i also looked at Amazon SimpleDB, the idea is by using it I don't need to run an ec2 instance 24/7, which can save me money. But where should I put the php page that query the SimpleDB then? It doesn't make sense to put it in an ec2 instance as the idea is to save money by not running it 24/7. I also learnt that I shouldn't connect to the database from my app cause that will expose my username/password of the database.