veesonsan / thrift-zookeeper Goto Github PK
View Code? Open in Web Editor NEWThis project forked from eirslett/thrift-zookeeper
How to use Thrift with Zookeeper - using Finagle and Java
This project forked from eirslett/thrift-zookeeper
How to use Thrift with Zookeeper - using Finagle and Java
=== Thrift-Zookeeper example === This example used Finagle, a library developed at Twitter. It contains: - api: A Thrift API that defines a FooService - commons-thrift: Common logic used for service discovery - server: A Thrift server providing the FooService - client: A consumer of the service To run: - mvn clean install - Run a local ZooKeeper instance - Start as many instances of MyAppThriftServer as you want - Run the client (MyAppThriftClient) Example output: Online servers: [/0:0:0:0:0:0:0:0:3705, /0:0:0:0:0:0:0:0:5071, /0:0:0:0:0:0:0:0:2381] Got hey, this is a response from port=3705 Got hey, this is a response from port=3705 Got hey, this is a response from port=5071 Got hey, this is a response from port=5071 Got hey, this is a response from port=2381 Got hey, this is a response from port=3705 ... Monitoring - Start a server instance - Check out http://localhost:XXXX/stats.txt (XXXX is the port number for Ostrich admin) What are the good parts? - Service discovery - Finagle handles load balancing, so it connects to one of the servers ZooKeeper has registered. - It also handles connection pooling, retries, timeouts, statistics, backpressure - It can be used to create Scala-native Thrift clients/servers - It's written to be asynchronous - No thrift binary required for building - Throw in 10 lines of code and there's monitoring, with Ostrich: https://github.com/twitter/ostrich - Throw in 10 lines of code and there's distributed tracing, with Zipkin: - https://github.com/twitter/zipkin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.