Product knowledge · Lookup · Cheat sheet

Bắt đầu từ việc cần làm, rồi đi tới đúng owner và fact.

Reference Desk gom task map, version/support vocabulary, glossary, failure cheat sheet và troubleshooting. Nó link về owning topic thay vì tạo một contract thứ hai hoặc bắt người đọc sang GitHub.

01 · Task map

Chọn theo câu hỏi, không theo tên type

Công việc cần làmPhần tra cứu trong PortalThông tin đầu tiên cần giữ
Hiểu một request đầu tiênRequest lifecycleStage/owner và request có tới handler chưa.
Đọc URL/path/query/header/bodyRequest anatomyEncoded/ordered wire values trước business decode.
Chọn protocol, TLS hoặc mTLSProtocol + securityEffective capability, selected mode và handshake evidence.
Nhận upload hoặc stream responseStreamingChunk/retained-byte/writability/cancellation owner.
Phục vụ frontend hoặc fileFiles + static frontendRoute precedence và confined authority.
Mở SSE hoặc WebSocketRealtimeSession/frame owner, backlog và reconnect/drain policy.
Gọi một HTTP dependencyOutbound HTTPLogical target, call identity và typed terminal.
Đổi handler hoặc route đang chạyLive controlCurrent generation/revision + exact activation identity.
Đọc health, liveness hoặc MonitorMonitoring + evidenceSignal kind, generation/epoch, quality và loss facts.
Size capacity hoặc shutdownCapacity + finite shutdownEffective limits, pressure boundary, drain state và leases.
Xem effective routes trong browserHTTP Runtime InspectTarget identity/generation và local exposure boundary.
Chọn package ngôn ngữPackages 2.3.2Exact coordinate, Core generation, OS/CPU và evidence.

CoAkka HTTP Runtime · 2.3.2

Học với C# · Học với Swift

Bản này dùng được những tính năng nào?

C/C++ dùng SDK 2.3.0. Go, Node.js, Bun, Python, Java/Kotlin, C# và Swift dùng connector 2.3.2.

Việc cần làmDùng ở đâuBắt đầu ở đây
Route, path, query, header và body có giới hạnTất cả ngôn ngữ ở trênĐọc một request
Chọn HTTP/1.1, HTTP/2 hoặc HTTP/3Listener đơn · Tất cả ngôn ngữ ở trênChạy 3 bài riêng
Phục vụ cả 3 giao thức cùng cổng HTTPSMultiProtocol · C/C++ và cả 7 connectorKiểm cổng chung
Upload, multipart và request trailerListener đơn · Tất cả ngôn ngữ ở trênChạy bài upload · Multipart streaming · Tải lên qua nhiều request
Response streaming, trailer và SSEListener đơn · Tất cả ngôn ngữ ở trênGửi stream có giới hạn · Chạy SSE
Phiên WebSocketListener đơn · HTTP/1.1, HTTP/2, HTTP/3Chạy WebSocket
Web tĩnh, SPA fallback, tải file và rangeListener đơn · Tất cả ngôn ngữ ở trênGửi một file đã chọn
Gzip cho response dạng bufferedListener đơn · Tất cả ngôn ngữ ở trênBật gzip và kiểm tra header
TLS, mTLS và thay chứng chỉListener đơn; V1 dùng chứng chỉ serverChuẩn bị và kiểm tra chứng chỉ mới
Gọi dịch vụ HTTP khácTất cả ngôn ngữ ở trênDùng outbound target
Đổi handler hoặc cập nhật bảng routeListener đơn · Tất cả ngôn ngữ ở trênĐọc phiên bản đã được chấp nhận
Đổi handler trên Listener V1Node.js, BunKiểm tra request cũ và mới
Xem sức khỏe, giới hạn và kết quả requestTất cả ngôn ngữ ở trênChọn health, probe hoặc Monitor · Xem route cục bộ
Đặt thời hạn và đóng dịch vụTất cả ngôn ngữ ở trênDrain rồi đóng

Bảng dẫn đến bài hướng dẫn trong Portal. Tính năng còn tùy giao thức, loại listener và nền tảng. Đọc điều kiện của bài rồi kiểm cấu hình đang chạy hoặc response thực tế.

02 · Version identity

