edgedb
edgedb copied to clipboard
Initial draft of wasm server integration
This is as simple as it can get:
- Has single version of extension without any configuration
- Relies on wasm server listening on
$runstate_dir/.s.wasm_ext
- Uses unix socket with one connection per request (similarly to SCGI)
- Uses Pythonic Pickle to serialize request/response
Technically it works, but doesn't make too much sense to integrate right now. Anyone having access to edgedb/edgedb-wasm repo (still private) can play with it though.
Can we add some basic tests here?
This is generally ready, but I'm not sure if we want to fix GC issue somewhere else.
This is generally ready, but I'm not sure if we want to fix GC issue somewhere else.
#3904 should've fixed most - if not all - of the GC issue here, so that we don't need to override StreamReaderProtocol
in this PR. I'm looking into the create_task()
s in uvloop.
Okay, removed that hack.