Giter VIP home page Giter VIP logo

Comments (11)

Elfocrash avatar Elfocrash commented on June 15, 2024 1

Ok i just verified that it's an issue. I will be fixing that issue by adding an extra property on the settings.

Something like.

  • OnDatabaseThroughput = ThroughputBehaviour.UseCollectionThroughput
  • OnDatabaseThroughput = ThroughputBehaviour.UseDatabaseThroughput

Does this sound good?

from cosmonaut.

Elfocrash avatar Elfocrash commented on June 15, 2024 1

Fixed and feature added in 2.9.0

Thanks for the request.

from cosmonaut.

Elfocrash avatar Elfocrash commented on June 15, 2024 1

Don't forget to star the project if you like it. It helps with visibility :)

from cosmonaut.

Elfocrash avatar Elfocrash commented on June 15, 2024

Hello @Mortana89

Let me get this straight. If you provision database throughput and then run Cosmonaut against that database, will it create collections with dedicated throughput on top of the database throughput?

from cosmonaut.

Mortana89 avatar Mortana89 commented on June 15, 2024

That's indeed correct!

from cosmonaut.

Elfocrash avatar Elfocrash commented on June 15, 2024

Oh, we don't want that. I will have to verify the behaviour locally but if that is the case then I will add a check to see if the collection has an offer, and if it does, then the throughput value on the collection level will be ignored.

For now, I recommend provisioning your database and your collections before you start using Cosmonaut against them, if you want database level provisioning.

from cosmonaut.

Mortana89 avatar Mortana89 commented on June 15, 2024

Oh, we don't want that. I will have to verify the behaviour locally but if that is the case then I will add a check to see if the collection has an offer, and if it does, then the throughput value on the collection level will be ignored.

For now, I recommend provisioning your database and your collections before you start using Cosmonaut against them, if you want database level provisioning.

Thanks. I will for now. Currently I use cosmonaut in a microservice, which creates a collection per 'event' it receives, but we're still in development so I can cope with manually changing this in Cosmos DB as it isn't doing this many times. The emulator is a bit tricky to spot this issue, but you can easily see it in the Azure instance. All collections that are shared, have this indicated on the homepage of the Cosmos DB resource:
image

The emulator also supports this sharing on DB level, but it doesn't visualize it as clearly.

from cosmonaut.

Elfocrash avatar Elfocrash commented on June 15, 2024

I am wondering. Why do you go about it that way? You you mean one collection per event type? One collection per event (single document) wouldn't make sense.

from cosmonaut.

Mortana89 avatar Mortana89 commented on June 15, 2024

I am wondering. Why do you go about it that way? You you mean one collection per event type? One collection per event (single document) wouldn't make sense.

It's a multi-tenant application, once a tenant is registered, we need to approve his registration. Approving his registration fires a 'TenantApproved' event on our bus, an all our microservices do their work (like, creating a dedicated collection for this tenant to store microservice specific data).

from cosmonaut.

Mortana89 avatar Mortana89 commented on June 15, 2024

Ok i just verified that it's an issue. I will be fixing that issue by adding an extra property on the settings.

Something like.

  • OnDatabaseThroughput = ThroughputBehaviour.UseCollectionThroughput
  • OnDatabaseThroughput = ThroughputBehaviour.UseDatabaseThroughput

Does this sound good?

Sounds perfect! Thanks!

from cosmonaut.

Mortana89 avatar Mortana89 commented on June 15, 2024

Thanks for implementing!

from cosmonaut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.