Closed joaomlneto closed 4 months ago
@egeberkaygulcan I think this is good to merge. It has lots of 🍝code that does the basic networking stuff, held together by a "Network Manager":
[10000,10000+N)
: currently TCP sockets only; needs to support HTTP/gRPC, but we need to talk :)Messages are not yet sent back to the replicas.
I've poked the process manager code a bit and may have induced pesky merge conflicts: needed to add a few params to pass to the workers (their ID, interceptor ports, num replicas).
This is the hello world for the listeners.
Includes a TCP Interceptor and an HTTP Interceptor for now.
The requests are then queued, but not a lot beyond that has been done.
Some changes required on your end:
/Users/berkay/
)Some manual changes required between intercepting TCP payloads and HTTP payloads.
Intercepting HTTP
hello.py
: comment lines 35-50, and uncomment from line 51.network/manager.go
line 29: instantiate aHTTPInterceptor
:nm.Interceptors[i] = new(HTTPInterceptor)
Intercepting using Sockets
hello.py
: uncomment lines 35-50, and comment from line 51.network/manager.go
line 29: instantiate aTCPInterceptor
:nm.Interceptors[i] = new(TCPInterceptor)