Does javascript saves server's electricity?

67 views Asked by At

I have heard that by putting more and more functionality to client device (via javascript) instead of processing them on server-side and sending to client actually saves the power. Does it true ? Is it that significant to even bother ?

2

There are 2 answers

0
Halcyon On BEST ANSWER

In theory, if your server does less computations (ie. by pushing them to the client) you will require less power. How this works out in practice remains to be seen.

The effect is likely to be small; not big enough to base an architectural decision on. Unless you're Facebook or Google and you have massive datacenters all over the world it's probably not a good idea to design for power consumption.

Keep in mind that the computation you save on the server now has to be made by the client. The total amount of power required (by client and server) might actually increase. Also keep in mind the limited battery life of mobile devices.

0
Dula wnRp On

It depending on the work you're doing, the basic idea of that is some of the servers workload is putting in to the client, anyway since the biggest parts still on the server , electricity consumption not reducing in a considerable amount.