GithubHelp home page GithubHelp logo

rpc-based-proxy-server's Introduction

The server code was automatically generated from the thrift file(example_thrift_file.thrift) by using the command:

                            thrift --gen cpp example_thrift_file.thrift

The server code is there in a file called “Something_server.cpp” and the client code in a file called “Something_client.cpp”. All the server code as well as the caching code is in the same file. The cache replacement algorithms have been implemented as three separate functions in the same file: fifo(), MAXS() and random() respectively.

To run a particular algorithm, we comment out the function calls corresponding to the other two algorithms. Also, the cache size has been defined by the pre-processor directive

                            #define MAXSIZE 128*1024

and can be changed to increase or decrease the cache size.

  1. To build the code, from the gen-cpp folder, simply run:

                              make 
    

This should create the server and client executables.

  1. To start the server, run the command:

                             ./something_server
    
  2. To start the client, run the command:

                             ./something_client
    

The client read URLs from a file called “URLs.txt” line by line and then sends the requests one by one to the server. All changes in workloads need to be made to this file.

rpc-based-proxy-server's People

Contributors

nikmmy avatar

Watchers

 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.