Code Monkey home page Code Monkey logo

proxycacheserver's Introduction

Overview: ProxyCacheServer is a high-performance proxy server with integrated caching, designed to optimize web requests by reducing latency and improving data retrieval efficiency. The server currently supports GET requests, parsing them using an existing library, and caches responses for faster subsequent access.

Features: 1.High Capacity: Supports up to 400 concurrent client requests. 2.Integrated Caching: Stores frequently accessed data to minimize redundant requests. 3.Error Handling: Sends appropriate HTTP error responses (e.g., 400, 403, 404, 500). 4.Thread Management: Efficiently handles multiple clients using threads and semaphores. 5.LRU Cache: Implements a Least Recently Used (LRU) cache replacement policy.

Configuration: Port Number: Default is 8080 (can be set via command line). Cache Size: Maximum cache size is 200MB, with a maximum element size of 10MB.

Usage:

  1. Compile the Code: gcc -o proxy_server proxy_server.c -lpthread
  2. Run the Server: ./proxy_server [port_number] NOTE : Replace [port_number] with your desired port number (default is 8080).

Note: Currently, only GET requests are supported. I'm working on other methods as well.

License: This project is licensed under the MIT License.

proxycacheserver's People

Contributors

madhav0711 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.