This has become increasingly active since the JDK1.4 has NIO, and it has also won more developers ' support for Java. Java network programming requires some basic knowledge and skills: Socket programming, blocking/non-blocking communication, creating HTTP server and client programs, datagram communication, object serialization and deserialization, Java Reflection Mechanism, RMI framework, JDBC API, JavaMail API, MVC design Patterns, secure network communications, CORBA and Web services, and so on.
The
Author only collates some of the following mainstream frameworks: mina provides a very convenient framework for developing high-performance and high-availability network applications, support for TCP/UDP application development based on Java NIO technology, serial communication programs STRONG>GRIZZLY&NBSP The design is quite different than the general NIO framework, with the main difference being that both read and write are blocking and use temporary selector The ; thread model is highly configurable, but it is not surprising that, according to the author, it is best to handle read and write performance with the thread pool while running a selector main thread processing accept. Nettty provides a set of event-based APIs to develop high-performance, manageable TCP/IP server or client applications. For high performance network applications, Netty provides many basic features, such as readiness selection, thread pooling, write buffer DOS prevention, reusable buffering, and so on. The NiO framework is built on top of the Java NiO Library, encapsulating most of the complexities of raw nio. The NIO framework makes it easy to develop secure, High-performance Java Web applications. quickserver A free open source Java library for quick creation of robust multithreaded, multiple client TCP server applications. With Quickserver, users can only centralize the application's logic/protocol. xsocket A lightweight, NIO-based server framework for developing high-performance, scalable, multi-threaded servers. The framework encapsulates threading, asynchronous read/write, and so on. ioserver high-performance, easy to expand the network framework, compared to the Apache Mina more lightweight, more easily read source code, the source code has a large number of detailed Chinese annotation, is a very good learning framework, The framework is mainly to solve the Chinese market mobile phone online games on the server side of the programming.
Ioserver Build Simple Server routines (more detailed routines can download routine packages, or go to Wiki view) the server receives an integer from the client and adds one back to the client Xnio A Java package that helps you simplify the development of NIO applications Provides a unique and Easy-to-use API for combining blocking and blocking operations, even on the same channel, allowing you to leverage simple and low-latency blocking I/O, while also gaining the benefits of non-blocking I/O Also introduces a powerful, callback-based interface that simplifies the blocking application based on traditional state machine and enables a perfect balance between throughput (throughput) and latency between your applications.
In addition, middleware platform ice may also be used in this scenario.