In the best case possible, you don’t use concurrency at all, because it makes things complicated. But if you really really need it, it can definitely help to speedup your code. Normally the tasks during code requests are handled simultaneously, but with concurrency tasks start, run and complete interleaved.This way your CPU processing time is decreased, sometimes by half. The more requests you handle at once the more benefit you’ll get with concurrency.
After explaining the foundations of concurrency and why to use it, Aitor showed us the benefits during some live coding. He showed the difference in CPU time between synchronous, threading and asyncio code requests.
When you race a car, you want to know exactly what’s going on in your engine. That’s why connecting your engine with a dashboard using an ECU can give you real-time data. The Honda Engine is connected with an LCD dashboard using a RaspberryPI. Through a websocket the Python Back-end is then connected to a Vanilla JS Front-end.
Pablo showed us the basic hardware and software architecture of this project. After that he also told more about the reason why he started this project and both challenges and the benefits of working on this.
After this successful first webinar we will for sure give some more webinars soon. We will keep you up to date through our Meet-up pages. We have one for Barcelona and one for the Netherlands, considering we will be meeting in real life some day soon.
Join our meet-up now:
We hope to see you soon!
This blog was written by
Apr 29, 2021