[英]How to parallel process different partition ranges with Cosmos change feed (push)?
查看下面的文檔,它解釋了在部署單元內,不同的實例可以處理不同的分區范圍值。 “更改提要處理器正在為每個實例分配不同的范圍” 資料來源: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/change-feed-processor?ta ...
[英]How to parallel process different partition ranges with Cosmos change feed (push)?
查看下面的文檔,它解釋了在部署單元內,不同的實例可以處理不同的分區范圍值。 “更改提要處理器正在為每個實例分配不同的范圍” 資料來源: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/change-feed-processor?ta ...
[英]Is push model of cosmos change feed processor really a push model underneath?
cosmos docs中提到With a push model, the change feed processor pushes work to a client that has business logic for processing this work. However, the co ...
[英]How do we pass cosmos DB partition key definition while creating a cosmos DB SQL Container using Azure.ResourceManager.CosmosDB 1.0.1
我正在嘗試使用以下示例創建一個 cosmos db 分區。 我正在使用托管身份來驗證我的請求。 我正在使用 Azure.ResourceManager v1.3.1 和 Azure.ResourceManager.CosmosDB v1.0.1 在嘗試運行下面的代碼片段時,我得到: Azure.R ...
[英]Change Feed Processor Issue
我正在嘗試在 .net 中測試更改提要處理器。我嘗試從一開始就使用更改提要處理器(如文檔中所述)。 當我啟動更改源處理器時,它按預期運行,如果我在 COSMOS 數據庫中進行更改,它會觸發 HandleChanges 方法。 我想測試一個場景:我已經在本地停止了我的更改源處理器,對 cosmos d ...
[英]The connection string is not updating on rotation for change feed in Azure
我正在使用 azure 更改提要將數據從一個數據庫遷移到另一個數據庫。 但是連接字符串每 24 小時輪換一次。 在我的代碼中,連接字符串鏈接到 azure 密鑰保管庫,該值在其中進行輪換。 每次輪換此密鑰並調用我的更改提要時,它仍然使用舊密鑰,因此會觀察到錯誤。 每次調用時,如何啟用更改提要從密鑰庫 ...
[英]Facing issue with Azure cosmos change feed processor for Multi region AKS
我們在具有 5 個實例的 AKS 中的單個區域中部署了自定義更改源處理器。 事情總是在單個區域運行良好。 (請注意,每個 pod 實例(提要處理器)都分配有一個唯一的 [.WithInstanceName(new GUID)]。 我們最近轉向多區域設置,如下所示: EastUS AKS 集群 = ...
[英]Generate sequence in Cosmos DB
需要創建序列,以便代碼當前正在執行的操作 select max(name) from table where item1 = '' and item2= '' and item3 = ''. 在獲取 max 之后,它會插入從 max 開始的元素。 但是會導致並發問題。 注意:查詢將始終在同一個分區中 ...
[英]What is the most efficient way to copy a CosmosDB collection and retain the order of items by physical partition?
我使用 Azure 數據工廠嘗試了許多不同的組合來創建 CosmosDB 集合的克隆,該集合維護寫入分區的項目的順序,但除非我指定批量寫入大小為 1,否則它不會保持順序。 即使從映射數據流中源的更改源觸發也不會保留順序。 我們編寫了一個簡單的工具,可以一次復制一條記錄,但很明顯,這很慢。 我們將 ...
[英]Change feed iterator content deserialization
目前,我正在尋找使用 System.Text.Json 從 Change Feed Iterator 內容中反序列化實體的方法。 我從文檔中找到了這個示例,但它使用了 Newtonsoft.Json,我不喜歡使用 JObject 和 JsonTextReader 的方法。 有什么辦法可以讓它更干凈整 ...
[英]How to read ComosDB change feed of unknown type in C#?
我有一個 CosmosDB 容器,我想將更改源掛鈎到其中。 這個容器內部存儲了一些不同的數據結構,通常會通過數據類型標簽進行查詢。 我想根據更新的對象類型以不同的方式處理更改提要。 有沒有辦法將查詢附加到更改提要上,或者我應該嘗試將返回數據類型設置為字典還是動態? ...
[英]Azure Cosmos Change Feed feeding into Event Grid
我正在使用 cosmos DB,我希望使用更改源通過 azure 事件網格將更改發送到其他數據庫或對更改感興趣的偵聽器。 我確信 cosmos DB 更改提要不能直接通過管道傳輸到事件網格中,但是我如何使更改提要成為事件源 pipe 到事件網格中。 任何輸入將不勝感激。 ...
[英]Spring Boot - Azure Cosmos DB Change Feed process failing if primary key is regenerated
state.change feed 過程中如何更新cosmos master key。 我在 Spring Boot 應用程序中使用 Change feed process,它工作正常。 但如果重新生成主鍵,則失敗,進程作為后台進程(異步)運行,無法捕獲異常並使用輔助鍵更新鍵或重新啟動進程。 以下 ...
[英]How to tell the difference between Insert and Update in Cosmos DB change feed
我確實從該資源中獲得了 Cosmos DB 更改提要的代碼示例 我能夠成功編譯並運行代碼。 這是更改提要調用的代碼 這是對更改提要采取的操作的代碼 我確實看到了如何在插入時觸發操作; 但是,有沒有辦法判斷是否對更新采取了行動。 有沒有辦法分辨哪個是哪個,從另一個中分辨出來。 有沒有辦法獲得 ...
[英]How can I get the changefeeds Monitored Collection name into my ChangesHander - Containers.ChangesHander<T> (Azure Cosmos v3)
我有一項服務,它產生了許多 Changefeed 來監控許多不同的 Cosmos DB collections。 在 v1 或 2 中,ChangefeedObserver class 包含 ChangefeedObserverContext,我可以從中提取集合名稱。 在 v3 中,不是在處理器中 ...
[英]How reliable is change stream support in Azure Cosmos DB’s API for MongoDB?
描述 I am working on an ASP.NET Core 3.1 web application which needs to track/respond on changes made to the MongoDB database hosted by Azure Cosmos DB ...
[英]How to use the pull model in Azure Cosmos DB with Java?
在pull model 的文檔中,您可以看到 pull model 僅適用於 .NET。 是否可以模擬 Java 中的 FeedIterator? 是否有任何支持此功能的測試版? ...
[英]Sample for publish/subscribe with Azure Cosmos DB in Java
我需要一個帶有 Azure Cosmos DB 的發布/訂閱事件消息系統。 我使用 Azure Cosmos DB Java SDK v4。 我嘗試使用基於此示例https://github.com/Azure-Samples/azure-cosmos-java-sql-api-samples/bl ...
[英]How to enable full fidelity in Azure Cosmos DB Change Feed
我正在嘗試使用以下代碼在更改提要中啟用完全保真度: 但我得到以下異常: 如何為數據庫帳戶啟用此模式? 我在門戶網站上沒有看到選項。 ...
[英]Cosmos db change feed trigger not firing after function goes to sleep
我有一個 function,它在本地工作正常,但不會在 Azure 中觸發,除非 function 處於“喚醒”狀態。 function 只是將項目從一個容器復制到另一個容器,交換主鍵和 id 列(作為最終一致的二級索引)。 這個app中有兩個函數,都是Cosmos觸發器(不同的源容器和租用前綴) ...
[英]What is the time resolution of Cosmos DB Change Feed?
據我了解(例如從此處),Cosmos DB Change Feed 不能保證每次更新都會觸發一個事件。 例如,當對同一個文檔的兩次更新幾乎同時發生時,更改提要處理器(例如 Azure Function 監聽更改提要)可能只被觸發一次,即兩次更新中的較晚一次。 首先,我的理解正確嗎? 如是: 根據您 ...