Infinitely Scalable Framework with Amazon Web Services?
blog.nanobeepers.com
blog.nanobeepers.com
connectDB("/path/to/db")
you would do:
connectDB("/path/to/$user/db")
Also, if you needed to query all of your users data in aggregate, you would use the 'ATTACH' capability of SQLite to essentially create a master database. Note that you will need to design your scheme appropriately (thoughtful table/column naming, etc) for this to work well. See: http://www.sqlite.org/lang_attach.html
This was interesting from pg's Viaweb FAQ:
http://www.paulgraham.com/vwfaq.html
"What database did you use?
We didn't use one. We just stored everything in files. The Unix file system is pretty good at not losing your data, especially if you put the files on a Netapp.
It is a common mistake to think of Web-based apps as interfaces to databases. Desktop apps aren't just interfaces to databases; why should Web-based apps be any different? The hard part is not where you store the data, but what the software does.
While we were doing Viaweb, we took a good deal of heat from pseudo-technical people like VCs and industry analysts for not using a database-- and for using cheap Intel boxes running FreeBSD as servers. But when we were getting bought by Yahoo, we found that they also just stored everything in files-- and all their servers were also cheap Intel boxes running FreeBSD.
(During the Bubble, Oracle used to run ads saying that Yahoo ran on Oracle software. I found this hard to believe, so I asked around. It turned out the Yahoo accounting department used Oracle.)"
http://fallenpegasus.livejournal.com/tag/s3
It's still at a very early stage in terms of implemented features, but he seems to be moving forward rapidly.
I have no idea what kind of performance he's getting -- I'm planning to check out the MySQL source sometime next week and do a test build. Extremely cool idea. :-)
I'm reminded of a conversation with Facebook's CTO at Startup School, and he mentioned that they experimented with S3 for their photo hosting, but the latency of loading images from S3 made it unacceptable by their performance standards.
For the vast majority of apps, the latency will not be an issue. Especially since S3DFS has caching built in.
A good example is SmugMug who switches over to use S3 to serve out images when they are working on their own datacenter. Don McCaskill (their CEO and head programmer) says that switching back and forth was completely transparent to their users with no human-discernible latency. For more, see:
http://blogs.smugmug.com/don/2007/03/08/amazon-s3-the-speed-of-light-problem/
http://blogs.smugmug.com/onethumb/files/ETech-SmugMug-Amazon-2007.pdf
http://www.danga.com/mogilefs/
1 Will pay good money for software, their prices are ok, just don't like the feeling I get that they will have my company by the balls.
The post is derived from this comment: http://news.ycombinator.com/comments?id=9991