Closed ghost closed 10 years ago
there is no websocket exmaple, but i' ll add as soon as possible,
the tcp example: you can see https://github.com/Terry-Mao/gopush-cluster-sdk
or ios example: https://github.com/roy5931/GoPushforIOS
gopush-cluster not support send message, if you want to implement a char room, you can write a http api for sending message then use gopush-cluster receive message. the sdk is a full example include get comet node/get offline message and comet protocol. btw, the wiki dir has many doc, you can have a look, we'll translate to English as soon as possible.
Thank you for reply! I've read the docs twice lol. But still, I am confused.
What I am going to do is like this (not chatroom):
Well it's pretty easy to implement a push server in one single machine. What gopush-cluster attracts me is the cluster :+1: That will make my service more scalable. By the way, our target clients may mostly use browser on PC but not mobile devices.
So I am not sure if gopush-cluster is suitable for it or not, still confusing :(
@pureveg
@pureveg i am so sorry the wiki is Chinese...
translating Englins..... if done, i'll leave you a message...
Never mind I can also read some Chinese :+1: And I also read it before I open an issue.
Originally I want to use the service provided by http://pubnub.com/ but it's kind of expensive lol. Would you mind having a look into this service? I am not sure if I can implement such service by simply using gopush-cluster or not.
And thank you for the image you uploaded. It's pretty clear to me :+1:
http://pubnub.com/ is similar to gopush-cluster
i'll write a blog about gopush-cluster performance data. in our test env(12GB, 12core) 25w messages per second(public message), 10w messages per second(private message)...
Yep this is why I am interested in gopush-cluster :-) Hope websocket can be implemented soon. Websocket may also improve the performance I think (at least in my service).
Is it also easy to scale, load balancing? Like, if one machine can not serve 500k per sec then we can simply add several machine and put it in the conf file and it's done. Right?
What's the url of your blog? I'll keep an eye on your post :)
fix it!!!!!
http://7255fc6c.ngrok.com/gopush-cluster/ seems incorrect. What did you fix?
javascript sdk : https://github.com/Lanfei/gopush-cluster-javascript-sdk
Oh it seems web socket is supported. This is exactly what I want. Thank you!
Just wondering how can I connect to the push-cluster using web socket or tcp since I can not find any sample code here.
Say, I am looking to implement a chatroom that users can pub/sub messages via web socket or tcp. How can I do this with the help of gopush-cluster? If I implement it on my own, the code should be like this:
I mean, what should I do in the client side to connect to the gopush-cluster and receive, send messages?