Git Product home page Git Product logo

go_pdmq's Introduction

PDMQ

由于最近在学习go语言,并且nsq是go语言编写的一个分布式消息队列中间件,用来处理每天数十亿级别的消息推送。
NSQ 具有分布式和去中心化拓扑结构,该结构具有无单点故障、故障容错、高可用性以及能够保证消息的可靠传递的特征,
是一个成熟的、已在大规模生成环境下应用的产品。

第一步:认识NSQ

image

第二步:PDMQD的基本功能实现

1.PDMQD 跟nsq 一致,是采用go语言进行编写,这样能够最大化契合nsq的代码开发模式
2.实现最基本的生产者与消费者的交互以及消息的投递
  - 具体是:pdmqd 实现 tcp ,http 两种协议的监听,
  - consumer保持与pdmqd的连接
  - 支持API 的消息投递
  - 支持多种配置加载 终端配置>默认配置文件配置
3.消息分发与nsq完全相同,分为topic->channel->consumer形式
4.发送的时所有消息使用统一的消息结构体(这与nsq 略有不同,并且消息体也不相同)

第三步:如何安装与使用

查看INSTALL

go_pdmq's People

Contributors

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