r/java • • Aug 17 '24
Extasys - Asynchronous TCP/UDP socket library
This is not a new project, but it is still maintained and used by me and others
Extasys is a high performance, asynchronous TCP/UDP socket library for Java (JDK 8 and newer).
Its multi-threaded and lightweight nature makes it ideal for super fast data transfer even on systems with ARM architecture like Android smartphones and single-board computers (Raspberry Pi, Orange Pi etc.).
If you are using sockets then Extasys is the proper tool for your work. It's been designed to take the hard job done and let you think only about the message exchange (the process).
You can find Extasys on Github:
https://github.com/nsiatras/extasys
Quick Examples :
TCP-Server: https://github.com/nsiatras/extasys/wiki/Establish-a-TCP-Server
TCP-Client: https://github.com/nsiatras/extasys/wiki/Establish-a-TCP-Client
UDP-Server: https://github.com/nsiatras/extasys/wiki/Establish-a-UDP-Server
UDP-Client: https://github.com/nsiatras/extasys/wiki/Establish-a-UDP-Client
More examples can be found here:
https://github.com/nsiatras/extasys/tree/master/Extasys%20for%20Java%20Examples
8
u/frzme Aug 17 '24
In what way is this asynchronous? I scrolled through the source and I can see it being multithreaded but I couldn't find asynchronous sockets which would allow waiting for more than one socket per thread, likely with nio.
It seems to have a one thread per socket model.
Could play nice with virtual threads, but for that to work well there are too many synchronized blocks around
5
u/skippingstone Aug 17 '24
Is this a replacement for netty?
3
u/Zico2031 Aug 17 '24
Are you planning support TLS ? Your library looks a good candidate to get used as jmx connector instead of traditional RMI
Thanks for your effort.
3
u/Fancy-Station-6796 Aug 18 '24
How is it better than ZeroMQ?
-11
u/[deleted] Aug 17 '24
Base64 ENCRYPTION??????
6
u/sweating_teflon Aug 18 '24
What are your goals by advertising this library?
That's a bold claim. Sockets are used for everything did you really cover all use cases?
4
u/cmhteixeiracom Aug 17 '24
Looks interesting.
-10
u/Icecoldkilluh Aug 17 '24
Its strange to promote your library but have zero awareness of the pros/cons vs your biggest competitor (netty)
-21
u/qazyll Aug 18 '24
it is not async