3 ms·
> async/await with async resource management (which C# doesn't have yet) gives it a real edge for server development An edge over what? You're still limited to
by jodah 11y ago
> async/await with async resource management (which C# doesn't have yet) gives it a real edge for server development
An edge over what? You're still limited to a single thread via the GIL. Until that problem is solved, Python is certainly not the best bet (all else aside) for server development.
- cben 11y agoNode.js is also single thread and has been doing fine on servers. Do you really need to share mutable state between threads in your server? If yes, what's your story when you'll need to scale to multiple servers? If not because you can keep shared mutable state in a separate service (DB or similar), you can deal with one-machine scaling very similarly to scaling across machines - just start/fork a process per CPU. You get simplicity, avoid the whole thread-safety can of bugs, and all the administration benefits of stateless servers.