본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #4344

dbos-typescript

하는 일

이 가이드는 DBOS를 사용해 더 안정적이고 장애에 강한 TypeScript 애플리케이션을 만드는 방법을 알려 줍니다. 무엇인가 잘못되더라도 모든 것이 올바르게 실행되도록 코드를 '워크플로'와 '단계'로 정리합니다.

사용하는 경우

  • ✓기존 TypeScript 프로젝트에 DBOS를 추가할 때.
  • ✓새 '워크플로'(작업 순서)와 '단계'(개별 작업)를 만들 때.
  • ✓큐를 사용해 동시에 실행되는 작업 수를 조절할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/dbos-typescript/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/dbos-typescript/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“시작하려면 DBOS를 어떻게 설정하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

DBOS는 코드를 '워크플로'와 '단계'로 정리합니다. 프로그램이 중단되더라도 각 단계가 안정적으로 실행되도록 합니다. 단계가 실패하면 DBOS가 다시 시도하거나 이전 상태를 유지할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

DBOS TypeScript Best Practices

Guide for building reliable, fault-tolerant TypeScript applications with DBOS durable workflows.

When to Use

Reference these guidelines when:

  • Adding DBOS to existing TypeScript code
  • Creating workflows and steps
  • Using queues for concurrency control
  • Implementing workflow communication (events, messages, streams)
  • Configuring and launching DBOS applications
  • Using DBOSClient from external applications
  • Testing DBOS applications

Rule Categories by Priority

Priority Category Impact Prefix
1 Lifecycle CRITICAL lifecycle-
2 Workflow CRITICAL workflow-
3 Step HIGH step-
4 Queue HIGH queue-
5 Communication MEDIUM comm-
6 Pattern MEDIUM pattern-
7 Testing LOW-MEDIUM test-
8 Client MEDIUM client-
9 Advanced LOW advanced-

Critical Rules

Installation

Always install the latest version of DBOS:

npm install @dbos-inc/dbos-sdk@latest

DBOS Configuration and Launch

A DBOS application MUST configure and launch DBOS before running any workflows:

import { DBOS } from "@dbos-inc/dbos-sdk";

async function main() {
  DBOS.setConfig({
    name: "my-app",
    systemDatabaseUrl: process.env.DBOS_SYSTEM_DATABASE_URL,
  });
  await DBOS.launch();
  await myWorkflow();
}

main().catch(console.log);

Workflow and Step Structure

Workflows are comprised of steps. Any function performing complex operations or accessing external services must be run as a step using DBOS.runStep:

import { DBOS } from "@dbos-inc/dbos-sdk";

async function fetchData() {
  return await fetch("https://api.example.com").then(r => r.json());
}

async function myWorkflowFn() {
  const result = await DBOS.runStep(fetchData, { name: "fetchData" });
  return result;
}
const myWorkflow = DBOS.registerWorkflow(myWorkflowFn);

Key Constraints

  • Do NOT call, start, or enqueue workflows from within steps
  • Do NOT use threads or uncontrolled concurrency to start workflows - use DBOS.startWorkflow or queues
  • Workflows MUST be deterministic - non-deterministic operations go in steps
  • Do NOT modify global variables from workflows or steps

How to Use

Read individual rule files for detailed explanations and examples:

references/lifecycle-config.md
references/workflow-determinism.md
references/queue-concurrency.md

References

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문

'워크플로'와 '단계'는 무엇인가요?

'워크플로'는 순서대로 실행되어야 하는 작업들의 순서입니다. '단계'는 '워크플로' 안의 개별 작업입니다. DBOS는 '단계'가 안정적으로 실행되도록 보장합니다.

왜 코드가 '결정론적'이어야 하나요?

같은 입력에 대해 코드가 항상 같은 출력을 내야 한다는 뜻입니다. DBOS가 안정성을 보장하고, 필요하면 최종 결과를 바꾸지 않고 단계를 다시 실행할 수 있도록 하기 위해 중요합니다.

DBOS는 장애를 어떻게 처리하나요?

DBOS는 '결함 허용'을 위해 설계되었습니다. 진행 상황을 기록하고, 문제가 생기면 단계를 다시 실행하거나 시스템을 일관된 상태로 유지하려고 시도합니다.

상세 정보

작성자의 원본 설명

Guide for building reliable, fault-tolerant TypeScript applications with DBOS durable workflows. Use when adding DBOS to existing TypeScript code, creating workflows and steps, or using queues for concurrency control.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4344
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