GithubHelp home page GithubHelp logo

jljlpch / bidithrift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joelpm/bidithrift

0.0 2.0 0.0 146 KB

An example of how to use Thrift for bi-directional async RPC

Home Page: http://www.joelpm.com/2009/04/03/thrift-bidirectional-async-rpc.html

Java 98.52% Thrift 1.48%

bidithrift's Introduction

Building this project requires Maven 2.x. Additionally, it also requires that
you have installed a version of libthrift.jar in your local maven repo. This
can be accomplished by downloading one of the instant releases, building it,
and then running the following command:

  mvn install:install-file -Dfile=lib/java/libthrift.jar -DgroupId=org.apache -DartifactId=thrift -Dversion=1.0 -Dpackaging=jar

With these steps accomplished, you can build the project by running:

  mvn clean package

From within the current directory.

This will build a server executable and a client executable. To start the server do:

  java -jar Server/target/BidiMessages.Server-0.9-jar-with-dependencies.jar 10101

Which will start the server on port 10101.

To start a client do:

  java -jar Client/target/BidiMessages.Client-0.9-jar-with-dependencies.jar client1 localhost 10101

This will start a client with the name client1 that connects to the server running on localhost at port 10101.

You can start as many clients as you'd like (just make sure you give them different names so you can
tell who sent what message).

Currently the client just sends 100 numbered messages and then stops.

bidithrift's People

Contributors

joelpm avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.