Does default cached log streams count towards usage?
How does log streams count towards usage, if they do?
When using convex with @tanstack/react-router and route loaders, that queries the data using ConvexReactClient. It's interesting to see how the log streams flow in, when i navigate through my routes and over links etc.
But im quickly getting a huge stream of logs. So wondering whether the default logs streams on cached queries will count as a function call?
5 Replies
Cached queries count as functions but not bandwidth currently. Functions are very cheap. The log stream is not counted towards any bandwidth that I'm aware of
You'll likely have a bigger bill with DataDog than us in this regard
Just double-checked. We don't charge for log streaming at all, which matches https://www.convex.dev/plans
Plans and Pricing
The backend application platform with everything you need to build your product.
Great, all I needed to know. Thanks Ian
In full transparency I think this is an asymmetry in our pricing model that we will likely want to reconcile. We currently don't charge for any of the database reads for snapshot export or log streams. I wouldn't want us to be in a place where we discourage folks from running backups or exports too frequently because it's getting expensive on our side.
So I think there's a strong possibility we start charging for all database reads, even for streaming export. We'll discuss that in discord in advance.
I'm referring to database read bandwidth here even though that's different to logs directly from functions. Will follow up with a more concrete answer here and this is a good reminder that we're overdue to post our internal limits page on our docs where we go into a lot of detail on this stuff.
You're all good for now regardless 🙂
Thanks for the follow up and transparency. If you were to start charging for it, which I would only see fit, it is usage after all. Only thing I would like as a developer is just more control of what gets streamed by default, and monitoring on how much streams are counting towards my usage. As Ian mentioned, function calls are indeed cheap, and most likely cheaper than other providers. Hence I probably wouldn’t want any of the default log streams turned off regardless, as they very useful. Just my thoughts on this.