All Projects → langwolf → netty-thrift

langwolf / netty-thrift

Licence: Apache-2.0 license
Thrift on Netty

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to netty-thrift

thrift-parser
A Thrift Parser built in TypeScript that generates a TypeScript AST that retains the Thrift grammar
Stars: ✭ 84 (+265.22%)
Mutual labels:  thrift
thrift-typescript
Generate TypeScript from Thrift IDL files
Stars: ✭ 129 (+460.87%)
Mutual labels:  thrift
energy-management-sys communication-sub-sys
基于DLT645-2007/DLT645-1997协议的智能电表数据采集系统。借助于高性能的网络编程框架Netty开发,系统可以和智能电表交互并把设备传上来的数据实时写进数据库(目前只支持MySQL)。
Stars: ✭ 27 (+17.39%)
Mutual labels:  netty4
parquet-flinktacular
How to use Parquet in Flink
Stars: ✭ 29 (+26.09%)
Mutual labels:  thrift
nomadgen
Configuration util in python syntax for Hashicorp's Nomad
Stars: ✭ 19 (-17.39%)
Mutual labels:  thrift
LINE-Source
Line Application Source
Stars: ✭ 43 (+86.96%)
Mutual labels:  thrift
Hibari
Hibari is a production-ready, distributed, ordered key-value, big data store. Hibari uses chain replication for strong consistency, high-availability, and durability. Hibari has excellent performance especially for read and large value operations.
Stars: ✭ 253 (+1000%)
Mutual labels:  thrift
itstack-naive-chat-server
💞 《服务端》| 服务端同样使用Netty4.x作为socket的通信框架,同时在服务端使用Layui作为管理后台的页面,并且我们的服务端采用偏向于DDD领域驱动设计的方式与Netty集合,以此来达到我们的框架结构整洁干净易于扩展。同时我们的通信协议也是在服务端进行定义的,并对外提供可引入的Jar包,这样来保证客户端与服务端共同协议下进行通信。
Stars: ✭ 21 (-8.7%)
Mutual labels:  netty4
DovakinMQ
MQTT broker for java based on Netty
Stars: ✭ 14 (-39.13%)
Mutual labels:  netty4
mqttserver
基于netty实现mqtt协议 服务器端开发
Stars: ✭ 36 (+56.52%)
Mutual labels:  netty4
concrete-python
Python modules and scripts for working with Concrete, a data serialization format for NLP
Stars: ✭ 19 (-17.39%)
Mutual labels:  thrift
bloomery
Web UI for Impala
Stars: ✭ 15 (-34.78%)
Mutual labels:  thrift
Thrift.jl
Thrift for Julia
Stars: ✭ 25 (+8.7%)
Mutual labels:  thrift
ThriftDemo PHP CPP
Demo for Thrift RPC framework. PHP client call CPP server.
Stars: ✭ 29 (+26.09%)
Mutual labels:  thrift
hive-jdbc-driver
An alternative to the "hive standalone" jar for connecting Java applications to Apache Hive via JDBC
Stars: ✭ 31 (+34.78%)
Mutual labels:  thrift
raster
A micro server framework, support coroutine, and parallel-computing, used for building flatbuffers/thrift/protobuf/http protocol service.
Stars: ✭ 19 (-17.39%)
Mutual labels:  thrift
Xproxy
reverse proxy implement in java
Stars: ✭ 20 (-13.04%)
Mutual labels:  netty4
greentunnel4jvm
Green Tunnel Alternative for JVM Languages
Stars: ✭ 15 (-34.78%)
Mutual labels:  netty4
Rmessage
Reactive Programming Multi-protocol push service
Stars: ✭ 23 (+0%)
Mutual labels:  netty4
netty-transport-purejavacomm
A netty serial pipeline using JNA and PureJavaComm
Stars: ✭ 30 (+30.43%)
Mutual labels:  netty4

Netty-Thrift

Thrift on Netty

  • jdk1.8, netty4.1.20.Final, thrift0.9.3
  • based on nettythrift and nifty
  • add Multi-service mode

Example

Map<String, TBaseProcessor<?>> map = Maps.newHashMap();
map.put("test", new TCalculator.Processor<TCalculator.Iface>(new CalcIfaceImpl()));	
map.put("test2", new TCalculator.Processor<TCalculator.Iface>(new CalcIfaceImpl()));
TNettyThriftServer.Args nettyArg = new TNettyThriftServer.Args(8090);
nettyArg.setMaxReadBuffer(1024 * 100);
nettyArg.setMap(map);
final TServer nettyServer = new TNettyThriftServer(nettyArg);
  new Thread(()->{
	  nettyServer.serve();
	}).start();

OR

Map<String, TBaseProcessor<?>> map = Maps.newHashMap();
map.put("test", new TCalculator.Processor<TCalculator.Iface>(new CalcIfaceImpl()));	
map.put("test2", new TCalculator.Processor<TCalculator.Iface>(new CalcIfaceImpl()));
ThriftServerDef[] serverDefs = ThriftServerDef.newBuilder().listen(port)
  .withProcessors(map)
  .using(Executors.newCachedThreadPool())
  .builds();
final MultiServerBootstrap server = new MultiServerBootstrap(serverDefs, 8089, TimeUnit.SECONDS.toMillis(15));
server.start();	
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].