3 ms·
What are the factors that made this a hard problem? Isn't having 1,000,000 open TCP connections kind of similar to having a 1,000,000 row key-value database? As
by etaioinshrdlu 5y ago
What are the factors that made this a hard problem? Isn't having 1,000,000 open TCP connections kind of similar to having a 1,000,000 row key-value database? As long as it fits in RAM it doesn't seem too terrible.
You could even do the TCP protocol in userspace and literally use a key-value database to store all state, I think.
- EdSchouten 5y agoThe problem with TCP is usually that you also have send buffers, of data that the client hasn’t acked, and receive buffers of data that the user space process hasn’t read yet. That state is a lot larger than just a tuple stored in a database.