当前位置:网站首页>About pushing user messages
About pushing user messages
2022-06-09 06:45:00 【Tangbohu points mosquito repellent incense DW】
Come across an interview question : You need to push an activity message to all users , such as 618 Great promotion , Each user receives the message and displays it , Generally, the bell in the upper right corner displays unread messages .
In this scenario, you usually choose to use kafka To push messages , If there are tens of millions of users , Then push a message for each user , Or a message , Bind a relational table for each user , After user reading , Message prompt message , In this case , Pushing a message will generate tens of millions of data , Is there a better way .
You can use kafka Of offset thought , Each user saves one offset, adopt offset To consume and read messages , such kafka There is only one message , But every user can read , And each user can use their own offset To determine whether it has been consumed .
边栏推荐
- 跳槽,从一个坑,跳进另一个坑
- zgc 与g1对比 及 color points含义
- MongoDB出现Error parsing command line: unrecognised option ‘--fork‘ 的解决方法
- Quanzhi v3s learning record (12) use of rtl8723bs
- UML系列文章(25)高级行为---状态图
- Raspberry pie installation opencv - pro test available
- Chapter_02 如何扫描查看图像,查询表以及Opencv中的时间度量
- How matlab writes continuous data with title to mat file
- CodeBlocks project window management
- Chapter_05 使用Opencv相加(融合)两个图像
猜你喜欢

UML系列文章(21)高级行为---事件和信号

MongoDB出现Error parsing command line: unrecognised option ‘--fork‘ 的解决方法

若依 思维导图

Chapter_ 06 changing the contrast and brightness of an image

Chapter_ 03 mask operation of matrix

Camtasia 2022发布更新功能介绍

mysql 8.0.28版本安装配置方法图文教程

UML系列文章(27)体系结构建模---部署

Solution: riscv nucleus elf gcc: command not found/ Makefile:78: recipe for target ‘rv32ui-p-simple‘ faile

穆格伺服阀如何存放?简单的几个方法
随机推荐
BSP tailoring (6) Attachment III - rootfs menuconfig configuration description
zgc的Allocate stall原理
sparksql处理数据倾斜问题常见思路
Solution: riscv nucleus elf gcc: command not found/ Makefile:78: recipe for target ‘rv32ui-p-simple‘ faile
Mendeley and other document management tools to insert references in word
MySQL 5.7 安装教程(全步骤、保姆级教程)
mysql 8.0.28版本安装配置方法图文教程
MySQL联合查询(多表查询)
For an experienced software engineer, what would be a preferred new programming language to learn?
Chapter_ 03 mask operation of matrix
UML series articles (19) basic behavior - interaction diagram
Quit smoking log_ 02 (day_06)
top查看全部进程
BSP tailoring of Quanzhi platform (7) rootfs tailoring -- tailoring of user tools and Libraries & rootfs compression
UML系列文章(20)基本行为---活动图
你真的搞明白了 Dart 中两个对象相等的逻辑了吗?
Intranet control: nodemcu (esp8266) and Arduino serial port communication
量化交易之MySql篇 - mysql数据库 事件
Common ideas of sparksql dealing with data skew
Ping: xxx: unknown name or service reason analysis