2.3.2 là Core 2.3 và bản connector thứ 2

Core generation · 2.3

Hai số đầu identify một qualified CoAkka HTTP Runtime Core SDK generation và immutable artifact set.

Connector revision · .2

Số cuối là revision của exact connector trên Core generation đó. Connector-only release tăng số này và giữ qualified Core pin/hashes.

Public C ABI · 10

ABI integer là binary contract check của native surface, không phải semantic package version và không thay artifact identity.

Artifact identity

Coordinate/version + exact archive/library hash + loaded path. Cùng version text nhưng bytes/path không được verify thì chưa đủ evidence.

claim = product
      + connector/package version
      + qualified Core generation/artifact hash
      + OS + CPU
      + effective capability/configuration
      + matching-host evidence

CoAkka Runtime, CoAkka HTTP Runtime, HTTP Runtime Inspect và addons version độc lập. Không dùng version của product này để suy package/support của product khác.

03 · Support vocabulary

API tồn tại, package phát hành và target chạy được là ba facts

NhãnÝ nghĩaKhông có nghĩa
Built inNằm trong shared Core contract.Mọi package/target đều bật provider.
ProjectedConnector chiếu typed language surface.Matching-host sample/stress đã pass.
Feature gatedAPI ổn định; exact loaded target phải report capability.Có method thì tự fallback hoặc provider tự xuất hiện.
Host specificCùng product contract nhưng scheduling/value/lifetime và evidence theo app host.Node/Bun hoặc Java/Kotlin có cùng performance/lifecycle shape.
Published packageRegistry/archive coordinate và bytes đã phát hành.Mọi optional feature đã qualification trên mọi OS/CPU.
Matching-host evidenceExact artifact thực sự load/run trên đúng OS/CPU với declared workload.Cross-build, manifest, package presence hoặc smoke trên host khác.
Planned / not releasedBoundary có thể đã được thiết kế nhưng public release gate còn đóng.“Coming soon”, support ngầm hoặc sample giả định.

04 · Product glossary

Owner và lifetime nằm trong nghĩa của thuật ngữ

TermMeaning in CoAkka HTTP Runtime
CoreOwner của HTTP transport/protocol, accepted configuration, bounds, route matching và causal outcomes.
ConnectorThin idiomatic language projection với type, scheduling, GC/FFI và lifetime safety cần thiết; không mirror Core policy/defaults.
App Host / applicationProcess/scheduler và business handlers/dependencies/authorization/idempotency do ứng dụng sở hữu.
Host-inlinedHandler dùng connector trong cùng application process; không hứa chạy trên HTTP transport thread.
Builder / serviceConstruction intent / live owner sau accepted startup. Builder input không phải effective state.
Effective configurationSettings/capability/limits Core đã accept; đọc từ running owner.
Route / logical targetInbound method+path chọn handler / outbound declared dependency chọn destination set. Không thay thế nhau.
Capture / query / headerEncoded path segment / ordered query entries / case-insensitive-name ordered HTTP fields; application decode và validate business meaning.
Buffered / streaming bodyComplete bounded copied bytes / incremental chunks với retention, pressure, cancellation và terminal lifecycle riêng.
Borrowed view / leaseNative data valid trong documented scope; successful take phải matching release đúng một lần.
TerminalTyped final fact cho một owned exchange/call/session; reader wait timeout không tự là terminal.
Pressure / limitFinite capacity full now / value vượt configured ceiling. Pressure có thể hết; same oversized input không tự hết.
Timeout / cancellationProgress budget hết / intent yêu cầu dừng. Cả hai không tự chứng minh business effect chưa xảy ra.
Generation / revisionVersion của một owner/domain accepted state; không phải timestamp, auth token hoặc global process counter.
Monitor epochCollection interval/context để hiểu counter/reset; không thay policy generation.
Drain / stop / destroyĐóng admission và chờ accepted work / dừng Core owner / release native owner sau lease law. Ba stage không đồng nghĩa.
InspectOptional local-development companion đọc bounded effective route/schema snapshot; không sở hữu/reconfigure service.

05 · Identity domains

Không so hoặc tăng hai con số khác domain

