FryuniF
Convex Community2mo ago
16 replies
Fryuni

High concurrency and throughput

Advice
Hey everyone! I'm considering Convex for a education project where students will use it during class while their teachers can assign topics.
It will be paired with an existing app so we know the usage pattern and statistics. At normal class hours there are between 600k to 2M concurrent online users. When a teacher makes a change it would cause an update for ~40 students, so syncs would be a bit spikey with an average of 20k updates per second.

I am a bit worried about the concurrency limit shown in the pricing page. Has anyone used Convex in a scenario with similar throughput?

Also, if anyone can help clarify, the "function calls" pricing has this tooltip:
Explicit client calls, scheduled executions, subscription updates, and file accesses count as function calls.
When a teacher make an update and it gets synced to all the students, how many function calls would that count as? I can interpret this in 3 ways:
- 1 call, the mutation, and everything is just a consequence of that call
- 2 calls, 1 for the mutation and 1 for the subscription update
- N+2 calls, 1 for the mutation and then 1 for each of the students and the teacher who get an update (basically every invocation of the handler function even if not explicit)
Was this page helpful?