We are hitting the CDN a lot. I've only been runni...
# experimentation
l
We are hitting the CDN a lot. I've only been running a couple of tests here and there on our homepage, which does not get millions in traffic over the course of several weeks, but our usage shows
3.1M
. Which seems insane. Trying to figure out why this is so high and how to debug, prior to setting up some sort of proxy or CDN on our own.
👍 2
s
Hey @little-balloon-64875. How are you integrating the SDK? Are you using streaming?
l
@strong-mouse-55694 Streaming yes, using the react SDK.
s
Streaming could definitely be contributing. Are you using streaming for anything in particular? Also, it could potentially be some kind of bug, where the CDN is being called multiple times. To debug, I'd try a few things: 1. Try disabling streaming and see if that reduces your number. 2. Open your site and look at the network calls. Do you see multiple network requests to the GB CDN?
l
There's no real reason for streaming, it was part of my early testing and I never thought to remove it. I'll give that a go and see if anything changes over the next few days.
👍 1
Can't really tell if this is resolved with removing streaming, though it does't look like it...would be great to have some sort of better breakdown of stats/usage here rather than squinting at a graph.
Checked network requests and saw this
This is on a single page without refreshes. I'm using the client-side GrowthbookProvider so I'm wondering if there's some sort of re-rendering happening on the whole page?
So there's the initial fetch then "eventsource", then I assume my GB extension is for the other two.
s
That's right. Everything there looks reasonable (though, the
eventsource
indicates that streaming is still active. Likely some kind of caching). You'll be under the limit, but let me see if I can see if there are additional data we can check.
l
Okay cheers, I'll keep my eye on it
Yeah still seeing insane CDN requests, 200k yesterday alone. We had a tiny percentage of that traffic.