
Tokio Ecosystem with Alice Ryhl
Rustacean Station
00:00
Using Actics in a Game Server?
The main idea of using actas in asyncrous applications is that typic mike, one of the main mistakes i see when people try to write game servere or chat service is that they put allof their connections into a big hash map with use ideas and put a mutex around it. The central idea is really give exclusive ownership of your sockets to tasks, and then actors is just the best way intto talk to such a task. And then the article has a bunch of ideas for how do you do this without running into lifetime problems, and how do you write a nice api? I introduce a concept called a handle, which is like a struct that is a wrapper on the
Transcript
Play full episode