vrypan |--o--|
@vrypan.eth
🤔 With 10k casts, for the same API requests (ex, fetch 1000 casts by fid) you must provision 10x the memory.
1 reply
0 recast
3 reactions
vrypan |--o--|
@vrypan.eth
And if you say, ok, I'll fetch 100 casts / request instead of 1000, then you need to make 10x the requests.
1 reply
0 recast
2 reactions
Varun Srinivasan
@v
that's only true if every cast uses the max char limit. the distribution often skews much lower in practice.
1 reply
0 recast
0 reaction
vrypan |--o--|
@vrypan.eth
For sure. But when you provision resources, you don't know in advance. If you create a buffer, or cache responses in a kv store, etc, you need to set some limits. You can't say, "one out of 100 times, this will crash"
1 reply
0 recast
0 reaction
Varun Srinivasan
@v
but its probably ok to crash one times out of a million and then recover from it gracefully be reducing request size. and realistically, you can probably read a lot of casts into memory on modern machines, so the law of large numbers comes into play making the one in a million more likely
0 reply
0 recast
0 reaction