Files
2nd/10_Wiki/Topic_Programming/Architecture/Island Architecture.md
T
Antigravity Agent 9148c358d0 docs(10_Wiki): 위키 전체 재구성 — Topic_* 폴더를 4개 카테고리로 통합 + 대규모 중복 제거
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를
Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류.

- 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로
  자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거,
  동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거.
- 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming,
  Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business,
  Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로,
  나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는
  title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백).
  원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지.
- 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서.
- 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는
  지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지.
- Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경.
- 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
2026-07-05 00:33:48 +09:00

5.4 KiB

id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id title category status canonical_id aliases duplicate_of source_trust_level confidence_score verification_status tags raw_sources last_reinforced github_commit tech_stack
wiki-2026-0508-island-architecture Island Architecture 10_Wiki/Topics verified self
Islands Architecture
Partial Hydration
Selective Hydration
none A 0.9 applied
architecture
web
frontend
hydration
performance
2026-05-10 pending
language framework
typescript astro-fresh

Island Architecture

매 한 줄

"매 mostly-static HTML 의 sea 의 isolated interactive 'island' 의 selective hydration 의 통한 ship-less-JS". 매 Katie Sylor-Miller (2019) 의 term, Jason Miller (2020) 의 popularization, 매 Astro (2021) / Fresh (Deno) / Marko / Qwik 의 implementation — 매 SPA-everything 의 over-hydration 의 backlash.

매 핵심

매 핵심 idea

  • Server 의 HTML 의 render (default).
  • 매 interactive component (island) 의 isolated hydration boundary.
  • 매 island 의 own JS bundle, 매 nothing else 의 ship.
  • 매 island 간 의 share state 의 X (or framework-specific signal).

매 Hydration directive (Astro)

  • client:load — 매 page load 의 즉시.
  • client:idlerequestIdleCallback.
  • client:visible — IntersectionObserver.
  • client:media="(min-width: 768px)" — viewport conditional.
  • client:only="react" — server render skip, client only.

매 응용

  1. Content sites (blog, docs, marketing).
  2. E-commerce (정적 product page + interactive cart island).
  3. News / publishing (정적 article + comment island).

💻 패턴

Astro — React Island

---
// src/pages/index.astro
import Counter from '../components/Counter.tsx';
import Newsletter from '../components/Newsletter.tsx';
const posts = await fetch(import.meta.env.CMS_URL).then(r => r.json());
---
<html>
  <body>
    <h1>Blog</h1>
    <ul>{posts.map(p => <li>{p.title}</li>)}</ul>

    <Counter client:visible />               <!-- island, lazy hydrate -->
    <Newsletter client:idle />               <!-- island, idle hydrate -->
  </body>
</html>

Astro — Mixed Frameworks (one page, multiple)

---
import VueWidget from './Widget.vue';
import SvelteChart from './Chart.svelte';
import SolidSearch from './Search.tsx';
---
<VueWidget client:load />
<SvelteChart client:visible />
<SolidSearch client:idle />

Fresh (Deno) — Island

// islands/Counter.tsx
import { useSignal } from '@preact/signals';
export default function Counter() {
  const count = useSignal(0);
  return <button onClick={() => count.value++}>{count.value}</button>;
}

// routes/index.tsx
import Counter from '../islands/Counter.tsx';
export default function Home() {
  return <main><h1>Home</h1><Counter /></main>;
}

Qwik — Resumability (zero hydration)

// src/routes/index.tsx
import { component$, useSignal } from '@builder.io/qwik';
export default component$(() => {
  const count = useSignal(0);
  return (
    <button onClick$={() => count.value++}>
      Clicks: {count.value}
    </button>
  );
});
// 매 click 의 시 의 only 의 download — true progressive

Marko 5 — Streaming Islands

<!doctype html>
<html>
  <body>
    <h1>Products</h1>
    <await(productPromise)>
      <@then|products|>
        <for|p| of=products>
          <product-card p=p/>
        </for>
      </@then>
    </await>
  </body>
</html>

Performance Budget Check

# .lighthouserc.yml
ci:
  collect: { url: ['https://example.com/'] }
  assert:
    assertions:
      total-byte-weight: ['error', { maxNumericValue: 200000 }]
      total-blocking-time: ['error', { maxNumericValue: 200 }]
      interaction-to-next-paint: ['error', { maxNumericValue: 200 }]

매 결정 기준

상황 Approach
Content-heavy, low interactivity Astro (default)
Per-route framework choice Astro multi-framework
Edge / Deno preference Fresh
App-shell SPA feel Next.js / Remix (RSC + Suspense)
Zero-hydration target Qwik

기본값: 매 marketing/blog/docs — Astro + island per interactive component. 매 dashboard-y app — Next.js RSC.

🔗 Graph

🤖 LLM 활용

언제: page 의 island boundary 의 propose, hydration directive 의 select, JS bundle 의 reduction 의 suggest. 언제 X: 매 framework 의 final choice (team skill, ecosystem fit 의 human decision).

안티패턴

  • Island sprawl: 매 component 의 client:load → SPA equivalent.
  • Cross-island state: 매 island 의 shared store 의 hack — 매 framework boundary 의 violation.
  • Server-only data 의 island leak: secret/PII 의 client island prop 의 pass.
  • client:only overuse: server render 의 skip → SEO 의 hurt + LCP 의 regress.
  • Wrong tool: 매 highly interactive app (Figma-like) 의 Astro 의 force-fit.

🧪 검증 / 중복

  • Verified (Jason Miller "Islands Architecture" 2020, Astro 4 docs, Fresh docs, web.dev).
  • 신뢰도 A.

🕓 Changelog

날짜 변경
2026-05-08 Phase 1
2026-05-10 Manual cleanup — island architecture (Astro/Fresh/Qwik) 의 full content