From 2ab69e081674596352f3fd4a2af874fad9abfdcf Mon Sep 17 00:00:00 2001 From: erikjohnston Date: Wed, 13 Dec 2023 15:42:43 +0000 Subject: deploy: 8613f7693ea284a023dc625c9a35b9ff482f5fd0 --- develop/development/synapse_architecture/streams.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'develop/development/synapse_architecture/streams.html') diff --git a/develop/development/synapse_architecture/streams.html b/develop/development/synapse_architecture/streams.html index 46475698b5..485b50dbab 100644 --- a/develop/development/synapse_architecture/streams.html +++ b/develop/development/synapse_architecture/streams.html @@ -124,10 +124,10 @@ - + - + @@ -160,7 +160,7 @@

Streams

-

Synapse has a concept of "streams", which are roughly described in id_generators.py. +

Synapse has a concept of "streams", which are roughly described in id_generators.py. Generally speaking, streams are a series of notifications that something in Synapse's database has changed that the application might need to respond to. For example:

-

See synapse.replication.tcp.streams for the full list of streams.

+

See synapse.replication.tcp.streams for the full list of streams.

It is very helpful to understand the streams mechanism when working on any part of Synapse that needs to respond to changes—especially if those changes are made by different workers. -To that end, let's describe streams formally, paraphrasing from the docstring of AbstractStreamIdGenerator.

+To that end, let's describe streams formally, paraphrasing from the docstring of AbstractStreamIdGenerator.

Definition

A stream is an append-only log T1, T2, ..., Tn, ... of facts1 which grows over time. Only "writers" can add facts to a stream, and there may be multiple writers.

-- cgit 1.5.1