3 ms·
Wait, so which is better? Stateful or stateless? How do you decide? Very new to these APIs and their usages.
by abhishekjha 3y ago
Wait, so which is better? Stateful or stateless? How do you decide?
Very new to these APIs and their usages.
- kqr 3y agoStateless is simpler to implement and easier to scale across multiple nodes, but comes with additional overhead. When polling the kernel for sockets, the overhead was a bigger cost than implementation complexity and horizontal scaling. (Implementation complexity is still a problem – see the discussions regarding the quality of epoll; and horizontal scaling is just not something desktop kernels do.)