Dannark / BWO

An infinity procedural online game using Flutter with NodeJS and flames
https://borderless-world.herokuapp.com/
GNU General Public License v3.0
387 stars 43 forks source link

why use dart for server #4

Open diybl opened 4 years ago

diybl commented 4 years ago

i remember that the dart can run the server and then the code maybe Simplified

Dannark commented 4 years ago

Well, there are a couple of reasons for that. The main reason is because I was most comfortable with nodejs and I wanted to use some libraries that I already knew to get more experience and try different approaches with them. I actually did use the dart server in the very beginning but Node is just more popular and very easy to set up anywhere on the web.

As well, when we are talking about backend servers, it is supposed to handle any kind of applications on the word, not only one specific language, so the only reason I see it would worth switching the server would be for performance improvements. But I don't know Dart server strong enough to go for it. Is Dart any faster than NodeJs if yes I then would like to change it.

But that's my thoughts about it. Let me know what you think, I would like to hear a second opinion on that. 👍

diybl commented 4 years ago

dart server use dvm which is fast as jvm i recomand it ,because if server and client use the same language , it will be develop faster , client and server usually has the same logic code.

Dannark commented 4 years ago

Ok thanks, I will take a look at it. Something I would really like to change most is to make a server in UDP instead of TCP. Sockets are great but it really makes me feels we can still get it better somehow.

diybl commented 4 years ago

Ok thanks, I will take a look at it. Something I would really like to change most is to make a server in UDP instead of TCP. Sockets are great but it really makes me feels we can still get it better somehow.

udp usually as fight game eg: DNF, a common rpg mmo use tcp is enough eg: WOW