v2-platform: 09 hot-swap lifecycle prototype — in-flight requests, teardown, ESM disposal

Đã đóng
#277 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu bằng việc đọc issue cha #274 và quy ước của repository về các prototype branch; không có tệp mã nguồn hay điểm đầu vào của test nào được nêu. Xây dựng host hai plugin được mô tả ở đây, sau đó đo các swap lặp lại, swap một phần so với swap toàn bộ graph, rollback và cleanup, đồng thời ghi lại lựa chọn về vòng đời và các phát hiện trong một tài liệu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

ready-for-agent

Parent

#274 (v2 platform services spec)

What to build

A runnable hot-swap lifecycle prototype that answers wayfinder ticket 10 before the OTA runtime is implemented: a two-plugin host where one remote is swapped mid-traffic, repeatedly. The prototype must answer, with measurements: what happens to in-flight requests (drain vs shadow-flip), whether plugin scope teardown is clean or leaks (DB pools, intervals, subscriptions), whether a partial swap (only remotes whose URLs changed) avoids connection doubling, what must be explicitly dropped for old ESM graphs to become collectible, and whether rollback can re-import cached last-good URLs safely. Candidate design to test: shadow-flip with partial swap. Lives on a prototype branch per repo convention; the answer folds into the OTA runtime ticket.

Acceptance criteria

  • A swap of one remote mid-traffic loses zero in-flight requests (or the prototype proves which strategy guarantees it)
  • Repeated swaps (10+) show no leaked DB connections, handlers, or retained old module graphs (measured, not asserted)
  • Partial swap (only changed URLs re-imported) is validated against full-graph swap
  • Rollback to last-good config recovers a deliberately broken swap
  • A written findings doc records the chosen lifecycle strategy with the measurements behind it

Blocked by

  • None (can start immediately — parallel frontier ticket).
Ngôn ngữ chính
TypeScript
Star
5
Fork
3
Merge trung bình
9 giờ 16 phút
Pull request đã merge (30 ngày)
160

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NEARBuilders/everything-dev

Tất cả issue của NEARBuilders/everything-dev

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.