Client vs Server Processing

Debates on trade-offs between client-side and server-side logic in web apps, focusing on network latency from roundtrips, server resource savings, and UI responsiveness.

➡️ Stable 0.5x Web Development
3,390
Comments
20
Years Active
5
Top Authors
#5946
Topic ID

Activity Over Time

2007
11
2008
36
2009
50
2010
87
2011
146
2012
172
2013
197
2014
165
2015
161
2016
147
2017
177
2018
151
2019
179
2020
210
2021
287
2022
300
2023
316
2024
286
2025
300
2026
12

Keywords

CPU OP JS ONE HTTPS HTTP REST OLTP I.e RTB server client data database request requests queries latency api caching

Sample Comments

elwell Feb 9, 2024 View on HN

I bet it saves them some server $. Probably keep more data client-side and batching to server.

shthrow Sep 22, 2021 View on HN

How is it a good idea for every user interaction to hit the server?

daxfohl Oct 8, 2025 View on HN

That's still client side though. Seems like if they made it server-side it'd require fewer round trips.

slmjkdbtl Mar 2, 2024 View on HN

What's the use case for this? Is doing a roundtrip to the server on every client interaction ever a good idea for building user facing UI?

goguy Jun 27, 2019 View on HN

Isn't that all done on the client? Soon as you require a HTTP response on potentially a slow connection it's no longer instant and a poor user experience.

intrasight Aug 16, 2023 View on HN

This doesn't make sense. Can you elaborate? If it's not much work for the server, why would it be work for the browser?

swiftcoder Apr 7, 2024 View on HN

Your site keeps most of the logic on the backend, and only makes a single roundtrip to the server per user interaction - that makes you significantly less subject to latency problems than the trendy PWAs that implement most of their logic in the frontend (and then have to issue multiple queries to the backend to load the necessary data)

pier25 Oct 4, 2024 View on HN

Yes, in some cases when you don't need a trip to the server. But you're also bloating the client for no great benefit.

blackoil Aug 6, 2022 View on HN

You can be even faster if you store data in client. Though different use case different solutions.

vaughan Jan 18, 2022 View on HN

"code/framework overhead" is fine as long as its hidden in a library. Too many people re-implement a data layer client-side that is always a poor mapping to the server data model. My frontend should act as if its running off a local database and sync with the server. It could batch together all requests made to this database that it cannot fulfil or that are stale.