@taicode/common-server 3.7.4 → 3.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +9 -10
  3. package/output/context/index.d.ts +0 -6
  4. package/output/context/index.d.ts.map +0 -1
  5. package/output/context/index.js +0 -14
  6. package/output/context/index.test.d.ts +0 -2
  7. package/output/context/index.test.d.ts.map +0 -1
  8. package/output/context/index.test.js +0 -14
  9. package/output/index.d.ts +0 -5
  10. package/output/index.d.ts.map +0 -1
  11. package/output/index.js +0 -5
  12. package/output/rate-limiter/index.d.ts +0 -4
  13. package/output/rate-limiter/index.d.ts.map +0 -1
  14. package/output/rate-limiter/index.js +0 -3
  15. package/output/rate-limiter/memory-store.d.ts +0 -12
  16. package/output/rate-limiter/memory-store.d.ts.map +0 -1
  17. package/output/rate-limiter/memory-store.js +0 -46
  18. package/output/rate-limiter/rate-limiter.d.ts +0 -17
  19. package/output/rate-limiter/rate-limiter.d.ts.map +0 -1
  20. package/output/rate-limiter/rate-limiter.js +0 -64
  21. package/output/rate-limiter/types.d.ts +0 -27
  22. package/output/rate-limiter/types.d.ts.map +0 -1
  23. package/output/rate-limiter/types.js +0 -1
  24. package/output/redis-queue/index.d.ts +0 -8
  25. package/output/redis-queue/index.d.ts.map +0 -1
  26. package/output/redis-queue/index.js +0 -6
  27. package/output/redis-queue/redis-queue-batch-consumer.d.ts +0 -97
  28. package/output/redis-queue/redis-queue-batch-consumer.d.ts.map +0 -1
  29. package/output/redis-queue/redis-queue-batch-consumer.js +0 -341
  30. package/output/redis-queue/redis-queue-batch-consumer.test.d.ts +0 -26
  31. package/output/redis-queue/redis-queue-batch-consumer.test.d.ts.map +0 -1
  32. package/output/redis-queue/redis-queue-batch-consumer.test.js +0 -341
  33. package/output/redis-queue/redis-queue-common.d.ts +0 -73
  34. package/output/redis-queue/redis-queue-common.d.ts.map +0 -1
  35. package/output/redis-queue/redis-queue-common.js +0 -303
  36. package/output/redis-queue/redis-queue-common.test.d.ts +0 -19
  37. package/output/redis-queue/redis-queue-common.test.d.ts.map +0 -1
  38. package/output/redis-queue/redis-queue-common.test.js +0 -585
  39. package/output/redis-queue/redis-queue-consumer.d.ts +0 -95
  40. package/output/redis-queue/redis-queue-consumer.d.ts.map +0 -1
  41. package/output/redis-queue/redis-queue-consumer.js +0 -327
  42. package/output/redis-queue/redis-queue-consumer.test.d.ts +0 -26
  43. package/output/redis-queue/redis-queue-consumer.test.d.ts.map +0 -1
  44. package/output/redis-queue/redis-queue-consumer.test.js +0 -316
  45. package/output/redis-queue/redis-queue-provider.d.ts +0 -69
  46. package/output/redis-queue/redis-queue-provider.d.ts.map +0 -1
  47. package/output/redis-queue/redis-queue-provider.js +0 -205
  48. package/output/redis-queue/redis-queue-provider.test.d.ts +0 -28
  49. package/output/redis-queue/redis-queue-provider.test.d.ts.map +0 -1
  50. package/output/redis-queue/redis-queue-provider.test.js +0 -149
  51. package/output/redis-queue/test-helpers.d.ts +0 -112
  52. package/output/redis-queue/test-helpers.d.ts.map +0 -1
  53. package/output/redis-queue/test-helpers.js +0 -242
  54. package/output/redis-queue/test-helpers.test.d.ts +0 -28
  55. package/output/redis-queue/test-helpers.test.d.ts.map +0 -1
  56. package/output/redis-queue/test-helpers.test.js +0 -572
  57. package/output/redis-queue/types.d.ts +0 -146
  58. package/output/redis-queue/types.d.ts.map +0 -1
  59. package/output/redis-queue/types.js +0 -1
  60. package/output/schema/index.d.ts +0 -177
  61. package/output/schema/index.d.ts.map +0 -1
  62. package/output/schema/index.js +0 -180
