OrleansContrib / Orleans.CosmosDB

Orleans providers for Azure Cosmos DB
MIT License
40 stars 30 forks source link

Support different throughput options #60

Closed mumby0168 closed 2 years ago

mumby0168 commented 2 years ago

Small PR to introduce a means to set a throughput requirement. This supports all three main methods supported by Cosmos DB.

  1. Manual
  2. Autoscale
  3. Serverless

Fixes #46

I also had a few questions.

  1. Is there any desire to have a shared package between the 3 projects? For example the ThroughputMode that was added could be shared along with a base class for some default options that all packages share. The extensions can then also be shared, reducing code duplication.
  2. I updated the test project to run net6 is there any concerns around that? If so happy to drop it back down.
ReubenBond commented 2 years ago

cc @galvesribeiro

EugeneKrapivin commented 2 years ago

Any updates on this PR? :)

galvesribeiro commented 2 years ago

Hey @EugeneKrapivin sorry for the delay.

I've brought your changes in to a local branch. I'm working (should push the PR Today) on bringing those providers into Orleans main repo itself. I'll update later Today here so you can review the PR on Orleans repo.