Forum Academy Marketplace Showcase Pricing Features

The difference between Client mode and Server mode

Now, I have implemented an Action as a plugin to get the exif information present in the image URL as an argument.
So my question is, which is more suitable for implementation, Client side or Server side?
I am not sure when to use them differently.

The advantages of ServerSide are

  • You can use libraries with node modules.

The advantages of the ClientSide are

  • console.log can be used

Is there any other reason why I need to use them differently?

The core difference between Client side and Server side is that, Client side uses your end-users’s browser processing power to execute the code and incase you are doing any API calls etc, they will be sent from the client’s browser as the request origin too.

Whereas the server side makes your code to use the Bubble server for the execution and you can use their Node environment for the execution.

To choose the client side script execution for your code, do a self assessment with:

  • Is your code supported in Browser?
  • It is not heavy enough to make the browser go unresponsive.
  • It doesn’t require extra node_modules in it.

If this all answer’s yes, then client-side is a good option to choose as this will not slow down your bubble app.

Hope this helps…

  • Umair A.
3 Likes

Thanks for your reply!!!
It is very clear.

I see that I also need to take into account things like the fact that I need to consider the impact of CORS when requesting external APIs and such on the client side.