Skip to content

Integration

Outreach là một service gần-leaf. Tích hợp runtime duy nhất của nó là verify JWT với JWKS của Identity; tín hiệu outbound duy nhất là một WebSocket broadcast được BO dashboard tiêu thụ.

1. Service anh em

Direction: gọi / được gọi bởi / hai chiều.

SisterDirectionSurfaceContractAuthFailure ModeIdempotency
@nx/identityJWKS endpoint (remote)VerifierApplication verify ES256 JWT— (JWKS public)reject request (401) nếu JWKS unreachablen/a
BO dashboardSubscribe WebSocket roompayload INQUIRY_SUBMITTEDWS sessionclient re-fetch qua REST nếu lỡ eventn/a

Không có lời gọi HTTP tới service BANA khác. Không tiêu thụ hay tạo Kafka topic. @nx/core là phụ thuộc code nội bộ duy nhất.

2. Hệ thống bên ngoài

SystemDirectionSurfaceAuthFailure Mode
PostgreSQLPostgresCoreDataSource (schema outreach)DB credentialsrequest fail khi mất kết nối
RedisWebSocket pub/sub fan-outpassword (tùy chọn)WS notify skip nếu emitter chưa ready

Không có provider email/SMTP nào được nối dù package có tagline "Communications" — gửi newsletter ngoài phạm vi (xem Domain Model).

3. Luồng cross-service quan trọng

3.1 Thông báo yêu cầu real-time tới BO

BướcChi tiết
2Notify là fire-and-forget sau khi dòng được commit
3Hai room: room list (outreach/inquiries) và room theo từng-inquiry
4BO phải đã có một WS session mở subscribe vào room

4. Tính ổn định Contract

SurfaceStabilityVersioning
HTTP /inquiries/submit, /subscribers/subscribe, /subscribers/unsubscribestableURL /v1/
HTTP /subscribers/statisticsbeta (shape có thể mở rộng)URL /v1/
WS observation/outreach/inquiry/submittedbetatheo path; payload chỉ thêm

5. Trang liên quan

Proprietary and Confidential. Unauthorized copying, distribution, or use of this software is strictly prohibited.