TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building a Data Platform in 15 Minutes

3 pointsby poseidover 11 years ago

1 comment

jsteemannover 11 years ago
thanks for the great post! btw would it be possible to add the application directory to the article for download? saves at least a bit of typing.<p>re the naming of databases &amp; collections: this is indeed a good question!<p>You may want to organise all your Foxx applications in a single database, which then requires some mechanism to tell collections from different applications apart. Imagine you have two applications that both need to store &quot;users&quot; independently. Having just one collection named &quot;users&quot; would cause conflicts, so in this case it makes sense to prefix collections with the application name &quot;myapp_users&quot;. On the opposite, putting all applications into one database also allows you to share collections between apps. For example, it allows to share users between two applications so you can implement single-sign on etc.<p>If your design decision is to put app goes into a single database, prefixing collections with the application name would still work but would be just overkill.<p>So in the end, how to best organise apps in databases &amp; collections depends on your requirements. Foxx establishes some conventions on the collection naming, but if they don&#x27;t fit your needs, it&#x27;s still possible to override the default names and use different ones.