Nova/docs/architecture.md

43 lines
3.9 KiB
Markdown
Raw Normal View History

2023-01-14 14:45:48 +01:00
# Nova architecture
The nova architecture is composed of multiple components. Each of them is horizontally scale-able.
```
┌──────────────────┐
│ │
┌─────────────┤ Discord API ├──────────────┐
│ │ │ │
│ └────────┬─────────┘ │
│ │ │
│ │ │
│ │ │
┌─────────┴────────┐ ┌────────┴─────────┐ ┌─────────┴────────┐
│ │ │ │ │ │
│ Rest Proxy │ │ Gateway client │ │ Webhook Server │
│ │ │ │ │ │
└─────────┬──┬─────┘ └────────┬─────────┘ └─────────┬────────┘
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ └───────┐ │ │
┌────────────────┐ ┌────────┴───────┐ │ ┌───────┴────────┐ │
│ │ │ │ │ │ ├───────────────┘
│ Redis ├───┤ Ratelimit │ │ │ Nats broker │
│ │ │ │ │ │ ├──────────────────┐
└────────────────┘ └────────────────┘ │ └───────┬────────┘ │
│ │ │
│ │ │
│ ┌───────┴────────┐ ┌──────┴─────┐
│ │ │ │ │
│ │ Cache manager ├───────────┤ User │
│ │ │ │ │
│ └────────────────┘ └──────┬─────┘
└───────────────────────────────────────┘
```
## Rest Proxy