RavenDB is a cross-platform document-oriented, NoSQL database server with a range of features that would make any enterprise-level developer or admin giddy. RavenDB was designed especially for the .NET/Windows platform, but getting it up and running on a Linux server is an outstanding pathway to success.
Like many NoSQL databases, RavenDB includes a well-designed GUI that makes working with those massive collections of data much easier than you might think. Before you can work with the data, you must first create a database to hold said data. Fortunately, RavenDB makes this easy as well.
Let me show you.
SEE: Microservices: A cheat sheet (free PDF) (TechRepublic)
How to create a new RavenDB database
- Log in to your RavenDB dashboard and click Databases.
- In the resulting window, click New Database.
- Give your new database a name that is any combination (less than 128 characters) of upper and lowercase letters, numbers, and can contain the special characters “-“,”_”, and “.”.
- Once you have your name set, you can configure the Replication factor. If this is a stand-alone RavenDB server, your Replication factor will be 1. If you have a cluster, you can configure this number up to equal the amount of nodes in the cluster. So if you have three nodes in your RavenDB cluster, you can have a Replication factor between 1 and 3. Since I’m demonstrating with a single node deployment, my Replication factor is 1.
- I’ll name my database TechRepublic and then click Create. The database will be created almost immediately and return you to the Databases window.
- Click on the Database name and you can then begin to create documents by clicking New Document.
One of the best ways to understand how to work with RavenDB documents is to create an empty database and then add sample data. To do that, create your empty database and then click the gear icon. Under Tasks, click Create Sample Data. This will populate the database with a good size collection of sample documents that you can easily learn from.
Given the scale at which RavenDB can serve, it’s a surprisingly easy NoSQL database. Give it a go and see if you don’t find yourself wanting to migrate to this option.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.