NTX-McGill / NeuroTechX-McGill-2021

Other
16 stars 5 forks source link

Software (Backend): Asynchronous writing of the data #98

Open mlej8 opened 2 years ago

mlej8 commented 2 years ago

Currently, the backend is doing a synchronous write for the collected data (e.g. the frontend is blocked until the backend is done writing BCI data). This slows down the collection process as the frontend needs to wait for the backend to be done writing before going on to the next collection. We can asynchronously write the data in the backend either using Celery Task Queue or asyncio. Need to investigate which solution would fit best in this scenario.

mlej8 commented 2 years ago

On pause for now (low priority as we've reduced the collection period)