This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ Redis, which relays replication commands between processes. This can give a
35
35
significant cpu saving on the main process and will be a prerequisite for
36
36
upcoming performance improvements.
37
37
38
+ (See the [ Architectural diagram] ( #architectural-diagram ) section at the end for
39
+ a visualisation of what this looks like)
40
+
38
41
39
42
## Setting up workers
40
43
@@ -393,3 +396,40 @@ are ones that do specific processing unrelated to requests, e.g. the `pusher`
393
396
that handles sending out push notifications for new events. The intention is for
394
397
all these to be folded into the `generic_worker` app and to use config to define
395
398
which processes handle the various proccessing such as push notifications.
399
+
400
+
401
+ # # Architectural diagram
402
+
403
+ The following shows an example setup using Redis and a reverse proxy :
404
+
405
+ ` ` `
406
+ Clients & Federation
407
+ |
408
+ v
409
+ +-----------+
410
+ | |
411
+ | Reverse |
412
+ | Proxy |
413
+ | |
414
+ +-----------+
415
+ | | |
416
+ | | | HTTP requests
417
+ +-------------------+ | +-----------+
418
+ | +---+ |
419
+ | | |
420
+ v v v
421
+ +--------------+ +--------------+ +--------------+ +--------------+
422
+ | Main | | Generic | | Generic | | Event |
423
+ | Process | | Worker 1 | | Worker 2 | | Persister |
424
+ +--------------+ +--------------+ +--------------+ +--------------+
425
+ ^ ^ | ^ | | ^ | ^ ^
426
+ | | | | | | | | | |
427
+ | | | | | HTTP | | | | |
428
+ | +----------+<--|---|---------+ | | | |
429
+ | | +-------------|-->+----------+ |
430
+ | | | |
431
+ | | | |
432
+ v v v v
433
+ ====================================================================
434
+ Redis pub/sub channel
435
+ ` ` `
You can’t perform that action at this time.
0 commit comments