@fedify/fedify 1.0.0-dev.408 → 1.0.0-dev.410

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -109,6 +109,18 @@ To be released.
109
109
  the activity to be sent only once. It had added Object Integrity Proofs
110
110
  to the activity for every recipient before.
111
111
 
112
+ - The message queue is now able to be stopped manually by providing
113
+ an `AbortSignal` object to the `Federation.startQueue()` method.
114
+
115
+ - Added the optional second parameter to `Federation.startQueue()` method,
116
+ which is a `FederationStartQueueOptions` object.
117
+ - Added `FederationStartQueueOptions` interface.
118
+ - Added the optional second parameter to `MessageQueue.listen()` method,
119
+ which is a `MessageQueueListenOptions` object.
120
+ - Added `MessageQueueListenOptions` interface.
121
+ - The return type of `MessageQueue.listen()` method became `Promise<void>`
122
+ (was `void`).
123
+
112
124
  - Added `ParallelMessageQueue` class. [[#106]]
113
125
 
114
126
  - WebFinger responses now include <http://webfinger.net/rel/avatar> links
@@ -108,12 +108,12 @@ export class FederationImpl {
108
108
  this.inboxRetryPolicy = options.inboxRetryPolicy ??
109
109
  createExponentialBackoffPolicy();
110
110
  }
111
- #startQueue(ctxData) {
111
+ async #startQueue(ctxData, signal) {
112
112
  if (this.queue != null && !this.queueStarted) {
113
113
  const logger = getLogger(["fedify", "federation", "queue"]);
114
114
  logger.debug("Starting a task queue.");
115
- this.queue?.listen((msg) => this.#listenQueue(ctxData, msg));
116
115
  this.queueStarted = true;
116
+ await this.queue?.listen((msg) => this.#listenQueue(ctxData, msg), { signal });
117
117
  }
118
118
  }
119
119
  async #listenQueue(ctxData, message) {
@@ -284,9 +284,8 @@ export class FederationImpl {
284
284
  }
285
285
  logger.info("Activity {activityId} has been processed.", { activityId: activity.id?.href, activity: message.activity });
286
286
  }
287
- startQueue(contextData) {
288
- this.#startQueue(contextData);
289
- return Promise.resolve();
287
+ startQueue(contextData, options = {}) {
288
+ return this.#startQueue(contextData, options.signal);
290
289
  }
291
290
  createContext(urlOrRequest, contextData) {
292
291
  return urlOrRequest instanceof Request
@@ -7,24 +7,67 @@
7
7
  import * as dntShim from "../_dnt.shims.js";
8
8
  /**
9
9
  * A message queue that processes messages in the same process.
10
- * Do not use this in production as it does not persist messages.
10
+ * Do not use this in production as it does neither persist messages nor
11
+ * distribute them across multiple processes.
11
12
  *
12
13
  * @since 0.5.0
13
14
  */
14
15
  export class InProcessMessageQueue {
15
- #handlers = [];
16
+ #messages;
17
+ #monitors;
18
+ #pollIntervalMs;
19
+ /**
20
+ * Constructs a new {@link InProcessMessageQueue} with the given options.
21
+ * @param options Additional options for the in-process message queue.
22
+ */
23
+ constructor(options = {}) {
24
+ this.#messages = [];
25
+ this.#monitors = {};
26
+ this.#pollIntervalMs = dntShim.Temporal.Duration.from(options.pollInterval ?? { seconds: 5 }).total("millisecond");
27
+ }
16
28
  enqueue(message, options) {
17
29
  const delay = options?.delay == null
18
30
  ? 0
19
31
  : Math.max(options.delay.total("millisecond"), 0);
20
- setTimeout(() => {
21
- for (const handler of this.#handlers)
22
- handler(message);
23
- }, delay);
32
+ if (delay > 0) {
33
+ setTimeout(() => this.enqueue(message, { ...options, delay: undefined }), delay);
34
+ return Promise.resolve();
35
+ }
36
+ this.#messages.push(message);
37
+ for (const monitorId in this.#monitors) {
38
+ this.#monitors[monitorId]();
39
+ }
24
40
  return Promise.resolve();
25
41
  }
26
- listen(handler) {
27
- this.#handlers.push(handler);
42
+ async listen(handler, options = {}) {
43
+ const signal = options.signal;
44
+ while (signal == null || !signal.aborted) {
45
+ while (this.#messages.length > 0) {
46
+ const message = this.#messages.shift();
47
+ await handler(message);
48
+ }
49
+ await this.#wait(this.#pollIntervalMs, signal);
50
+ }
51
+ }
52
+ #wait(ms, signal) {
53
+ let timer = null;
54
+ return Promise.any([
55
+ new Promise((resolve) => {
56
+ signal?.addEventListener("abort", () => {
57
+ if (timer != null)
58
+ clearTimeout(timer);
59
+ resolve();
60
+ }, { once: true });
61
+ const monitorId = dntShim.crypto.randomUUID();
62
+ this.#monitors[monitorId] = () => {
63
+ delete this.#monitors[monitorId];
64
+ if (timer != null)
65
+ clearTimeout(timer);
66
+ resolve();
67
+ };
68
+ }),
69
+ new Promise((resolve) => timer = setTimeout(resolve, ms)),
70
+ ]);
28
71
  }
29
72
  }
30
73
  /**
@@ -64,9 +107,9 @@ export class ParallelMessageQueue {
64
107
  enqueue(message, options) {
65
108
  return this.queue.enqueue(message, options);
66
109
  }
67
- listen(handler) {
110
+ listen(handler, options = {}) {
68
111
  const workers = new Map();
69
- this.queue.listen(async (message) => {
112
+ return this.queue.listen(async (message) => {
70
113
  while (workers.size >= this.workers) {
71
114
  const consumedId = await Promise.any(workers.values());
72
115
  workers.delete(consumedId);
@@ -74,7 +117,7 @@ export class ParallelMessageQueue {
74
117
  const workerId = dntShim.crypto.randomUUID();
75
118
  const promise = this.#work(workerId, handler, message);
76
119
  workers.set(workerId, promise);
77
- });
120
+ }, options);
78
121
  }
79
122
  async #work(workerId, handler, message) {
80
123
  await this.#sleep(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.0.0-dev.408+f4e245b4",
3
+ "version": "1.0.0-dev.410+8793b61b",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -4,6 +4,16 @@ import type { Actor, Recipient } from "../vocab/actor.js";
4
4
  import type { Activity, Hashtag, Object } from "../vocab/vocab.js";
5
5
  import type { ActorDispatcher, ActorHandleMapper, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectDispatcher, SharedInboxKeyDispatcher } from "./callback.js";
6
6
  import type { Context, RequestContext } from "./context.js";
7
+ /**
8
+ * Options for {@link Federation.startQueue} method.
9
+ * @since 1.0.0
10
+ */
11
+ export interface FederationStartQueueOptions {
12
+ /**
13
+ * The signal to abort the task queue.
14
+ */
15
+ signal?: AbortSignal;
16
+ }
7
17
  /**
8
18
  * An object that registers federation-related business logic and dispatches
9
19
  * requests to the appropriate handlers.
@@ -20,8 +30,9 @@ export interface Federation<TContextData> {
20
30
  * This method is useful when you set the `manuallyStartQueue` option to
21
31
  * `true` in the {@link createFederation} function.
22
32
  * @param contextData The context data to pass to the context.
33
+ * @param options Additional options for starting the queue.
23
34
  */
24
- startQueue(contextData: TContextData): Promise<void>;
35
+ startQueue(contextData: TContextData, options?: FederationStartQueueOptions): Promise<void>;
25
36
  /**
26
37
  * Create a new context.
27
38
  * @param baseUrl The base URL of the server. The `pathname` remains root,
@@ -1 +1 @@
1
- {"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../src/federation/federation.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5D;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU,CAAC,YAAY;IACtC;;;;;;OAMG;IACH,UAAU,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErD;;;;;;OAMG;IACH,aAAa,CAAC,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE9E;;;;;OAKG;IACH,aAAa,CACX,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,YAAY,GACxB,cAAc,CAAC,YAAY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SAAS,SAAS,QAAQ,EAE3B,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,SAAS,EACvC,QAAQ,EAAE,aAAa,CAAC,YAAY,EAAE,SAAS,CAAC,GAC/C,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEtC;;;;;;OAMG;IACH,OAAO,CACL,OAAO,EAAE,iBAAiB,CAAC,YAAY,CAAC,GACvC,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEtC;;;;;;;;OAQG;IACH,sBAAsB,CACpB,UAAU,EAAE,wBAAwB,CAAC,YAAY,CAAC,GACjD,oBAAoB,CAAC,YAAY,CAAC,CAAC;CACvC;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB,CAAC,YAAY;IAClD;;OAEG;IACH,WAAW,EAAE,YAAY,CAAC;IAE1B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEhE;;;;;OAKG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAErE;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACrE"}
@@ -7,7 +7,7 @@ import { type LookupObjectOptions } from "../vocab/lookup.js";
7
7
  import { Activity, type Hashtag, type Like, type Object } from "../vocab/vocab.js";
8
8
  import type { ActorDispatcher, ActorHandleMapper, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionDispatcher, InboxErrorHandler, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectDispatcher, OutboxErrorHandler, SharedInboxKeyDispatcher } from "./callback.js";
9
9
  import type { ActorKeyPair, Context, ForwardActivityOptions, InboxContext, ParseUriResult, RequestContext, SendActivityOptions } from "./context.js";
10
- import type { ActorCallbackSetters, CollectionCallbackSetters, Federation, FederationFetchOptions, InboxListenerSetters, ObjectCallbackSetters } from "./federation.js";
10
+ import type { ActorCallbackSetters, CollectionCallbackSetters, Federation, FederationFetchOptions, FederationStartQueueOptions, InboxListenerSetters, ObjectCallbackSetters } from "./federation.js";
11
11
  import { type CollectionCallbacks } from "./handler.js";
12
12
  import { InboxListenerSet } from "./inbox.js";
13
13
  import type { KvKey, KvStore } from "./kv.js";
@@ -187,7 +187,7 @@ export declare class FederationImpl<TContextData> implements Federation<TContext
187
187
  outboxRetryPolicy: RetryPolicy;
188
188
  inboxRetryPolicy: RetryPolicy;
189
189
  constructor(options: CreateFederationOptions);
190
- startQueue(contextData: TContextData): Promise<void>;
190
+ startQueue(contextData: TContextData, options?: FederationStartQueueOptions): Promise<void>;
191
191
  createContext(baseUrl: URL, contextData: TContextData): Context<TContextData>;
192
192
  createContext(request: Request, contextData: TContextData): RequestContext<TContextData>;
193
193
  setNodeInfoDispatcher(path: string, dispatcher: NodeInfoDispatcher<TContextData>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,cAAc,EAIpB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAgB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EACL,QAAQ,EAER,KAAK,OAAO,EACZ,KAAK,IAAI,EAET,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAGlB,oBAAoB,EACpB,iBAAiB,EAEjB,kBAAkB,EAClB,wBAAwB,EACxB,gBAA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AC,YAAY,CAAC,CAAC;CACvD;AAED,UAAU,eAAe,CAAC,YAAY,EAAE,MAAM,SAAS,MAAM;IAC3D,UAAU,EAAE,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3D,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,kBAAkB,CAAC,EAAE,wBAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;CACrE;AAED,UAAU,2BAA2B,CAAC,YAAY,CAChD,SAAQ,mBAAmB;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,YAAY,CAAC;CAC3B"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  /**
2
3
  * Additional options for enqueuing a message in a queue.
3
4
  *
@@ -12,6 +13,17 @@ export interface MessageQueueEnqueueOptions {
12
13
  */
13
14
  delay?: dntShim.Temporal.Duration;
14
15
  }
16
+ /**
17
+ * Additional options for listening to a message queue.
18
+ *
19
+ * @since 1.0.0
20
+ */
21
+ export interface MessageQueueListenOptions {
22
+ /**
23
+ * The signal to abort listening to the message queue.
24
+ */
25
+ signal?: AbortSignal;
26
+ }
15
27
  /**
16
28
  * An abstract interface for a message queue.
17
29
  *
@@ -27,19 +39,40 @@ export interface MessageQueue {
27
39
  /**
28
40
  * Listens for messages in the queue.
29
41
  * @param handler The handler for messages in the queue.
42
+ * @param options Additional options for listening to the message queue.
43
+ * @returns A promise that resolves when the listening is done. It never
44
+ * rejects, and is resolved when the signal is aborted. If no
45
+ * signal is provided, it never resolves.
30
46
  */
31
- listen(handler: (message: any) => Promise<void> | void): void;
47
+ listen(handler: (message: any) => Promise<void> | void, options?: MessageQueueListenOptions): Promise<void>;
48
+ }
49
+ /**
50
+ * Additional options for {@link InProcessMessageQueue}.
51
+ * @since 1.0.0
52
+ */
53
+ export interface InProcessMessageQueueOptions {
54
+ /**
55
+ * The interval to poll for messages in the queue. 5 seconds by default.
56
+ * @default `{ seconds: 5 }`
57
+ */
58
+ pollInterval?: dntShim.Temporal.Duration | dntShim.Temporal.DurationLike;
32
59
  }
33
60
  /**
34
61
  * A message queue that processes messages in the same process.
35
- * Do not use this in production as it does not persist messages.
62
+ * Do not use this in production as it does neither persist messages nor
63
+ * distribute them across multiple processes.
36
64
  *
37
65
  * @since 0.5.0
38
66
  */
39
67
  export declare class InProcessMessageQueue implements MessageQueue {
40
68
  #private;
69
+ /**
70
+ * Constructs a new {@link InProcessMessageQueue} with the given options.
71
+ * @param options Additional options for the in-process message queue.
72
+ */
73
+ constructor(options?: InProcessMessageQueueOptions);
41
74
  enqueue(message: any, options?: MessageQueueEnqueueOptions): Promise<void>;
42
- listen(handler: (message: any) => Promise<void> | void): void;
75
+ listen(handler: (message: any) => Promise<void> | void, options?: MessageQueueListenOptions): Promise<void>;
43
76
  }
44
77
  /**
45
78
  * A message queue that processes messages in parallel. It takes another
@@ -71,6 +104,6 @@ export declare class ParallelMessageQueue implements MessageQueue {
71
104
  */
72
105
  constructor(queue: MessageQueue, workers: number);
73
106
  enqueue(message: any, options?: MessageQueueEnqueueOptions): Promise<void>;
74
- listen(handler: (message: any) => Promise<void> | void): void;
107
+ listen(handler: (message: any) => Promise<void> | void, options?: MessageQueueListenOptions): Promise<void>;
75
108
  }
76
109
  //# sourceMappingURL=mq.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mq.d.ts","sourceRoot":"","sources":["../../src/federation/mq.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAA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