Code Monkey home page Code Monkey logo

chat's Introduction

简介

本项目是学习 恋恋风辰 教程。串联各种知识点。

本项目为C++全栈聊天项目实战,包含如下:

  1. PC端QT界面编程,
  2. asio异步服务器设计
  3. beast网络库搭建http网关
  4. nodejs搭建验证服务
  5. 各服务间用grpc通信,server和client用asio通信等,也包括用户信息的录入等。
  6. 实现跨平台设计,先设计windows的server,之后再考虑移植到Linux中。较为全面的展示 C++ 在实际项目中的应用。

架构设计

一个概要的结构设计如下图:

GateServer为网关服务,主要应对客户端的连接和注册请求,因为服务器是是分布式,所以GateServer收到用户连接请求后会查询状态服务选择一个负载较小的Server地址给客户端,客户端拿着这个地址直接和Server通信建立长连接。 当用户注册时会发送给GateServer, GateServer调用VarifyServer验证注册的合理性并发送验证码给客户端,客户端拿着这个验证码去GateServer注册即可。 StatusServer, ServerA, ServerB都可以直接访问Redis和Mysql服务。

chat's People

Contributors

baifengjiu avatar

Watchers

 avatar

Forkers

unknow-heros

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.