Book Image

Learning Node.js for .NET Developers

Book Image

Learning Node.js for .NET Developers

Overview of this book

Node.js is an open source, cross-platform runtime environment that allows you to use JavaScript to develop server-side web applications. This short guide will help you develop applications using JavaScript and Node.js, leverage your existing programming skills from .NET or Java, and make the most of these other platforms through understanding the Node.js programming model. You will learn how to build web applications and APIs in Node, discover packages in the Node.js ecosystem, test and deploy your Node.js code, and more. Finally, you will discover how to integrate Node.js and .NET code.
Table of Contents (21 chapters)
Learning Node.js for .NET Developers
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 9. Persisting Data

Most applications need to persist some kind of data. In this chapter, we'll be looking at some approaches to data persistence for Node.js applications.

The default choice for persistence for a long time has been the traditional relational database. You may have used RDBMSs (relational database management systems) such as Microsoft SQL Server, Oracle, MySQL or PostgreSQL. These systems are often categorized as SQL databases since they all use SQL as their primary query language.

More recently, there has been a proliferation of so-called NoSQL databases. This umbrella term isn't particularly useful as a category. Some NoSQL databases have no more in common with each other than with traditional relational databases.

What's interesting is the range of databases available and the use cases they fulfil. Traditional RDBMSs are as powerful and flexible as ever and the right choice for many situations. In this chapter, we'll consider two other types of database, along with...