Giter Site home page Giter Site logo

drive's Introduction

云端硬盘

提供Google Drive的基本功能, 并做一些扩展.

功能

  • 文件和目录管理
  • 分享
  • 回收站
  • 容量限制
  • 搜索(TODO)
  • 共享频道(TODO)
  • 管理员接口(TODO)

部署

服务部署: Docker Compose.

$ ./build.sh # 构建脚本

服务

服务 功能
User 用户管理
Drive 命名空间、容量管理
Channel 发送信息、发送文件
Storage 存储节点
Mysql 数据库
Redis 缓存、消息队列
Web 客户端

项目结构

/backend:
  /common:
    /auth: authentication
    /decorator: handler decorators
  /pkg:
    /events: shared event definition
    /types: shared request and response definition
    /errors: error definition
  /service:
    /adapters: interface implementation
    /domain: domain object
    /main: main function
    /ports: http and rpc handler
    /remote: remote service interface
    /repository: repository interface
    /service: application service
    /usecases: use case and event handler
/frontend: web client
/test: performance test

数据一致性

最终一致性: 保证消息不丢失, 至少被消费一次.

兜底措施: 增加定时任务(TODO).

可用性

云存储(TODO), 服务限流(TODO), 自动重启.

扩展性

云存储(TODO).

性能

压力测试, 索引(TODO), 数据库缓存(TODO), 文件缓存(TODO).

drive's People

Contributors

axli-personal avatar

Stargazers

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