As we all know, the nosql movement aims to become a substitute for traditional relational database management systems in the big data era. Ravendb is a good example of Microsoft's changing attitude towards open source. Microsoft's acceptance of ravendb (nosql database) surprised many people. Ravendb can easily replace the relational database management system and be compatible with previous. NET applications.
The emergence and development of nosql is very necessary. The speed and high scalability of nosql systems are their advantages, and this is not the strength of traditional relational databases. Nosql provides effective solutions for companies such as Amazon and Google that need to process big data. For example, bigtable, the originator of key-value storage, and couchdb.
Related cloud storage solutions provide options other than traditional relational databases, including windows azure table (key value type) and hadoop-based Amazon EC2.
The fixed mode of storing data in rows or columns is a basic feature of traditional relational databases such as SQL Server and Oracle. Although many people think that traditional relational databases will gradually die out, different tools are needed in different situations. As a large number of different types of data continue to grow, unstructured data storage will become a key technology in the future.
Ravendb is a document database designed for the Windows/. NET platform. The emergence of ravendb connects. Net Applications with non-relational databases. Data is stored in shcema-less mode and directly connected through HTTP, restful API, or more convenient. Net client API .. . Net client API uses LINQ to operate on ravendb database document storage.
Ravendb
Before installing ravendb, you need to install. NET Framework 4.0. Ravendb can run in three different modes, including Windows Services and IIS applications.ProgramAnd embedded. NET applications.
The latest version of ravendb includes the following components:
● Client: lightweight Clients Based on. NET Framework 4.0
● Client 3.5: lightweight client Based on. NET Framework 3.5
● Silverlight: Silverlight 4.0 client
● Embeddedclient: embeddedclient (including files required by ravendb in Embedded Mode)
● Server: files required for ravendb Server Mode
● Web: files required by ravendb in IIS Mode
● Bundles: ravendb extension file
● Samples: ravendb Sample Application
Run the following command to set the server
- <Raven root directory> \ Server \ raven.server.exe/install
After the installation is successful, you can access it through http: // localhost: 8080/Raven/studio.html. 1. Because this interface uses Silverlight, you may need to install or upgrade the Silverlight component.
You can click the create sample data button to fill in the sample data storage to learn how raveddb works.
Figure 2 shows how to open ravendb and store data in ravendb. This set of data creates the following attributes: albumarturl, artist, genre, price, title, and count sold.
- {
- "Albumarturl": "/content/images/placeholder.gif ",
- "Artist ":{
- & Quot; Id & quot;: & quot; artists/133 & quot ",
- "Name": "Stevie Ray Vaughan & Double Trouble"
- },
- "Genre ":{
- "ID": "genres/6 ",
- "Name": "Blues"
- },
- "Price": 8.99,
- "Title": "In Step ",
- "Countsold": 0
- }
The style database has a unique URL (http: // localhost: 8080/Raven/studio.html #/edit? Id = albums/614 & database = default), and other projects can be accessed through URLs.
For example, you can access the genre information through the following url: http: // localhost: 8080/Raven/studio.html #/edit? Id = genres/6 & database = default. You can edit the data on the web page.
The future of databases
It is irrational for nosql experts to predict the demise of traditional relational databases. Different scenarios require different applications. The products behind giants such as Google, Amazon, and Microsoft provide a bright future for database development. What do you think about the future development of databases? (Li Zhi/compilation)
Original article: techrepublic.com
Embed ravendb into ASP. net mvc 3 applications