Skip to content

Commit 76e13f8

Browse files
committed
Add native Sliding Sync (MSC3575) endpoint to worker routing
The /_matrix/client/unstable/org.matrix.simplified_msc3575/sync endpoint can be handled by generic workers, but Synapse's workers.md documentation doesn't mention it. The code confirms it's worker-compatible: - SlidingSyncRestServlet is registered via sync.register_servlets: https://github.com/element-hq/synapse/blob/0dfcffab0f/synapse/rest/client/sync.py#L1128-L1131 - sync.register_servlets is NOT in the worker exclusion list: https://github.com/element-hq/synapse/blob/0dfcffab0f/synapse/rest/__init__.py#L180-L194 - GenericWorkerStore includes SlidingSyncStore: https://github.com/element-hq/synapse/blob/0dfcffab0f/synapse/app/generic_worker.py#L168 This adds the endpoint to both: - matrix_synapse_workers_sync_worker_client_server_endpoints (for specialized sync workers with sticky routing) - matrix_synapse_workers_generic_worker_endpoints (documenting generic worker capability)
1 parent aeea016 commit 76e13f8

File tree

1 file changed

+4
-0
lines changed
  • roles/custom/matrix-synapse/vars

1 file changed

+4
-0
lines changed

roles/custom/matrix-synapse/vars/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ matrix_synapse_workers_room_worker_federation_endpoints:
2626
# Sync workers handle /sync and the (now deprecated) related endpoints
2727
matrix_synapse_workers_sync_worker_client_server_endpoints:
2828
- ^/_matrix/client/(api/v1|r0|v3|unstable)/(sync|events|initialSync|rooms/[^/]+/initialSync)$
29+
# Native Sliding Sync (MSC3575) - supported on generic workers since Synapse 1.114
30+
- ^/_matrix/client/unstable/org.matrix.simplified_msc3575/sync$
2931

3032
# Client reader workers handle generic client-server endpoints that don't contain a roomid or sync
3133
matrix_synapse_workers_client_reader_client_server_endpoints:
@@ -149,6 +151,8 @@ matrix_synapse_workers_generic_worker_endpoints:
149151
- ^/_matrix/client/(api/v1|r0|v3)/events$
150152
- ^/_matrix/client/(api/v1|r0|v3)/initialSync$
151153
- ^/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync$
154+
# Native Sliding Sync (MSC3575) - supported since Synapse 1.114
155+
- ^/_matrix/client/unstable/org.matrix.simplified_msc3575/sync$
152156

153157
# Federation requests
154158
- ^/_matrix/federation/v1/event/

0 commit comments

Comments
 (0)