@@ -351,8 +351,11 @@ is only supported with Redis-based replication.)
351
351
352
352
To enable this, the worker must have a HTTP replication listener configured,
353
353
have a `worker_name` and be listed in the `instance_map` config. The same worker
354
- can handle multiple streams. For example, to move event persistence off to a
355
- dedicated worker, the shared configuration would include :
354
+ can handle multiple streams, but unless otherwise documented, each stream can only
355
+ have a single writer.
356
+
357
+ For example, to move event persistence off to a dedicated worker, the shared
358
+ configuration would include :
356
359
357
360
` ` ` yaml
358
361
instance_map:
@@ -370,8 +373,8 @@ streams and the endpoints associated with them:
370
373
371
374
# #### The `events` stream
372
375
373
- The `events` stream also experimentally supports having multiple writers, where
374
- work is sharded between them by room ID. Note that you *must* restart all worker
376
+ The `events` stream experimentally supports having multiple writers, where work
377
+ is sharded between them by room ID. Note that you *must* restart all worker
375
378
instances when adding or removing event persisters. An example `stream_writers`
376
379
configuration with multiple writers :
377
380
@@ -384,38 +387,38 @@ stream_writers:
384
387
385
388
# #### The `typing` stream
386
389
387
- The following endpoints should be routed directly to the workers configured as
388
- stream writers for the `typing` stream :
390
+ The following endpoints should be routed directly to the worker configured as
391
+ the stream writer for the `typing` stream :
389
392
390
393
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/typing
391
394
392
395
# #### The `to_device` stream
393
396
394
- The following endpoints should be routed directly to the workers configured as
395
- stream writers for the `to_device` stream :
397
+ The following endpoints should be routed directly to the worker configured as
398
+ the stream writer for the `to_device` stream :
396
399
397
400
^/_matrix/client/(api/v1|r0|v3|unstable)/sendToDevice/
398
401
399
402
# #### The `account_data` stream
400
403
401
- The following endpoints should be routed directly to the workers configured as
402
- stream writers for the `account_data` stream :
404
+ The following endpoints should be routed directly to the worker configured as
405
+ the stream writer for the `account_data` stream :
403
406
404
407
^/_matrix/client/(api/v1|r0|v3|unstable)/.*/tags
405
408
^/_matrix/client/(api/v1|r0|v3|unstable)/.*/account_data
406
409
407
410
# #### The `receipts` stream
408
411
409
- The following endpoints should be routed directly to the workers configured as
410
- stream writers for the `receipts` stream :
412
+ The following endpoints should be routed directly to the worker configured as
413
+ the stream writer for the `receipts` stream :
411
414
412
415
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/receipt
413
416
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/read_markers
414
417
415
418
# #### The `presence` stream
416
419
417
- The following endpoints should be routed directly to the workers configured as
418
- stream writers for the `presence` stream :
420
+ The following endpoints should be routed directly to the worker configured as
421
+ the stream writer for the `presence` stream :
419
422
420
423
^/_matrix/client/(api/v1|r0|v3|unstable)/presence/
421
424
0 commit comments