perf: expand gateway capacity and prevent receipt replay

This commit is contained in:
hectorzhao
2026-08-25 16:08:30 +08:00
parent 761c123b65
commit 9292352be1
48 changed files with 2001 additions and 144 deletions
@@ -99,6 +99,7 @@ export interface GatewaySubmitSegmentResultDto {
}
export interface GatewayReceiptEventDto {
eventId?: string;
traceId?: string;
messageId?: string;
channelId: string;
@@ -114,6 +115,7 @@ export interface GatewayReceiptEventDto {
}
export interface GatewayUplinkEventDto {
eventId?: string;
traceId?: string;
messageId?: string;
channelId: string;
@@ -136,10 +138,13 @@ export type UplinkMatchCandidateInput = {
export interface GatewayPendingDeliveryQueryDto {
account: string;
limit?: number;
claimId?: string;
leaseMs?: number;
}
export interface GatewayDownstreamSentDto {
id: string;
claimId?: string;
connectionId?: string;
sequenceId?: string;
messageId?: string;
@@ -153,6 +158,7 @@ export interface GatewayDownstreamAcknowledgedDto extends GatewayDownstreamSentD
}
export type GatewayDownstreamFailureType =
| 'claim_released'
| 'send_failed'
| 'ack_timeout'
| 'ack_rejected'