Open line-o opened 9 years ago
Unsure if a eval statement is needed within the wrapper (like for the PHP hook). But that is somewhat dependent on the implementation on your side. Is it possible to store the source temporarily as file on the machine running the code? Then it would be nicer to just call the CLI with the temporary file as a parameter. Or is there a different reason for this construct?
@line-o -
You'll have to follow the same format as the other run-hook-*
binaries.
Feel free to look into the how the stack is spawning services
You'll see we rely a lot of STDIO and child process communication to maintain a bi-directional HTTP stream from the client to the microservice.
I'm open to suggestions if you have any ideas on improving this process. What we have now is actually working very well from a systems standpoint, so there isn't a rush to change anything major. Any changes made to the communication bridge will need be tested to ensure things like streaming multi-part form uploads and streaming responses are still working.
@line-o -
As for waiting for linux support...if you can find a place that will give you a mac os x server, we could simply call to that over HTTP?
No need to wait for linux?
Now we have Swift on Linux, this is possible now.
Try to look into how to add Swift support, but hit #180 while setup the env.
Whenever the swift runtime is available on linux. According to Apple's announcements this should be in 2015.