设计消息队列存储消息数据的 MySQL 表格
消息入队列 MySQL 表:tf_produce

消息出队列 MySQL 表:tf_consume

以上两个 MySQL 数据表的索引都是 hash_id 属性,原因是 hash 做索引查询比较快
表格说明:group 属性是队列分组,topic_name 属性是队列名称,msg 是放入队列的消息,version 是用来标识消息队列版本,use_count 记录消费失败次数,is_used 记录是否已消费。
消息入队列 MySQL 表:tf_produce
消息出队列 MySQL 表:tf_consume
以上两个 MySQL 数据表的索引都是 hash_id 属性,原因是 hash 做索引查询比较快
表格说明:group 属性是队列分组,topic_name 属性是队列名称,msg 是放入队列的消息,version 是用来标识消息队列版本,use_count 记录消费失败次数,is_used 记录是否已消费。
评论