Coder Social home page Coder Social logo

ethz-asl's Introduction

Advanced Systems Lab (ETH) - Submitted on Dec 2017


Architecture of ASL

Architectural overview of system

The source code are inside asl/src directory. Run a single command ant inside asl directory to compile the source code. The jar file will be available inside asl/dist directory.

There are four source files inside the asl/src directory:

  • mcRequest.java: This class represents a memcache request which holds the socket channel from where request came and all timestamps used for instrumentation purpose, including the set of functions that were used to read/write the values to variable.
  • netThread.java: This class is responsible mainly for five top-level functions such as listening for new connections, reading the request sent by client, constructing an object for class named 'mcRequest.java', putting that object into the request queue and creating worker threads.
  • RunMW.java: This is the basic file provided by course assistants, which is reponsible to parse the arguments passed to middleware. This file has been further tweaked to catch kill command and to write the the recorded response time of each request to a log file named 'HistResponseTime.log'.
  • workerThread.java: This is the class representation of worker thread, while is responsible for most of the work in middleware such as parsing and processing the request, starting the logger, etc.

Note: Each of the source files has inline comments which describes the file structure, parameters, functions in more detail.

ethz-asl's People

Contributors

xceptioncode avatar

Watchers

James Cloos 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.