I recently finished coding a multi-threaded async tcp chat server using tokio and I'm pretty satisfied with it. As a learning exercise I wanted to reimplement it using actors, since I've heard nothing but great things about them (specifically referring to Erlang and Akka), but no matter what actor framework I look into (and Rust has dozens of them) I can't seem to find any examples or tutorials on how to code a simple multi-threaded tcp chat server using any of them. Even after spending the past few hours reading through actix's getting started guide, API docs, and reviewing the examples in their repo's examples directory, I still can't figure out how I would code the tcp chat server using actix. Please help. Thanks.
1 Like
I like @alice's simple approach of just using Tokio in the actor model:
Actors with Tokio
There's an example too:
2 Likes
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.