====== Architektur ====== {{ :implementierung:client-server-architektur.png?nolink&800 |}} ===== Protokoll ===== [[https://wamp-proto.org/|WAMP - Web Application Messaging Protocol]] -> routed Remote Procedure Calls and Publish & Subscribe over WebSockets ===== Client ===== * Angular * WAMP: [[https://github.com/voryx/angular-wamp|AngularWAMP]] / [[https://github.com/crossbario/autobahn-js|AutobahnJS]] TODO: Alternativen? ===== WAMP-Router ===== [[https://crossbar.io/|Crossbar.io]] -> [[https://crossbar.io/docs/Authentication/|Authentification]] TODO: Alternativen? ===== Server ===== asyncio mit [[https://github.com/magicstack/uvloop|uvloop]] * SQL: [[https://github.com/MagicStack/asyncpg|asyncpg]] * Multiprocessing: [[https://github.com/jreese/aiomultiprocess|aiomultiprocess]] * WAMP: [[https://github.com/crossbario/autobahn-python|autobahn-python]] [[https://realpython.com/async-io-python/|Async IO in Python: A Complete Walkthrough]] ==== Auth-Server ==== Verbindet sich mit den WAMP-Routern der einzelnen Instanzen und liest Auth-Daten aus einer globalen Datenbank. ==== Request-Server ==== Verarbeitet RPC-Calls von Clients zur Abfrage von Daten und zum Auslösen von Aktionen. ==== Event-Server ==== Verarbeitet Events aus der Datenbank und schickt Push-Nachrichten an Clients.