How To Build A TCP Server With Actors In Golang

preview_player
Показать описание

In this Golang tutorial, I will show you an example on how you can create a TCP server with Actors in Golang

#golang
Рекомендации по теме
Комментарии
Автор

I don't just like your content, I love it!!!

MarekCzechyra
Автор

at 17:33, after the slice of buf in msg, you must copy the data into a new slice before sending it out to another owner, otherwise you will still hit some race. Both slice headers are sharing the same backing array.

mhcbon
Автор

Hey Anthony,
Scaling a web server to a million, I am skeptical about it.
1. The standard linux host can hold on only so much of connections at once
2. Especially, in context of websockets, this is challenging
3. The actor paradigm works good as long as it is in the memory, but once you go to the network and handle stuff, it no longer maintains that. In real life use cases, you have to serialize stuff and all those server shenanigans

Whatever may be the scenario, I think I am so new to this actor model. Please make a video explaining the stuff going on in this model
Love from India ❤️

mdrashidhussain
Автор

Anthony what do you think about gorilla? Will you continue to use it? I just want to make a project with a WebSocket, but can't decide what library to use for it... for me gorilla is

folium
Автор

I'm currently making a game using gorilla/websockets. Could i theoretically replace the websocket part with this actor model?

dandogamer
Автор

Is actor like an erlangVM's process?

abdullahbiyik
Автор

Hi Anthony, ... I wonder about your accent, where are you from?

EmielvanGoor
Автор

what happens if s.conn.write fails ? Will c.Send block until session.receive has handled the message ? Or is it buffered ? if then what is the size of the retention buffer ? In main the shutdown sequence seems unsafe. It, probably, waits for the send to be processed, but i dont see it blocking until the messages were effectively handled, there is a SUSPICIOUS time.sleep instead ; )

mhcbon