2X + Clustering

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

rav
Posts: 82
Joined: 06 Dec 2010, 13:14

Postby rav » 10 Jan 2011, 08:30

Lapo wrote:Ah... that is something we don't discuss in the board yet, sorry.
Maybe you can drop us an email directly and we'll give you some more details.


Sorry Lapo, but nothing on my e-mail
drh_qtm
Posts: 40
Joined: 15 Apr 2010, 09:07

Postby drh_qtm » 20 Jan 2011, 14:26

I can see that SFS2 has an Object called DataStore which has a method postOffice and I can also see that SmartFoxServer has methods such as isClustered and setClustered but I can't find anything in the documentation about this. Is this something that isn't yet fully implemented in sfs or am I just not looking in the right place?
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 20 Jan 2011, 15:15

It's for future implementations :)
Lapo
--
gotoAndPlay()
...addicted to flash games
set_a
Posts: 16
Joined: 23 Feb 2012, 13:24

Re: 2X + Clustering

Postby set_a » 07 Mar 2012, 13:18

Hi

Since clustering with Terracotta is not possible http://www.smartfoxserver.com/support/faq#BT06

I decided to do next: several sfs2x servers and cluster database.
But I have a problem, I need to send messages to users located on other sfs2x servers . How should I do it?

Thanks
drh_qtm
Posts: 40
Joined: 15 Apr 2010, 09:07

Re: 2X + Clustering

Postby drh_qtm » 07 Mar 2012, 13:25

check out reddis pubsub. (http://redis.io/topics/pubsub) we were using terracotta but now use this. Works great.
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: 2X + Clustering

Postby Lapo » 07 Mar 2012, 14:21

Could you elaborate a bit more on how this works with SFS2X?
Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
set_a
Posts: 16
Joined: 23 Feb 2012, 13:24

Re: 2X + Clustering

Postby set_a » 22 Mar 2012, 07:52

Hi,

We have two physical servers with Smartfox running on them. How could we establish connection between these servers in order to send(exchange) user messages with paramters between two servers? Is it possible at all for users on different physical servers to send messages to each other? Please, also add code examples if possible.

Thanks in advance
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: 2X + Clustering

Postby Lapo » 22 Mar 2012, 09:16

There can be several ideas that can be implemented in your extension code:
1- using regular socket connections between the two servers
2- using Java RMI, http://docs.oracle.com/javase/tutorial/rmi/
2- using JMS (Java Messaging Services), http://java.sun.com/developer/technical ... merce/jms/
3- for the most adventurous a remote Actor-based library such as Akka
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Stevenor and 100 guests