Durable Object facets

동적 앱별 저장소 분리

Give each dynamically loaded app its own SQLite storage.

···
html
<div class="scene"><div class="title">ONE SUPERVISOR, SEPARATE STORES</div><div class="supervisor"><div class="label">SUPERVISOR</div><div class="facets"><div class="tile" id="facetA">APP A<div class="db">SQLite A <b id="valA">0</b></div></div><div class="tile" id="facetB">APP B<div class="db">SQLite B <b id="valB">0</b></div></div></div></div><div id="facetState" class="muted">Each app writes only its own database</div></div>
css
.scene{width:min(94vw,760px);height:min(86vh,320px);padding:clamp(10px,2.5vmin,18px);border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--fg);font:500 clamp(11px,1.3vw,16px)/1.25 "Pretendard Variable",Pretendard,-apple-system,sans-serif;display:flex;flex-direction:column;gap:clamp(7px,1.6vmin,12px);overflow:hidden}.scene *{box-sizing:border-box}.title{font-weight:750;color:var(--accent)}.muted{color:var(--muted)}.mono{font-family:ui-monospace,monospace}.row{display:flex;align-items:center;justify-content:center;gap:clamp(5px,1.4vmin,12px);flex:1;min-height:0}.tile{border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:clamp(6px,1.6vmin,12px);text-align:center;min-width:0}.on{border-color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 12%,var(--surface))!important}.pulse{animation:pulse 1.6s infinite alternate}@keyframes pulse{to{border-color:var(--accent);transform:translateY(-3px)}}.supervisor{border:2px solid var(--accent);border-radius:10px;padding:9px;flex:1;min-height:0}.label{color:var(--accent);font-weight:700;margin-bottom:6px}.facets{display:flex;gap:8px;height:70%}.facets>.tile{flex:1}.db{margin-top:5px;border-top:1px solid var(--line);padding-top:5px}.db b{color:var(--accent)}
js
let a=0,b=0,phase=0;function tick(){if(phase%2===0)a++;else b++;document.getElementById('valA').textContent=a;document.getElementById('valB').textContent=b;document.getElementById('facetA').classList.toggle('on',phase%2===0);document.getElementById('facetB').classList.toggle('on',phase%2===1);document.getElementById('facetState').textContent='App '+(phase%2===0?'A':'B')+' writes; other store remains '+(phase%2===0?b:a);phase++}tick();setInterval(tick,850)

Durable Object Facets run a dynamically loaded object under a supervisor. Each facet can use SQLite storage separate from the supervisor and other facets. The feature was announced as an open beta in 2026.

The demo shows apps A and B storing distinct values under one supervisor. Review isolation boundaries and beta limitations before adopting it.

When to use

Consider it for platforms that provide per-app state to dynamically loaded applications.

Open as page ↗