Skip to content

Commit

Permalink
fix: document error
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Sep 17, 2024
1 parent b3c50c4 commit d71e492
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 31 deletions.
36 changes: 18 additions & 18 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,28 +75,28 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
path: /v1/secrets
port: out[7]
ports:
out[0]:
out[0]:
- name: nodes_create
port: in
out[1]:
out[1]:
- name: nodes_read
port: in
out[2]:
out[2]:
- name: nodes_update
port: in
out[3]:
out[3]:
- name: nodes_delete
port: in
out[4]:
out[4]:
- name: secrets_create
port: in
out[5]:
out[5]:
- name: secrets_read
port: in
out[6]:
out[6]:
- name: secrets_update
port: in
out[7]:
out[7]:
- name: secrets_delete
port: in

Expand All @@ -105,7 +105,7 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
specs:
- kind: snippet
language: cel
code: "has(self.body) ? self.body : null"
code: 'has(self.body) ? self.body : null'
- kind: native
opcode: nodes.create
- kind: snippet
Expand All @@ -123,7 +123,7 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
specs:
- kind: snippet
language: json
code: "null"
code: 'null'
- kind: native
opcode: nodes.read
- kind: snippet
Expand All @@ -141,7 +141,7 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
specs:
- kind: snippet
language: cel
code: "has(self.body) ? self.body : null"
code: 'has(self.body) ? self.body : null'
- kind: native
opcode: nodes.update
- kind: snippet
Expand All @@ -159,7 +159,7 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
specs:
- kind: snippet
language: json
code: "null"
code: 'null'
- kind: native
opcode: nodes.delete
- kind: snippet
Expand All @@ -176,7 +176,7 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
specs:
- kind: snippet
language: cel
code: "has(self.body) ? self.body : null"
code: 'has(self.body) ? self.body : null'
- kind: native
opcode: secrets.create
- kind: snippet
Expand All @@ -194,7 +194,7 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
specs:
- kind: snippet
language: json
code: "null"
code: 'null'
- kind: native
opcode: secrets.read
- kind: snippet
Expand All @@ -212,7 +212,7 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
specs:
- kind: snippet
language: cel
code: "has(self.body) ? self.body : null"
code: 'has(self.body) ? self.body : null'
- kind: native
opcode: secrets.update
- kind: snippet
Expand All @@ -230,7 +230,7 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
specs:
- kind: snippet
language: json
code: "null"
code: 'null'
- kind: native
opcode: secrets.delete
- kind: snippet
Expand All @@ -245,9 +245,9 @@ Users can update node specifications by using a Command-Line Interface (CLI) or
- kind: switch
name: catch
matches:
- when: self == 'unsupported type' || self == 'unsupported value'
- when: self == "unsupported type" || self == "unsupported value"
port: out[0]
- when: "true"
- when: 'true'
port: out[1]
ports:
out[0]:
Expand Down
24 changes: 11 additions & 13 deletions docs/architecture_kr.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
specs:
- kind: snippet
language: cel
code: "has(self.body) ? self.body : null"
code: 'has(self.body) ? self.body : null'
- kind: native
opcode: nodes.create
- kind: snippet
Expand All @@ -121,7 +121,7 @@
specs:
- kind: snippet
language: json
code: "null"
code: 'null'
- kind: native
opcode: nodes.read
- kind: snippet
Expand All @@ -139,7 +139,7 @@
specs:
- kind: snippet
language: cel
code: "has(self.body) ? self.body : null"
code: 'has(self.body) ? self.body : null'
- kind: native
opcode: nodes.update
- kind: snippet
Expand All @@ -157,7 +157,7 @@
specs:
- kind: snippet
language: json
code: "null"
code: 'null'
- kind: native
opcode: nodes.delete
- kind: snippet
Expand All @@ -174,7 +174,7 @@
specs:
- kind: snippet
language: cel
code: "has(self.body) ? self.body : null"
code: 'has(self.body) ? self.body : null'
- kind: native
opcode: secrets.create
- kind: snippet
Expand All @@ -192,7 +192,7 @@
specs:
- kind: snippet
language: json
code: "null"
code: 'null'
- kind: native
opcode: secrets.read
- kind: snippet
Expand All @@ -210,7 +210,7 @@
specs:
- kind: snippet
language: cel
code: "has(self.body) ? self.body : null"
code: 'has(self.body) ? self.body : null'
- kind: native
opcode: secrets.update
- kind: snippet
Expand All @@ -228,7 +228,7 @@
specs:
- kind: snippet
language: json
code: "null"
code: 'null'
- kind: native
opcode: secrets.delete
- kind: snippet
Expand All @@ -243,9 +243,9 @@
- kind: switch
name: catch
matches:
- when: self == 'unsupported type' || self == 'unsupported value'
- when: self == "unsupported type" || self == "unsupported value"
port: out[0]
- when: "true"
- when: 'true'
port: out[1]
ports:
out[0]:
Expand Down Expand Up @@ -280,10 +280,8 @@
}
```
이 접근 방식은 안정적인 런타임 환경을 유지하면서 시스템을 유연하게 확장할 수 있도록 합니다.
이 접근 방식은 안정적인 런타임 환경을 유지하면서 시스템을 유연하게 확장할 수 있도록 합니다.
### 컴파일 과정
### 컴파일 과정
로더는 데이터베이스의 변경 스트림을 통해 실시간으로 노드 명세와 시크릿의 변경 사항을 추적합니다. 추가, 수정, 삭제가 발생하면 로더는 해당 명세를 다시 로드하고, 스키마에 정의된 코덱을 활용해 실행 가능한 형태로 컴파일합니다. 캐싱과 최적화 과정도 함께 수행되어 성능을 개선합니다.
Expand Down Expand Up @@ -355,4 +353,4 @@

프로세스가 종료되면, 정상 종료 여부를 확인하고 열린 파일 디스크립터, 할당된 메모리, 데이터베이스 트랜잭션 등을 해제합니다.

부모 프로세스가 종료되면, 그에 의해 파생된 모든 자식 프로세스도 함께 종료됩니다. 이때 부모 프로세스는 자식 프로세스가 모두 종료될 때까지 대기합니다.
부모 프로세스가 종료되면, 그에 의해 파생된 모든 자식 프로세스도 함께 종료됩니다. 이때 부모 프로세스는 자식 프로세스가 모두 종료될 때까지 대기합니다.

0 comments on commit d71e492

Please sign in to comment.