Site Search for Web Apps: Postgres vs Elasticsearch vs Algolia
Choosing search for your web app? Compare Postgres full-text search, Elasticsearch and Algolia on cost, relevance, effort and when to outsource the build.
SSR, SSG or CSR? A practical guide for CTOs and product managers on how rendering strategy affects speed, SEO, hosting cost and your development team.
Every web project reaches a point where someone asks, “Are we doing server-side rendering or a single-page app?” The answer shapes page speed, search visibility, hosting bills and how hard the product is to maintain. It is also a decision that is expensive to reverse once the codebase grows.
This guide explains the main rendering strategies in plain language so you can brief a development team with confidence, whether that team is in-house or offshore.
Client-side rendering (CSR) sends a nearly empty HTML page plus JavaScript. The browser downloads the code, runs it, fetches data and builds the page. Classic single-page apps work this way.
Server-side rendering (SSR) builds the HTML on a server for each request. The browser receives a complete page, then JavaScript can take over to add interactivity.
Static site generation (SSG) builds the HTML ahead of time, during deployment. Pages are served as plain files from a CDN, with no server work per visit.
A fourth option, incremental or hybrid rendering, mixes these: some pages are static, some rendered on demand, and some re-generated on a schedule.
| Factor | CSR | SSR | SSG |
|---|---|---|---|
| First content shown | Slower, waits for JavaScript | Fast, HTML arrives ready | Fastest, served from CDN |
| SEO friendliness | Weakest without extra work | Strong | Strong |
| Data freshness | Live on every load | Live on every request | As fresh as the last build |
| Hosting complexity | Low (static files plus API) | Higher (running servers) | Lowest |
| Personalised pages | Easy | Easy | Hard without client-side code |
| Scaling under traffic | Scales well, API is the limit | Needs capacity planning | Scales almost for free |
Marketing sites, documentation, blogs and brochure sites are the natural home for static generation. Pages load quickly, hosting is cheap and the attack surface is small because there is no application server to exploit. If editors need to publish often, pair it with a headless CMS and a rebuild trigger. Our comparison of headless CMS vs WordPress covers that trade-off.
Product catalogues with live stock, marketplaces, news feeds and pages that vary by location or login state often suit SSR. Search engines and social previews get complete HTML, while users see fresh data. The cost is running and monitoring servers, plus careful caching so that response times stay healthy.
Dashboards, admin tools and internal portals sit behind a login, so search indexing is irrelevant. CSR keeps the architecture simple: a static front end talking to an API. Users tolerate a short initial load because they stay in the app for a long session.
Many businesses need a mix: static marketing pages, server-rendered product pages and a client-rendered account area. Modern frameworks support this per route, so you do not have to pick one strategy for the whole site. If you are weighing frameworks, see Next.js vs Astro for how two popular options handle it.
Rendering affects the metrics users and search engines care about. Heavy client-side JavaScript tends to delay Largest Contentful Paint and can hurt Interaction to Next Paint. Static and server-rendered HTML usually gives a better starting point, though a bloated page can be slow in any mode. Google’s thresholds for a “good” experience are LCP of 2.5 seconds or less, INP of 200 milliseconds or less and CLS of 0.1 or less. Our Core Web Vitals guide explains how to measure and improve them.
Search engines can execute JavaScript, but rendering it is deferred and less predictable than reading ready-made HTML. For pages that must rank, do not rely on client rendering alone.
Ask these questions before choosing:
A clear rendering decision belongs in the architecture notes at the start of a project, with the reasoning written down so future developers understand it. A good partner will ask about your content, audience and traffic rather than defaulting to one stack.
If you are planning a new site or rebuilding an existing one, our web development services cover architecture, build and ongoing support, and you can contact us to discuss which rendering approach suits your product.
Choosing search for your web app? Compare Postgres full-text search, Elasticsearch and Algolia on cost, relevance, effort and when to outsource the build.
WebSockets vs SSE vs polling: how to choose the right approach for live dashboards, chat and notifications, with cost, scaling and testing trade-offs.
How to integrate a payment gateway into a web or mobile app: choosing a provider, hosted vs custom checkout, webhooks, security and testing before launch.
Tell us about your platform, your product idea or the systems you want to modernise. Someone from our Chennai engineering team will get back to you personally.