←back to thread

53 points heavensteeth | 1 comments | | HN request time: 0s | source
Show context
miggol ◴[] No.43652150[source]
Similar protocols like ASGI for Python are still ubiquitous. I assume because they offer separation of concerns and as a result good performance.

You would think the separation argument would still hold true for compiled languages, even if performance is no longer as relevant.

replies(1): >>43652273 #
zokier ◴[] No.43652273[source]
I don't think interfaces like ASGI/WSGI etc are that similar to FastCGI. The crucial difference is that FastCGI is a protocol, something you need to do IO for and crucially something you need to parse. In contrast ASGI etc by virtue of being in-process and specific to the language can provide an true API. In many ways FastCGI is closer to HTTP than ASGI.
replies(2): >>43652708 #>>43654852 #
1. whalesalad ◴[] No.43654852[source]
WSGI and FastCGI are not mutually exclusive. They talk to each other. They can both be part of the same stack.