RPC Thrift(一)

RPC Thrift(一)

层次结构

  1. server:单线程的,多线程等

  2. processor

  3. protocol:序列化反序列化方式 json,compact等

  4. transport:网络传输方式 raw TCP,http等

server层

server有多种类型,可以满足不同的场景和业务需求:

TSimpleServer,TNonblockingServer,THsHaServer,TThreadedSelectorServer,TThreadPoolServer

processor

protocal

transport

你可能感兴趣的:(RPC Thrift(一))