微軟Azure云推出基于JSON的NoSQL數據庫DocumentDB

jopen 10年前發布 | 9K 次閱讀 DocumentDB

        DocumentDB 使用基于 JSON 文檔的數據服務 (ps: 目前只能在 Azure 平臺上使用)。

        DocumentDB 是一個全托管的基于文檔的數據庫服務 (ps: 目前無法本地安裝),使用無模式 JSON 數據模型,有豐富的查詢和索引功能。它提供了可配置的和可靠的性能,原生 JavaScript 事務處理,以及云計算特有的彈性擴展能力。

        DocumentDB 的框架圖

微軟Azure云推出基于JSON的NoSQL數據庫DocumentDB

        在圖中 Collection 下面有:

  • 存儲過程   Sproc
  • 觸發器     Trigger 
  • 自定義函數 User Defined Functions

        亮點為可以使用 JavaScript 寫 Server side 的自定義函數(UDF)

  • 自定義函數中可以調用存儲過程;
  • 可用作觸發器可以用來預/后處理數據。
  • 戶自定義函數的 JavaScript 沒有訪問上下文對象的權限,只能用來做計算。[摘自:http://dl.windowsazure.com/documentDB/jsserverdocs/]    

        DocumentDB 目前使用仍然使用 SQL 來查詢 JSON 數據(為了兼容 .NET/Java?)。但也支持通過 HTTP URL 與數據庫交互,詳情。這一點又和 couchdb 比較相似。

        例如部分 API 例表:

VALUE OF THE _SELF DESCRIPTION
/dbs feed of databases under a database account
/dbs/{_rid-db} Database with the unique id property with the value {_rid-db}
/dbs/{_rid-db}/colls/ feed of collections under a database
/dbs/{_rid-db}/colls/{_rid-coll} Collection with the unique id property with the value {_rid-coll}
/dbs/{_rid-db}/users/ feed of users under a database
/dbs/{_rid-db}/users/{_rid-user} User with the unique id property with the value {_rid-user}
/dbs/{_rid-db}/users/{_rid-user}/permissions feed of permissions under a database
/dbs/{_rid-db}/users/{_rid-user}/permissions/{_rid-permission} Permission with the unique id property with the value {_rid-permission}

        這是一套與 MongoDB 有些相似的 NoSQL 數據庫,只是不知道市場接受程度如何。

        項目官網 http://azure.microsoft.com/en-us/documentation/services/documentdb/

來自: ourjs.com
                    <span id="shareA4" class="fl">                            
                        </span> 

</div>

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!