Skip to content

Commit

Permalink
Merge pull request #52 from linagora/graph
Browse files Browse the repository at this point in the history
Add arch graph
  • Loading branch information
guimard authored Jun 12, 2024
2 parents aff26bc + 4daae88 commit 900d679
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ REST API Endpoints documentation is available on https://linagora.github.io/ToM-
[Matrix specification](https://spec.matrix.org/latest/server-server-api/#server-discovery)
* [@twake/retry-promise](packages/retry-promise): simple module extending javascript Promise with retry strategy

## Target architecture

![target architecture](./docs/arch.png)

## Twake-Chat docker

This repository provides a docker image. Here are the environment variables:
Expand Down
54 changes: 54 additions & 0 deletions docs/arch.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
digraph {
nodesep=1
subgraph cluster_external {
style=dotted
label=External
fontcolor=olivedrab3
"External Twake-Chat" [color=olivedrab3]
"External Matrix" [color=olivedrab3]
"Client" [color=green]
}
subgraph cluster_frontends {
style=invisible
shape=doubleoctagon
margin=20
label=frontends
color=gray50
fontcolor=gray50
"SSO" [color=blue,shape=box,group=frontend]
"Synapse" [color=blue,fontcolor=black,shape=box]
"Tom Server" [color=blue,fontcolor=black,shape=box]
}
subgraph cluster_db {
bgcolor="#eeeeff"
style=dashed
label=DB
fontcolor=blue
"Filesystem" [color=blue,fontcolor=blue,shape=cylinder,group=db]
"Postgres" [color=blue,fontcolor=blue,shape=cylinder,group=db]
"Redis" [color=blue,fontcolor=blue,shape=cylinder,group=db]
"LDAP" [color=blue,fontcolor=blue,shape=cylinder,group=db]
}
subgraph cluster_fede {
style=dotted
color=gray50
fontcolor=gray50
label=Common
"Federation Server" [color=red,shape=box,group=frontend]
}
"Client" -> "SSO" [color=red,fontcolor=red]
"Client" -> "Synapse" [color=red,fontcolor=red,label=Chat,penwidth=3]
"Client" -> "Tom Server" [color=red,fontcolor=red,label=Search,penwidth=3]
"Client" -> "Federation Server" [color=red,fontcolor=red,label=Search]
"Tom Server" -> "Postgres" [color=blue,label="Synapse + own DB",fontcolor=blue,penwidth=2]
"Tom Server" -> "LDAP" [color=blue,fontcolor=blue,label="Get user data"]
"Tom Server" -> "Redis" [color=blue,fontcolor=blue,label="Cache user data"]
"Tom Server" -> "Federation Server" [constraint=false,color=coral3,fontcolor=coral3,label="Push hashes",style=dashed]
"Tom Server" -> "Synapse" [constraint=false,color=coral3,fontcolor=red,style=dashed]
"External Matrix" -> "Synapse" [color=olivedrab3,fontcolor=olivedrab3,label=Federation]
"External Twake-Chat" -> "Synapse" [color=olivedrab3,fontcolor=olivedrab3,label=Federation]
"External Twake-Chat" -> "Federation Server" [constraint=false,color=olivedrab3,fontcolor=olivedrab3,label="Push hashes",style=dashed]
"Synapse" -> "Postgres" [color=blue,fontcolor=blue,penwidth=2]
"Synapse" -> "Filesystem" [color=blue,label="medias",fontcolor=blue,penwidth=2]
"Synapse" -> "SSO" [constraint=false,color=coral3,fontcolor=coral3,label="Validate SSO token",style=dashed]
}
Binary file added docs/arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"scripts": {
"build": "npm run softClean && lerna run build",
"clean": "rimraf packages/*/dist packages/*/coverage ./node_modules/.cache/nx packages/*/example/*.js*",
"doc": "node docs/swagger.cjs",
"doc": "npm run doc:swagger && npm run doc:arch",
"doc:swagger": "node docs/swagger.cjs",
"doc:arch": "dot -Tpng -o docs/arch.png docs/arch.dot",
"format:check": "prettier --check .",
"format:check-diff": "prettier --check $(git diff $(git rev-parse --abbrev-ref --symbolic-full-name @{u}) --name-status|grep -E '^M|A'|cut -f2)",
"format:fix": "prettier --write .",
Expand Down

0 comments on commit 900d679

Please sign in to comment.