Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Best - and currently active - networking lib?  (Read 3630 times)
0 Members and 1 Guest are viewing this topic.
Offline mudlee

Senior Newbie


Medals: 1
Exp: 5 years



« Posted 2017-04-30 15:33:49 »

Hi guys.

I'm about to extend my small engine with networking. It will be used in a FPS game, so I've chosen UDP over IP.
Before I jumped in, I've done some research and found that the common recommended lib for that is Kryonet, which is not active for a year now, so I think I'll skip it.

Is there an existing - and active - lib that is commonly used or I have to implement my own? My main goal is not to create a game - it's only a side goal -, but learn more about game developing and Java. My bets are either Netty.io or MQTT with for eg. Paho client.

Any suggestions? - either a lib or anything.

Thank you!
Offline Riven
Administrator

« JGO Overlord »


Medals: 1324
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2017-04-30 16:06:37 »

Before I jumped in, I've done some research and found that the common recommended lib for that is Kryonet, which is not active for a year now, so I think I'll skip it.
If it aint broke, don't fix it. KryoNet is well tested, broadly used. Surely it's good enough.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline mudlee

Senior Newbie


Medals: 1
Exp: 5 years



« Reply #2 - Posted 2017-04-30 17:43:30 »

Understood, but there are lots off issues reported, not even responded. Would you use it for your future projects?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Spasi
« Reply #3 - Posted 2017-04-30 20:08:44 »

Aeron for IPC and server/server communication, Netty for client/server communication. Also, Vert.x if you're looking for a higher level solution (based on Netty).

Aeron is designed for extremely low latency and destroys every other library in that metric. Many frameworks have started adopting it as their backend. Random examples: Akka Arterty, Onyx, Deeplearning4j. It is highly tunable and has a simple and very focused API. But being a pure transport layer, it doesn't provide any higher level features. Yet. There are plans for more features (by the same creators), either built-in or in new libraries that work closely with Aeron. The next Aeron release is getting persistence and there's Aeron#211 that will make it great for games. Aeron has native support for SBE, but you can use any serialization framework that works on NIO buffers.
Offline mudlee

Senior Newbie


Medals: 1
Exp: 5 years



« Reply #4 - Posted 2017-05-01 06:33:17 »

Hm... thanks Spasi!

Neve heard of Aeron, will check it out. I thought Vert.x can be used for building rest API like jersey, now have to look at it more deeper.
Offline dime26

JGO Ninja


Medals: 60
Projects: 7
Exp: 12 years


Should traffic wardens be armed?


« Reply #5 - Posted 2017-05-02 09:23:24 »

Before I jumped in, I've done some research and found that the common recommended lib for that is Kryonet, which is not active for a year now, so I think I'll skip it.
If it aint broke, don't fix it. KryoNet is well tested, broadly used. Surely it's good enough.

I used KryoNet and was so simple to use, would use this again.
Offline Roquen

JGO Kernel


Medals: 516



« Reply #6 - Posted 2017-05-02 12:23:07 »

Aeron is designed for extremely low latency and destroys every other library in that metric.
It's too bad Martin Thompson stopped writing blog entries.  Still some great stuff there:  http://mechanical-sympathy.blogspot.fr/
Offline mudlee

Senior Newbie


Medals: 1
Exp: 5 years



« Reply #7 - Posted 2017-05-02 13:49:06 »

Finally I chose vertx, seems easy and fast Smiley
Pages: [1]
  ignore  |  Print  
 
 

 
Ecumene (108 views)
2017-09-30 02:57:34

theagentd (135 views)
2017-09-26 18:23:31

cybrmynd (245 views)
2017-08-02 12:28:51

cybrmynd (240 views)
2017-08-02 12:19:43

cybrmynd (238 views)
2017-08-02 12:18:09

Sralse (252 views)
2017-07-25 17:13:48

Archive (864 views)
2017-04-27 17:45:51

buddyBro (1007 views)
2017-04-05 03:38:00

CopyableCougar4 (1568 views)
2017-03-24 15:39:42

theagentd (1373 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!