Skip to content

Instantly share code, notes, and snippets.

@oNddleo
Last active August 18, 2025 04:46
Show Gist options
  • Select an option

  • Save oNddleo/5f8bbd7cbf02ea58357f8412fd5f6dda to your computer and use it in GitHub Desktop.

Select an option

Save oNddleo/5f8bbd7cbf02ea58357f8412fd5f6dda to your computer and use it in GitHub Desktop.
+-------------+        +------------+        +--------------+
| Client Apps | <----> | WebSockets | -----> | Chat Service |
+-------------+        +------------+        +--------------+
                                                 |
                                                 v
                                         +----------------+
                                         | Message Service|
                                         +----------------+
                                                 |
                       +-------------------------+--------------------+
                       |                                              |
                       v                                              v
                +--------------+                               +-----------------+
                |    NATS      |<----------------------------->| Group Service   |
                +--------------+                               +-----------------+
                       |
                       v
          +-----------------------------+
          |  Databases/Persistence      |
          +-----------------------------+
                    +----------------------+
                    |        EQUIX         |
                    +----------------------+
                            ^    ^
           Authentication:  |    |  Authorization:
                  SAML      |    |  OIDC Token Exchange
                            |    |
                        +-------+--------+
                        |    Auth Server |
                        | (Authen+Authz) |
                        |                |
                        +-------+--------+
                                |
                  +-------------------------------+
                  |     Role & Permission Table    |
                  +-------------------------------+
                                ^
                                |
    +------------+     HTTPS    |
    |            | ---------->  |
    |  Reverse   |              |
    |  Proxy     |  -------+    |
    | (Traefik)  |         |    |
    +------------+         |    |
           ^               |    |
           |  HTTPS        |    |
    +-----------+          |    |
    |  Users &  |----------+    |
    |  Internet |               |
    +-----------+               v
                        +---------------------+
                        |      Gateway        |
                        +---------+-----------+
                                  |
        +-----------+-------------+---------+--------------+-----------+
        |           |             |         |              |           |
        v           v             v         v              v           v
+--------------+ +-----------------------+ +------------------+ +--------------------+ +-------------+
| Order Mgmt   | | Portfolio Profile Mgmt| | Account Mgmt     | | Portfolio Optimize | | Community   |
+--------------+ +-----------------------+ +------------------+ +--------------------+ +-------------+
        ^               ^             ^            ^                ^
        |_______________|_____________|____________|________________|
                       API calls (HTTPS, Token-based or RPC)
+--------------+    +----------------+   +------------------+   +--------------+
|  Web Client  |<-->|   API Gateway  |-->|  NestJS Servers  |-->|  Media Store |
+--------------+    +----------------+   +------------------+   +--------------+
                                               |      |         |        |
                                               v      v         v        v
                                          +----------+ +------------------+
                                          | Database | | Redis/Queue      |
                                          +----------+ +------------------+
                                               |              |
                                               v              v
                                        +---------------------------+
                                        | Notification & Messaging  |
                                        |    Services (WebSocket,   |
                                        |     Push, Email, SMS)     |
                                        +---------------------------+
+--------------+        +------------------+        +-----------------+
|   Web Client | <----> |  Next.js Server  | <----> |  Node.js API    |
+--------------+        +------------------+        +-----------------+
                                                      |        |      |
                                                      |        |      |
                                                      v        v      v
                                              +----------+ +---------+ +---------+
                                              |Python    | | Database| | Queue   |
                                              |Workers   | | (e.g.,  | |System   |
                                              |(Celery)  | |Postgres)| |(Redis)  |
                                              +----------+ +---------+ +---------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment