this server side dart language video gives you an overview of isolates and how it can be used to create a super fast dart web server. isolates allows you to offload cpu intensive code from the main thread in the event loop to be processed by background threads. in this video chris explains how event loops work both in dart server side and in flutter. chris explains the microtask queue and the event queue and how isolates help improve performance before backend and ui code. in addition chris shows you how to implement isolates in your dartlang code and how it can be used to improve web server performance or have butter smooth UI's.
chris also compares the performance of the low level dart web server to both fastify and shelf and finally using isolates to improve the performance of the dart web server both at a low-level and with shelf. this video should give you a good idea on how isolates work and how you can use them in your backend server side apps or in your front-end mobile apps.
00:00 - intro
01:20 - server side dart web server
03:15 - performance testing with wrk
04:20 - comparing dart with fastify
07:35 - observing cpu usage with dart web server
09:10 - dart is a single threaded event loop
15:40 - event loops and flutter
17:25 - using isolates with our dart web server
27:10 - performance testing our isolates
28:55 - building a web server with shelf
31:00 - performance testing shelf
31:50 - using isolates with shelf
33:40 - performance testing isolates with shelf
34:10 - conclusion
Ещё видео!