Server Side Plotly go vs. Client side

Hi There,

is it advisable to create plots from Anvil Table on server side or …better on client side? (speed).
We are talking about 30 plots and dynamic data in the table.

Thanks,
Gerhard

It depends.

If you have 100,000 users all trying to produce 30 plots, at the same time, it might be faster if each browser does its own computations (in parallel with all of the other browser instances), than if you try to get a server (or small handful of servers) to produce those 3,000,000 plots.

In general, I prefer to have as much browser-side computation as I can, because that scales up with the number of users. Server-side computation doesn’t scale as well.

Edit: But if you have few users, with relatively little compute power each…

Ok. Thank you for the explanation. I will go over client code for the plots.

There are other considerations.

Is that 3,000,000 distinct plots (e.g., different slices of the underlying data)? Or 100,000 copies each, of the exact same 30 plots, updated at regular intervals?