asynkron / protoactor-go

Proto Actor - Ultra fast distributed actors for Go, C# and Java/Kotlin
http://proto.actor
Apache License 2.0
5.03k stars 522 forks source link

WebSocket Gateway #890

Open wk1210 opened 1 year ago

wk1210 commented 1 year ago

In a proto.actor cluster, if I want to implement a gateway layer for WebSocket connections to enable clients to initiate requests to the cluster and allow the cluster to push messages to clients, are there any good approaches for this?

cupen commented 12 months ago

Just send the PID of the websocket connection holder to cluster.
image

edit

wk1210 commented 12 months ago

@cupen Thank you for your response, your flowchart is very clear, do you have some example code?

cupen commented 12 months ago

@cupen Thank you for your response, your flowchart is very clear, do you have some example code?

Sorry, I don't. But you are welcome to sponsor the project protoactor-go. Just believe in the power of money, it can do anything for you. :smile:

rogeralsing commented 11 months ago

Hi @wk1210 are you aiming to do OCPP for EV-Charging?

Let's talk in that case. I've built 3 Ocpp servers so far using Proto.Actor .NET :-)

wk1210 commented 11 months ago

Hi @wk1210 are you aiming to do OCPP for EV-Charging?

Let's talk in that case. I've built 3 Ocpp servers so far using Proto.Actor .NET :-)

I'm not, I have gaming industry requirements.

cupen commented 10 months ago

Intresting. What gaming industry requirements? Some thing like the cloud service built on orleans for Halo4?

wk1210 commented 10 months ago

Intresting. What gaming industry requirements? Some thing like cloud service built on orleans for Halo4?

Poker Game. haha.

rogeralsing commented 10 months ago

This demo does this, but using signal-r https://github.com/asynkron/realtimemap-go

MaximTkachenko commented 1 month ago

@rogeralsing is any of these ocppservers open sourced?