Runtime instance/generation
Identifies the inspected running owner; restart/replacement cần identity mới.
Route structural generation
Complete accepted route-table publication, không phải source version.
Binding revision + binding ID
Per-route compare identity + prepared handler identity captured by admitted work.
Activation ID
Application idempotency identity cho exact live-control intent; exact replay giữ same ID và fields.
Monitor policy generation
Compare-and-apply version của collection policy.
Monitor collection epoch
Sample interval/reset context; không dùng làm expected generation.
Credential generation
Declared credential-set identity; đổi số không tự reload file hoặc chứng minh handshake.
Outbound call/target generation
Exact call correlation + declared target snapshot attribution; không cấp business retry.

06 · Failure cheat sheet

Branch bằng stable fact; text chỉ để operator đọc

CategoryHỏi ngayKhông được suy
Startup rejectionStatus/reason/system code/item index nào? Service có ready chưa?Partial owner đã chạy hoặc retry y hệt sẽ pass.
PressureBoundary nào full, effective ceiling và active/retained facts nào?Limit quá nhỏ hay request invalid.
LimitItem/byte nào vượt actual/limit?Backoff sẽ làm oversized value hợp lệ.
TimeoutPhase/deadline/certainty nào? matching terminal đã có chưa?Handler/peer chưa nhận hoặc effect chưa commit.
Cancellation/disconnectOwner nào yêu cầu dừng và cleanup terminal nào xác nhận?Cancellation intent đã hoàn tất cleanup.
HTTP responseReason có phải RESPONSE, status/body trong bound và business mapping nào?4xx/5xx là transport failure hoặc 2xx là business success.
Control refusal/uncertaintyGeneration/revision/activation/effective outcome nào?Timeout nghĩa reject; local map là effective state.
Close/destroy failureDrain state, active work, waiters, queued observations và borrowed leases nào còn?Owner có thể null/free hoặc forced kill là graceful pass.

07 · Symptom to fact

Thu structured evidence trước khi đổi config

SymptomFacts cần lấyOwning topic
Service không startExact loaded package/hash, issue status/reason/system code/item index, listener/security/capability và effective candidate.Construction
404 hoặc handler không chạyMethod, concrete encoded path, route snapshot/generation, precedence, pre-handler pressure/limit/body policy.Route anatomy
TLS/mTLS failProtocol/security capability, effective mode/backend, credential ID/generation, trust/peer identity và real handshake error.Security failures
Upload/response stream stallChunk/retained bytes, writability, write/progress deadline, cancellation/disconnect và producer backlog.Stream pressure
SSE/WebSocket rớtSession/frame terminal, pending output, close code, drain deadline và app resume cursor/policy.Realtime failures
Outbound không có responseCall identity, target generation/endpoint, reason, phase, retry disposition, certainty và provider diagnostic.Outbound terminal
Handler/route update không rõ đã applySame activation ID + exact intent, control code, effective generations/revisions, changed/replayed và retirement proof.Control outcome
Dashboard gap hoặc counter lạCollecting/stale/partial, policy generation, epoch, event oldest/latest/remaining/overwritten/drop và exporter drops.Monitor snapshot
Shutdown treo hoặc destroy refuseLifecycle/readiness/admission, drain state, active gauges, app waiters/producers, queued terminals và outstanding leases.Shutdown failures
Inspect không kết nốiExact Inspect target archive, platform, loopback addresses, bearer file/identity/generation và target opt-in.Inspect workflow

Không đổi nhiều knob cùng lúc. Giữ reproduction nhỏ, một primary hypothesis, exact before/after behavior và evidence của đúng owner.

08 · Evidence card

Một incident/performance record tối thiểu

identity: product · connector/package · Core generation · ABI · hash · loaded path
target:   OS · CPU · app host/runtime version · capability/effective config
workload: route/feature · payload · concurrency · duration · deadlines/bounds
facts:    stable status/reason/phase/certainty · generation/epoch · loss/pressure
cost:     throughput + p50/p99 · RSS/allocations · threads/fds · wakeups/syscalls
lifecycle: drain/stop latency · queued observations · outstanding leases
result:   before → after · preserved invariants · untested boundaries

GitHub/package manifests là optional cross-check. Runtime/package identity thực sự load và matching-host execution mới hỗ trợ runtime claim.

09 · Lookup checklist

Trước khi xuống API ngôn ngữ