Chapter 5

Building Apps in the Cloud

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • Understanding event-based servers
  • Installing the Node JavaScript server
  • Learning the Node APIs
  • Using the Node package manager
  • Understanding document databases
  • Installing the MongoDB database
  • Developing efficient storage algorithms
  • Designing a multi-process architecture
  • Connecting nginx, Node, and MongoDB end-to-end
  • Displaying real-time usage charts

In this chapter, you will connect your app to the cloud. You’ll learn how to develop cloud-based applications using JavaScript and the JSON data format. You’ll learn how to use the MongoDB database, which is perfect for cloud applications. And you’ll learn how to reduce your data storage and keep your costs down.

MongoDB is one of the new generation of non-relational databases. These databases, sometimes referred to as noSQL databases, do not use the traditional SQL database language, do not provide transactions, and do not have standard table-based data models. Instead, a database like MongoDB is designed for building cloud services. MongoDB accepts very large numbers of read and write operations and supports JSON as its standard data format for input and output. This makes MongoDB one of the best choices when you are building mobile web apps in the cloud using JavaScript.

After you launch a mobile web app, you want to measure how people are using it. Web analytics solutions such as Google Analytics are much less helpful for mobile web apps than for traditional ...

Get Beginning Mobile Application Development in the Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.