Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung | |||
|
implementierung:interface [2019/05/03 15:14] fqs gelöscht |
— (aktuell) | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== 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]] | ||
| - | |||
| - | ==== Request-Server ==== | ||
| - | |||
| - | Nimmt RPC-Calls zur Abfrage von Daten und Auslösen von Aktionen von Clients entgegen. | ||
| - | |||
| - | ==== Event-Server ==== | ||
| - | |||
| - | Verarbeitet Events aus der Datenbank und schickt Push-Nachrichten an Clients. | ||
| - | |||
| - | |||
| - | |||
| - | |||