Code Monkey home page Code Monkey logo

gtrpc's Introduction

gtRPC

project 3 of GT course CS6210 ---- RPC-Based Proxy Server

I may put the following words in the report.

structure of the code

All code is contained in folder src

  • proxy.thrift : use thrift to generate proxy frame work
  • ProxyServer_client.cpp: the client code
  • ProxyServer_server.cpp: the server code
  • cache.h: define the cache policy class
  • lru.cpp: implement functions in cache.h to obtain LRU cache policy

So we only to implement the Cache class defined in cache.h to get different cache policies.

##work flow

####Xiong Ding:

  1. test the thrift "hello word" program
  2. write the proxy server/client program
  3. write the cache LRU policy
  4. Next => write the report and wait Yuebin Zhou to finish his part

####Yuebin Zhou

  1. write the other two policies
  2. write the measurement metrics (calculate performance)
  3. implement URL list for the client, implement different overload patterns.

after all is done, we do the experiments and finish the report.

##Useful links

http://wiki.apache.org/thrift/ThriftUsageC%2B%2B

http://www.thrift.pl/Thrift-tutorial-how-it-works.html

http://thrift-tutorial.readthedocs.org/en/latest/usage-example.html

build thrift from source file (linux)

I compile and install in my desktop. It requires boost library to support C++. I installed boost-1.57 in my home directory. Also I need to make sure that thrift can find the location of boost.

For example, my configure options:

./configure --prefix=/usr/local/home/xiong/apps/thrift 
JAVA_PREFIX=/usr/local/home/xiong/apps/thrift 
PY_PREFIX=/usr/local/home/xiong/apps/thrift 
PHP_PREFIX=/usr/local/home/xiong/apps/thrift 
--with-boost-libdir=/usr/local/home/xiong/apps/boost/lib 
--with-boost=/usr/local/home/xiong/apps/boost/

make

make install

After installation, add "thrift/include" folder to enviroment variable "C_INCLUDE_PATH", add "thrift/lib" folder to enviroment variable "LD_LIBRARY_PATH" and "LIBRARY_PATH".

gtrpc's People

Contributors

glacier88 avatar dingxiong 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.