WebSocket Server Cshbbrain

Source: Internet
Author: User
Tags node server

Transferred from: Http://www.oschina.net/p/cshbbrain

Baby Fish (Cshbbrain) is a simple, lightweight, high-performance WebSocket server from China. Support server cluster, can meet the large concurrent volume of high capacity distributed system development. If you need to develop a WebSocket server with cluster functionality, baby fish (cshbbrain) may be a great choice for you. In the baby fish (cshbbrain) You can set up a server as a pure cluster Management Server, or 3 types of pure Business node server and cluster management business node server. Suitable for the construction of data push (stock quotes), games, chat/im and other server programs.

Baby Fish (Cshbbrain) has the NIO version and the AIO version of 2 versions, the Baby fish (cshbbrain) 4.0.0 prior to the version based on NIO, from the 4.0.0 version based on AIO. Based on Java implementation, the full use of Java multithreading technology, thread pool, nio or AIO, buffer pool and other technologies. Project from the technical framework of the use of layered thinking, divided into network transport layer, the Protocol resolution layer and the business layer of 3 layers.

Network transport layer encapsulates the network connection request establishment, the data reads and writes listens, provides the service for the protocol resolution layer, the Protocol resolution layer is responsible for the specific protocol resolution, if you are interested, you can also write your own protocol codec in the protocol layer to build the server based on your own protocol The business layer does specific business processing on top of the protocol resolution layer, and this part of the job is to develop the business code that you want to write for the specific service.

November 5, 2012 China's first open source websocket server baby fish (Cshbbrainaio) is officially released. AIO-based open source websocket server baby fish (cshbbrain) still uses a tiered architecture, the protocol layer and the business layer are identical to the NIO-based open source websocket server baby fish (cshbbrain), using AIO-based baby fish The way the server is developed is exactly the same way as the NIO-based baby fish development. Thanks to a thorough layered architecture, all baby fish have developed a new version based on AIO technology in a very short period of time.

If your layering is also the same for baby fish, even the server you developed on the NIO-based baby fish does not have to modify any code just to replace the code on the network transport layer of the AIO-based baby fish everything is OK! Yes, your server becomes an AIO-based server. AIO-based servers have all the features that are owned by all NIO-based baby fish servers, but you must replace the JDK with JDK7. Simple, simple is the Treasure Fish Server pursuit of the concept.

If you feel that Mina,netty is too complex, bulky, and difficult to get started with, Cshbbrain may be the right choice for you.

The foreground JS frame cshbbrainjs with the baby fish server was released in 2012.12.03. Project Address: Http://www.oschina.net/p/cshbbrainjs

Internet services based on Cshbbrain and cshbbrainjs "Digital quick Look":

Digital Quick Look (http://211.100.41.186:8989/mcms/ws/index_ws_tom.html), if you like the digital quick look product please go to www.qook.com.cn download iOS or Android installer. Due to the relationship between IP, the provided instance masks some of the functionality, confuses the foreground code, and only supports the high-version Chrome browser. Let's take a few photos below:

WebSocket Server Cshbbrain

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.