From f12cd0cea3f2fb97f72367fd37125aa1103cd671 Mon Sep 17 00:00:00 2001 From: "Johan B.W. de Vries" Date: Mon, 10 Apr 2023 14:59:43 +0200 Subject: [PATCH] Idea --- ARCHITECTURE.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index cdb5941..bb3984f 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -4,3 +4,20 @@ Worker (minion) API +Find a way to send typed data between instances + - As long as we match the types, we can copy the data + +```py +from platform.http import SimpleRequest + +#class SimpleRequest: +# method: bytes +# domain: bytes +# path: bytes +# query: bytes +# body: bytes + +@exported +def handle_message(namespace: bytes, topic: bytes, kind: bytes, body: bytes) -> None: + SimpleRequest(b'GET', b'www.google.com', b'some/path', b'query=value', b'').send() +```