Fastsocket Study Notes ~rpc ideas, object-oriented flexibility

Source: Internet
Author: User

First of all, thank the man from Sina, it developed this fastsocket is very good, not to mention the performance, say its use and philosophy is very let people praise, from the macroscopic view, it is more like a remote process called RPC, the server exposes some commands for the client to call, very flexible, and its concept, it will be the socket programming abstraction, so that developers do not care about the underlying communication mechanism, but only concerned about the application layer of development, such as the development of a user module, you do not care about how the socket link declaration, do not care about performance, you just develop and user-related content.

Take a look, I drew it myself, hehe

Take a look at Fastsocket's own example.

Server-side configuration is very flexible, no hard-coded way, direct configuration file to take care of

<configSections> <section name="Socketserver"type="Sodao.FastSocket.Server.Config.SocketServerConfig, Fastsocket.server"/> </configSections> <socketServer> <servers> <server name="binary"Port="8401"socketbuffersize="8192"messagebuffersize="8192"maxmessagesize="102400"MaxConnections="20000"servicetype="Server.myservice, Server"Protocol="asyncbinary"/> </servers> </socketServer>

Supports a variety of delivery standards, or protocols called

Asyncbinaryprotocol: Asynchronous Binary mode

Commandlineprotocol: command-line mode

Thriftprotocol:thrift mode

Well, this section is mainly about the concept of knowledge, including fastsocket design ideas, thank you for reading!

Fastsocket Study Notes ~rpc ideas, object-oriented flexibility

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.