Hello @dmitrii sablin !
I understand that your CosmosDB with MongoAPI is getting rate limited .
Azure Cosmos DB for MongoDB operations may fail with rate-limiting (16500/429) errors if they exceed a collection's throughput limit (RUs).
You can enable the Server Side Retry (SSR) feature and let the server retry these operations automatically. The requests are retried after a short delay for all collections in your account. This feature is a convenient alternative to handling rate-limiting errors in the client application.
Have a good look here :
https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/prevent-rate-limiting-errors
You could also utilize Change Feed , and Increase Provisioned Throughput | Request Units Change
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards