Why do people prefer java?

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

Moderators: Lapo, Bax

CecilFinch
Posts: 1
Joined: 25 Mar 2022, 11:02

Why do people prefer java?

Postby CecilFinch » 21 Aug 2022, 13:55

Just curious, why did you choose Java for the serverside API? What makes other serverside APIs in more performant languages like C+/Rust/C# go stand out? Game servers, in particular, require high performance and low memory usage. And do you intend to add other serverside APIs in the future, as other languages gain popularity?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Why do people prefer java?

Postby Lapo » 22 Aug 2022, 07:35

Hi,
Just curious, why did you choose Java for the serverside API?

SmartFoxServer is a Java application so it comes pretty natural to have a Java server side API :)
It also supports Javascript and Python 2.x on the server side, although mostly for testing and prototyping. Both scripting languages are faster to experiment with but their scalability is not good enough for high traffic applications.

What makes other serverside APIs in more performant languages like C+/Rust/C#

This seems pretty arbitrary. C# and Java are very similar in performance.
In any case we have battle tested SFS2X with hundreds of thousands of clients on a single machine, and if there's one thing that is not missing is performance and/or scalability.

Adding support for a popular language such as C# would also be cool but given the platform is entirely developed in Java there is no efficient way to do it. Bridging technologies exist but they require all kinds of compromises and additional complexity that doesn't look very attractive.

At the moment we don't have any plans to support other languages on the server side.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 44 guests