push-msg-web

this is push-msg-web parent project

License

License

GroupId

GroupId

com.github.zipu888
ArtifactId

ArtifactId

push-web-msg-parent
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

push-msg-web
this is push-msg-web parent project
Project URL

Project URL

http://github.com/zipu888/push-msg-web
Source Code Management

Source Code Management

https://github.com/zipu888/push-msg-web.git

Download push-web-msg-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.zipu888/push-web-msg-parent/ -->
<dependency>
    <groupId>com.github.zipu888</groupId>
    <artifactId>push-web-msg-parent</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.zipu888/push-web-msg-parent/
implementation 'com.github.zipu888:push-web-msg-parent:1.0'
// https://jarcasting.com/artifacts/com.github.zipu888/push-web-msg-parent/
implementation ("com.github.zipu888:push-web-msg-parent:1.0")
'com.github.zipu888:push-web-msg-parent:jar:1.0'
<dependency org="com.github.zipu888" name="push-web-msg-parent" rev="1.0">
  <artifact name="push-web-msg-parent" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.zipu888', module='push-web-msg-parent', version='1.0')
)
libraryDependencies += "com.github.zipu888" % "push-web-msg-parent" % "1.0"
[com.github.zipu888/push-web-msg-parent "1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

push-msg-web

这个项目为了解决项目中 web应用的实时消息推送而创建

使用了 cometd spring kafka redis

  • cometd 用来推送
  • spring 用来集成
  • kafka 用来接受业务系统需要推送的消息
  • redis 用来绑定cometd用户和业务用户的关系 用来推送给特定的人
  • 利用cometd的channel 来实现批量推送
程序逻辑

利用kafka接受需要推送的消息,通过cometd来推送出去,cometd推送支持long poling 和 websocket方式

######注意

本工程只测试 long poling方式 cometd框架是算学算用,欢迎来喷 项目用的一些jar无法开源出来,你可以把redis和kafka换成自己的实现

Test

Versions

Version
1.0