<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/spa-vs-hypermedia-real-world-performance-under-load-0v0t6112l" -->

---
title: SPA vs. Hypermedia: Real-World Performance Under Load
description: A detailed performance comparison between a PHP/Swoole/Datastar hypermedia implementation and the Vercel AI SDK Next.js chatbot under constrained mobile...
canonical: https://daily.dev/posts/spa-vs-hypermedia-real-world-performance-under-load-0v0t6112l
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: SPA vs. Hypermedia: Real-World Performance Under Load | daily.dev
og:description: A detailed performance comparison between a PHP/Swoole/Datastar hypermedia implementation and the Vercel AI SDK Next.js chatbot under constrained mobile...
og:url: https://daily.dev/posts/spa-vs-hypermedia-real-world-performance-under-load-0v0t6112l
og:image: https://api.daily.dev/og/posts/0v0t6112L.png
og:image:alt: SPA vs. Hypermedia: Real-World Performance Under Load
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# SPA vs. Hypermedia: Real-World Performance Under Load

**[Lobsters](https://daily.dev/sources/lobsters)** · 11 min read · 2 upvotes · 0 comments

## Summary

A detailed performance comparison between a PHP/Swoole/Datastar hypermedia implementation and the Vercel AI SDK Next.js chatbot under constrained mobile conditions (Slow 4G, 4× CPU throttle). The hypermedia approach achieves a Lighthouse mobile score of 100 vs 54, Time to Interactive of 1.1s vs 8.2s, zero total blocking time vs 780ms, and transfers 26× less data. JavaScript bundle size is 80× smaller (13.5 KB vs 1.1 MB). During AI streaming, hypermedia uses 4.2× less JS execution time and completes 37% faster overall. SSE compression via Brotli on a persistent connection achieves a 58.5× ratio over 10 turns, transferring half the data despite a naïve implementation that re-streams full HTML fragments per token. Operationally, the hypermedia stack has 11.6× fewer production dependencies, no build step, and can run on a $20/year VPS. The post concludes with a decision framework for when each architecture is appropriate.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://zweiundeins.gmbh/en/methodology/spa-vs-hypermedia-real-world-performance-under-load>

## Similar posts on daily.dev

- [HTML over WebSockets: real-time SPAs with barely any JavaScript](https://daily.dev/posts/html-over-websockets-real-time-spas-with-barely-any-javascript-xef6zsuxl) · Hacker News · 2 upvotes · 0 comments
- [The Performance Inequality Gap, 2026](https://daily.dev/posts/the-performance-inequality-gap-2026-mf7glsoqh) · Programming Digest · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/spa-vs-hypermedia-real-world-performance-under-load-0v0t6112l)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"SPA vs. Hypermedia: Real-World Performance Under Load","url":"https://daily.dev/posts/spa-vs-hypermedia-real-world-performance-under-load-0v0t6112l","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/spa-vs-hypermedia-real-world-performance-under-load-0v0t6112l"},"datePublished":"2026-03-07T11:42:09.894Z","dateModified":"2026-03-07T11:42:37.832Z","description":"A detailed performance comparison between a PHP/Swoole/Datastar hypermedia implementation and the Vercel AI SDK Next.js chatbot under constrained mobile...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ea90557fa38cfc0e227656873241bbdc?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ea90557fa38cfc0e227656873241bbdc?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/spa-vs-hypermedia-real-world-performance-under-load-0v0t6112l","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,php","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"SPA vs. Hypermedia: Real-World Performance Under Load"}]}
```

