Git Product home page Git Product logo

clusterchatserver's Introduction

架构设计

开发环境

所用技术栈

  • Json序列化和反序列化
  • muduo网络库开发
  • Nginx的TCP负载均衡器配置
  • Redis缓存服务器编程实践
  • 基于发布-订阅的服务器中间件redis消息队列编程实践
  • MySQL数据库编程CMake构建编译环境

项目功能

  • 业务功能
    • 客户端新用户注册
    • 客户端用户登录
    • 添加好友
    • 添加群聊
    • 一对一好友聊天
    • 多对多群聊
  • 技术功能
    • 基于ORM框架**降低数据库模块与项目业务模块耦合度
    • 引入muduo网络库,借由回调函数解耦网络通信模块和项目业务模块耦合度
    • 引入数据库连接池(自制)提升服务器响应效率
    • 基于Redis发布-订阅实现跨服务器通信
    • 采用Nginx的TCP负载均衡功能实现集群部署

不足之处

  • 项目业务功能较为简单
  • 中间件Redis的发布-订阅功能较专业级消息队列MQ存在一定缺陷
  • 访问数据库效率方向还有可以提升的空间

clusterchatserver's People

Contributors

ge-ze 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.