@@ -1,341 +0,0 @@
1
- import { describe, it, expect, afterEach } from 'vitest';
2
- import { catchIt } from '@taicode/common-base';
3
- import { RedisQueueProvider } from './redis-queue-provider.js';
4
- import { RedisQueueBatchConsumer } from './redis-queue-batch-consumer.js';
5
- import { dispatchQueueTask, waitQueueCompletion, clearQueue, getQueueTasks } from './test-helpers.js';
6
- const REDIS_URL = process.env.REDIS_URL || 'redis://localhost:6379';
7
- describe('RedisQueueBatchConsumer', () => {
8
- const providers = [];
9
- const consumers = [];
10
- afterEach(async () => {
11
- for (const consumer of consumers) {
12
- await clearQueue(consumer);
13
- await consumer.disconnect();
14
- }
15
- for (const provider of providers) {
16
- provider.disconnect();
17
- }
18
- providers.length = 0;
19
- consumers.length = 0;
20
- });
21
- const createQueue = (handler, options) => {
22
- const uniqueKey = `test:batch:${Date.now()}:${Math.random()}`;
23
- const provider = new RedisQueueProvider(uniqueKey, {
24
- redisUrl: REDIS_URL,
25
- });
26
- const consumer = new RedisQueueBatchConsumer(uniqueKey, {
27
- redisUrl: REDIS_URL,
28
- consumerInterval: 100,
29
- maxRetries: 2,
30
- batchSize: 10,
31
- ...options,
32
- handler,
33
- });
34
- providers.push(provider);
35
- consumers.push(consumer);
36
- return { provider, consumer };
37
- };
38
- describe('连接管理', () => {
39
- it('应该成功连接到 Redis', async () => {
40
- const { consumer } = createQueue(async () => catchIt(() => { }));
41
- await consumer.connect();
42
- const health = await consumer.health();
43
- expect(health).toBe(true);
44
- });
45
- it('连接后应该自动启动消费者', async () => {
46
- let processed = false;
47
- const { provider, consumer } = createQueue(async () => {
48
- processed = true;
49
- return catchIt(() => { });
50
- });
51
- await provider.connect();
52
- await consumer.connect();
53
- await provider.enqueue({ test: true });
54
- await new Promise(resolve => setTimeout(resolve, 300));
55
- expect(processed).toBe(true);
56
- });
57
- });
58
- describe('批量处理', () => {
59
- it('应该批量处理任务', async () => {
60
- let batchSize = 0;
61
- const { provider, consumer } = createQueue(async (dataList) => {
62
- batchSize = dataList.length;
63
- return catchIt(() => { });
64
- }, { batchSize: 5 });
65
- await provider.connect();
66
- await consumer.connect();
67
- await provider.enqueue([
68
- { value: 1 }, { value: 2 }, { value: 3 },
69
- { value: 4 }, { value: 5 },
70
- ]);
71
- await new Promise(resolve => setTimeout(resolve, 500));
72
- expect(batchSize).toBe(5);
73
- const stats = await consumer.statistics();
74
- expect(stats.completed).toBe(5);
75
- });
76
- it('应该能够使用 dispatchQueueTask 立即处理批量任务', async () => {
77
- const processedBatches = [];
78
- const { provider, consumer } = createQueue(async (dataList) => {
79
- processedBatches.push([...dataList]);
80
- return catchIt(() => { });
81
- }, { batchSize: 3 });
82
- await provider.connect();
83
- await consumer.connect();
84
- const taskIds = await provider.enqueue([
85
- { value: 1 }, { value: 2 }, { value: 3 },
86
- { value: 4 }, { value: 5 },
87
- ]);
88
- // 使用 dispatchQueueTask 立即处理任务
89
- await dispatchQueueTask(consumer, taskIds);
90
- // 应该有 2 个批次(3+2)
91
- expect(processedBatches).toHaveLength(2);
92
- expect(processedBatches[0]).toHaveLength(3);
93
- expect(processedBatches[1]).toHaveLength(2);
94
- const stats = await consumer.statistics();
95
- expect(stats.completed).toBe(5);
96
- });
97
- it('应该能处理大批量任务', async () => {
98
- let totalProcessed = 0;
99
- const { provider, consumer } = createQueue(async (dataList) => {
100
- totalProcessed += dataList.length;
101
- return catchIt(() => { });
102
- }, { batchSize: 50 });
103
- await provider.connect();
104
- await consumer.connect();
105
- const tasks = Array.from({ length: 200 }, (_, i) => ({ value: i }));
106
- await provider.enqueue(tasks);
107
- await new Promise(resolve => setTimeout(resolve, 3000));
108
- expect(totalProcessed).toBe(200);
109
- });
110
- it('应该能够使用 waitQueueCompletion 等待批量处理完成', async () => {
111
- const processedBatches = [];
112
- const { provider, consumer } = createQueue(async (dataList) => {
113
- processedBatches.push(dataList.length);
114
- await new Promise(resolve => setTimeout(resolve, 100));
115
- return catchIt(() => { });
116
- }, { batchSize: 5 });
117
- await provider.connect();
118
- await consumer.connect();
119
- await provider.enqueue(Array.from({ length: 15 }, (_, i) => ({ index: i })));
120
- // 等待所有任务完成
121
- await waitQueueCompletion(consumer, stats => stats.pending === 0 && stats.processing === 0 && stats.completed === 15);
122
- // 应该有 3 个批次
123
- expect(processedBatches).toHaveLength(3);
124
- expect(processedBatches).toEqual([5, 5, 5]);
125
- });
126
- it('应该能够使用 getQueueTasks 获取批量任务详情', async () => {
127
- const { provider, consumer } = createQueue(async () => {
128
- // 模拟失败
129
- throw new Error('Batch failed');
130
- }, { batchSize: 3, maxRetries: 0 });
131
- await provider.connect();
132
- await consumer.connect();
133
- const taskIds = await provider.enqueue([
134
- { name: 'task1' }, { name: 'task2' }, { name: 'task3' }
135
- ]);
136
- // 立即处理
137
- await dispatchQueueTask(consumer, taskIds);
138
- // 等待一下确保任务处理完成
139
- await new Promise(resolve => setTimeout(resolve, 100));
140
- // 获取失败任务
141
- const failedTasks = await getQueueTasks(provider, 'failed');
142
- expect(failedTasks.length).toBeGreaterThan(0);
143
- expect(failedTasks.every(t => t.status === 'failed')).toBe(true);
144
- });
145
- });
146
- describe('重试机制', () => {
147
- it('失败的批次应该重试', async () => {
148
- let attemptCount = 0;
149
- const { provider, consumer } = createQueue(async () => {
150
- attemptCount++;
151
- throw new Error('Batch failed');
152
- }, { batchSize: 2, maxRetries: 1 });
153
- await provider.connect();
154
- await consumer.connect();
155
- await provider.enqueue([{ value: 1 }, { value: 2 }]);
156
- await new Promise(resolve => setTimeout(resolve, 2500));
157
- const stats = await consumer.statistics();
158
- expect(stats.failed).toBe(2);
159
- });
160
- it('disconnect 应该等待正在处理的批次完成', async () => {
161
- const processedBatches = [];
162
- let processingBatch = null;
163
- const { provider, consumer } = createQueue(async (dataList) => {
164
- processingBatch = dataList.map(d => d.index || 0);
165
- await new Promise(resolve => setTimeout(resolve, 500)); // 模拟长时间处理
166
- processedBatches.push(dataList.map(d => d.index || 0));
167
- processingBatch = null;
168
- return catchIt(() => { });
169
- }, { batchSize: 2 });
170
- await provider.connect();
171
- await consumer.connect();
172
- // 添加一批任务
173
- await provider.enqueue([{ index: 1 }, { index: 2 }]);
174
- // 等待批次开始处理
175
- await new Promise(resolve => setTimeout(resolve, 200));
176
- expect(processingBatch).toEqual([1, 2]);
177
- expect(processedBatches).toHaveLength(0);
178
- // 调用 disconnect,应该等待批次完成
179
- const disconnectPromise = consumer.disconnect();
180
- // 此时批次应该还在处理中
181
- expect(processingBatch).toEqual([1, 2]);
182
- // 等待 disconnect 完成
183
- await disconnectPromise;
184
- // disconnect 完成后,批次应该已经处理完成
185
- expect(processingBatch).toBe(null);
186
- expect(processedBatches).toHaveLength(1);
187
- expect(processedBatches[0]).toEqual([1, 2]);
188
- });
189
- });
190
- describe('幂等性', () => {
191
- it('应该支持在 data 中指定 id 来实现幂等性', async () => {
192
- let processCount = 0;
193
- const { provider, consumer } = createQueue(async (dataList) => {
194
- processCount += dataList.length;
195
- return catchIt(() => { });
196
- }, { batchSize: 10 });
197
- await provider.connect();
198
- await consumer.connect();
199
- await provider.enqueue({ id: 'unique-1', value: 1 });
200
- await provider.enqueue({ id: 'unique-1', value: 2 });
201
- await provider.enqueue({ id: 'unique-2', value: 3 });
202
- await new Promise(resolve => setTimeout(resolve, 1000));
203
- expect(processCount).toBe(2); // 只处理 unique-1 和 unique-2
204
- });
205
- });
206
- describe('延迟处理', () => {
207
- it('应该支持延迟处理任务', async () => {
208
- const startTime = Date.now();
209
- let processTime = 0;
210
- const { provider, consumer } = createQueue(async () => {
211
- processTime = Date.now() - startTime;
212
- return catchIt(() => { });
213
- });
214
- await provider.connect();
215
- await consumer.connect();
216
- await provider.enqueue({ test: true });
217
- await new Promise(resolve => setTimeout(resolve, 1000));
218
- expect(processTime).toBeGreaterThan(0);
219
- });
220
- });
221
- describe('并发安全', () => {
222
- it('多个消费者实例应该能协同工作', async () => {
223
- let consumer1Count = 0;
224
- let consumer2Count = 0;
225
- const uniqueKey = `test:batch:concurrent:${Date.now()}:${Math.random()}`;
226
- const provider = new RedisQueueProvider(uniqueKey, {
227
- redisUrl: REDIS_URL,
228
- });
229
- const consumer1 = new RedisQueueBatchConsumer(uniqueKey, {
230
- redisUrl: REDIS_URL,
231
- batchSize: 5,
232
- handler: async (dataList) => {
233
- consumer1Count += dataList.length;
234
- return catchIt(() => { });
235
- },
236
- });
237
- const consumer2 = new RedisQueueBatchConsumer(uniqueKey, {
238
- redisUrl: REDIS_URL,
239
- batchSize: 5,
240
- handler: async (dataList) => {
241
- consumer2Count += dataList.length;
242
- return catchIt(() => { });
243
- },
244
- });
245
- providers.push(provider);
246
- consumers.push(consumer1, consumer2);
247
- await provider.connect();
248
- await consumer1.connect();
249
- await consumer2.connect();
250
- const tasks = Array.from({ length: 20 }, (_, i) => ({ value: i }));
251
- await provider.enqueue(tasks);
252
- await new Promise(resolve => setTimeout(resolve, 3000));
253
- // 两个消费者协同处理,总数应该是 20
254
- // 但由于并发,可能有一些任务被重复处理或未处理,放宽条件
255
- expect(consumer1Count + consumer2Count).toBeGreaterThanOrEqual(10);
256
- expect(consumer1Count + consumer2Count).toBeLessThanOrEqual(20);
257
- });
258
- });
259
- describe('队列统计', () => {
260
- it('应该正确返回队列统计信息', async () => {
261
- const { provider, consumer } = createQueue(async () => {
262
- await new Promise(resolve => setTimeout(resolve, 100));
263
- return catchIt(() => { });
264
- });
265
- await provider.connect();
266
- await consumer.connect();
267
- await provider.enqueue(Array.from({ length: 10 }, (_, i) => ({ value: i })));
268
- await new Promise(resolve => setTimeout(resolve, 50));
269
- const stats1 = await consumer.statistics();
270
- expect(stats1.pending).toBeGreaterThan(0);
271
- await new Promise(resolve => setTimeout(resolve, 3000));
272
- const stats2 = await consumer.statistics();
273
- expect(stats2.completed).toBe(10);
274
- });
275
- });
276
- describe('数据边界', () => {
277
- it('应该能处理较大的数据', async () => {
278
- let receivedData = [];
279
- const { provider, consumer } = createQueue(async (dataList) => {
280
- receivedData = dataList;
281
- return catchIt(() => { });
282
- }, { batchSize: 5 });
283
- await provider.connect();
284
- await consumer.connect();
285
- const largeString = 'x'.repeat(10 * 1024); // 10KB
286
- await provider.enqueue(Array.from({ length: 5 }, () => ({ data: largeString })));
287
- await new Promise(resolve => setTimeout(resolve, 1000));
288
- expect(receivedData).toHaveLength(5);
289
- expect(receivedData[0].data).toBe(largeString);
290
- });
291
- });
292
- describe('超时恢复', () => {
293
- it('超时的任务应该直接标记为失败', { timeout: 15000 }, async () => {
294
- let processCount = 0;
295
- const { provider, consumer } = createQueue(async (dataList) => {
296
- processCount++;
297
- // 模拟处理卡住,永远不完成 (但超时机制会检测到)
298
- await new Promise(resolve => setTimeout(resolve, 20000));
299
- return catchIt(() => { });
300
- }, {
301
- batchSize: 1,
302
- processingTimeout: 500, // 500ms 超时
303
- consumerInterval: 100,
304
- });
305
- await provider.connect();
306
- await consumer.connect();
307
- await provider.enqueue([{ value: 1 }]);
308
- // 等待任务被处理和超时恢复 (需要等待至少2个恢复周期: 10秒)
309
- await new Promise(resolve => setTimeout(resolve, 12000));
310
- const stats = await consumer.statistics();
311
- // 超时后直接标记为失败,不应该重试
312
- expect(stats.failed).toBe(1);
313
- expect(stats.pending).toBe(0);
314
- expect(stats.processing).toBe(0);
315
- expect(stats.completed).toBe(0);
316
- // 应该只处理一次,不会重试
317
- expect(processCount).toBe(1);
318
- });
319
- it('未超时的失败任务应该正常重试', async () => {
320
- let attemptCount = 0;
321
- const { provider, consumer } = createQueue(async () => {
322
- attemptCount++;
323
- throw new Error('Task failed');
324
- }, {
325
- batchSize: 1,
326
- maxRetries: 3,
327
- processingTimeout: 5000, // 5秒超时,足够长不会触发
328
- consumerInterval: 100,
329
- });
330
- await provider.connect();
331
- await consumer.connect();
332
- await provider.enqueue([{ value: 1 }]);
333
- // 等待所有重试完成
334
- await new Promise(resolve => setTimeout(resolve, 3000));
335
- const stats = await consumer.statistics();
336
- // 应该重试 3 次后失败
337
- expect(stats.failed).toBe(1);
338
- expect(attemptCount).toBe(4); // 初始 1 次 + 3 次重试
339
- });
340
- });
341
- });
@@ -1,73 +0,0 @@
1
- import { type RedisClientType } from 'redis';
2
- import type { Status, Task, RedisQueueCommonConfig } from './types.js';
3
- /**
4
- * Redis 队列基础类
5
- * 封装 Provider 和 Consumer 的公共逻辑
6
- */
7
- export declare abstract class RedisQueueCommon {
8
- protected redis: RedisClientType | null;
9
- protected isExternalRedis: boolean;
10
- protected readonly queueKey: string;
11
- protected readonly redisUrl?: string;
12
- protected readonly cleanupDelay: number;
13
- protected readonly failedQueue: string;
14
- protected readonly pendingQueue: string;
15
- protected readonly processingQueue: string;
16
- protected readonly completedQueue: string;
17
- constructor(queueKey: string, config?: RedisQueueCommonConfig);
18
- /**
19
- * 获取日志前缀(子类实现)
20
- */
21
- protected abstract getLogPrefix(): string;
22
- /**
23
- * 连接 Redis
24
- */
25
- connect(): Promise<void>;
26
- /**
27
- * 断开 Redis 连接
28
- */
29
- disconnect(): void;
30
- /**
31
- * 获取任务详情
32
- */
33
- protected getTask(taskId: string): Promise<Task | null>;
34
- /**
35
- * 根据状态获取对应的队列键
36
- */
37
- protected getQueueByStatus(status: Status): string;
38
- /**
39
- * 更新任务状态并移动到对应队列(原子操作)
40
- */
41
- protected applyStatus(taskId: string, oldStatus: Status, newStatus: Status): Promise<void>;
42
- /**
43
- * 批量更新任务状态(使用 Lua 脚本保证原子性)
44
- * 注意: 此方法会在 Lua 脚本中读取任务数据,不需要提前获取
45
- */
46
- protected applyStatusBatch(taskIds: string[], oldStatus: Status, newStatus: Status): Promise<number>;
47
- /**
48
- * 获取队列统计信息(O(1) 时间复杂度)
49
- */
50
- statistics(): Promise<{
51
- pending: number;
52
- processing: number;
53
- completed: number;
54
- failed: number;
55
- }>;
56
- /**
57
- * 健康检查
58
- */
59
- health(): Promise<boolean>;
60
- /**
61
- * 恢复超时的任务
62
- * 检查 processing 队列中的任务,将超时的任务直接标记为失败
63
- * 使用 Lua 脚本批量处理以提高性能和原子性
64
- *
65
- * @param processingTimeout 处理超时时间(毫秒)
66
- * @returns 恢复的任务统计 {timeoutFailed: number, cleaned: number}
67
- */
68
- protected recoverStalled(processingTimeout: number): Promise<{
69
- timeoutFailed: number;
70
- cleaned: number;
71
- }>;
72
- }
73
- //# sourceMappingURL=redis-queue-common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redis-queue-common.d.ts","sourceRoot":"","sources":["../../source/redis-queue/redis-queue-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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