TheRealRedRiver559 / Asyncio-IRC

TCP chat server I'm working on.
MIT License
8 stars 2 forks source link

Ensure all functions and processes are Async #16

Open TheRealRedRiver559 opened 10 months ago

TheRealRedRiver559 commented 10 months ago

At the moment certain files are mostly async, while others have it, but under large stress loads this fails. Im looking Into queues for all processes such as messages, logs and general server operations to prevent it from being overloaded wirh data.

TheRealRedRiver559 commented 9 months ago

I will push the update later. However, there are still some things that are not async such as the database and messaging system. At the moment the messages are on a first come first server basis. That's fine, but the messages are just pushed to the Asyncio loop buffer instead of being stored. This isnt that big of an issue at the moment, but when testing with hundreds of clients and sending thousands of messages, the buffer seems to max out, and new messages freeze the entire server!