Commit 8c32db0
committed
feat(queue/sql): add subscriber with partition leasing
## Why?
Implement the Subscriber interface with distributed partition leasing to enable reliable message consumption across multiple workers.
## What?
- Subscriber with automatic partition discovery and lease acquisition
- Per-partition polling with ack/nack support
- DLQ handling for messages exceeding retry limits
- Lease renewal and graceful shutdown
- Fast test execution (~4s) with comprehensive coverage
## Test Plan
- Message delivery and ordering verified
- Ack/nack operations work correctly
- DLQ handling tested (max retries exceeded)
- Multi-partition and multi-consumer scenarios validated
- Lease management (acquire, renew, release) tested1 parent 6b9a01f commit 8c32db0
3 files changed
Lines changed: 1070 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
0 commit comments