2 ms·
I disagree that dealing with files is a core concept in almost every asyncio application. I would say that the most common instances of file IO is at the start
by orf 6y ago
I disagree that dealing with files is a core concept in almost every asyncio application. I would say that the most common instances of file IO is at the start of an asyncio process (parsing config files) rather than in the “hot” asynchronous part.
Some problems might require extensive file IO, sure. But most don’t, and something like reading from a database or making a HTTP request is orders of magnitude more common.
- earthboundkid 6y agoYou’re just writing off being able to write an HTTP file server in Python? That’s crazy.
- falcor84 6y agoThe parent never said that. You can of course write a file server, they just said it's not as common, and I agree. From personal experience, even for serving files, I find myself relying a lot more on web services rather than a local disk.
- aprdm 6y agoWhat about something like sqlite?