Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why use dart for server #4

Open
diybl opened this issue Oct 12, 2020 · 4 comments
Open

why use dart for server #4

diybl opened this issue Oct 12, 2020 · 4 comments

Comments

@diybl
Copy link

diybl commented Oct 12, 2020

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

@Dannark
Copy link
Owner

Dannark commented Oct 12, 2020

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
Copy link
Author

diybl commented Oct 12, 2020

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
Copy link
Owner

Dannark commented Oct 12, 2020

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
Copy link
Author

diybl commented Oct 13, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants