You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Investigate how commands can be run concurrently in order to increase bot throughout.
The text was updated successfully, but these errors were encountered:
avislash
changed the title
For scalability add queueing mechanism that will allow each command to run in parallel and not block
For scalability look into adding queueing mechanism that will allow each command to run in parallel and not block
Jun 8, 2021
After examination, the current largest bottleneck in the system is waiting for the Block Confirmation. The busy wait for the block confirmation blocks other code from running.
A work around has been idientified that can allow the code to be parallelezed is to leverage asyncio and the future libraries to thread the confirmation block and do an asynchronous sleep. This will allow other parts of the code to run in parallel while the network confirms the block.
Using this approach has led to approximately a 6x performance gain when trying to do multiple transactions at a time.
Investigate how commands can be run concurrently in order to increase bot throughout.
The text was updated successfully, but these errors were encountered: