Giter Site home page Giter Site logo

cache_proxy's Introduction

erss-hwk2-aw343-wl177

This project is for ECE-568 Homework2 For this assignment you will be writing an http proxy โ€“ a server whose job it is to forward requests to the origin server on behalf of the client. Your proxy will cache responses, and, when appropriate, respond with the cached copy of a resource rather than re-fetching it.

Getting Started

These instructions will get you a basic idea of how to run

Run the Cache-Proxy

  1. git clone https://gitlab.oit.duke.edu/wl177/erss-hwk2-aw343-wl177.git
  2. cd erss-hw2-aw343-wl177
  3. sudo docker-compose up
  4. use your browser(Expected Firefox) to check
  5. exam the /var/log/erss/proxy.log file

Summary

For Details, please checkout our Requirement Spreadsheet

Proxy

  1. Support GET
  2. Support POST
  3. Support CONNECT

Cache

  1. Cache appropriate responses
  2. Follow the rules of expiration time
  3. Follow the rules of re-validation (e.g. no-cache)
  4. Good Cache Maintainance (e.g. Size, LRU Evict)

System

  1. Multithread to handle a request
  2. Synchronization for our caches
  3. A Deamon log file to record required information
  4. Good C++ OO Design
  5. Exception Guarantee
  6. Docker

Design

Proxy System Design

Cache Validate Procedure

Reference

Authors

  • Wending Lin (NetID: wl177)
  • Anqi Wang (NetID: aw343)

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.