Coder Social home page Coder Social logo

proxy-cluster's Introduction

proxy-cluster

本项目计划提供一系列工具,以方便地构建一个代理服务器集群。

目的

  1. 用户同时连接到代理集群的多个可用服务器

    • 高可用,避免个别服务器宕机的影响

    • 解决单台服务器上行带宽小的问题

  2. 对于同一个用户,出口的服务器相对固定

    • 出口 IP 频繁变化会给用户使用带来许多问题

架构

目前考虑将集群设计为去中心化的,于是计划提供的只有一般的服务器端和客户端,不设集群的主节点。

服务器端

  • 维护集群可用节点列表

  • 接收客户端请求

  • 将客户端请求转发至对应出口节点

  • 作为出口节点处理请求

  • 负载均衡

客户端

  • 连接任一节点后即可获取可用节点列表

  • 向集群发出请求

  • 从集群接收请求响应

关注点

  • 安全性

  • 负载均衡实现方式

    • 一个 TCP 连接只由一个集群节点负责响应 (较简单,但无法在单个 TCP 连接上叠加带宽)

    • 一个 TCP 连接的响应可接受自多个集群节点 (可以在单个 TCP 连接上叠加带宽,可参考 KCP?)

proxy-cluster's People

Contributors

sticnarf avatar

Watchers

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