当前位置:网站首页>Major optimization of openim - Message loading on demand, consistent cache, uniapp Publishing
Major optimization of openim - Message loading on demand, consistent cache, uniapp Publishing
2022-07-23 20:41:00 【Hua Weiyun】
Introduction to new functions
(1) The server adds consistency cache (dtm:https://www.dtm.pub/), Optimize db Read and write performance ;
(2) For group read diffusion Group , Sync the latest when logging in 100 Bar message , Historical messages are loaded on demand ;
(3) When applying to join the Group , The group leader or administrator can see the way to join the group and who invites to join the Group ;
(4) The dissolution of , No more messages can be sent ;
(5) Friend notes can be deleted , Restore the original name after deletion ;
(6) Group owners and administrators can see the way group members enter the Group : Scan code into group , Who invited to join the Group , Search into groups ;
(7) Group owners and administrators set group member permissions : Is it allowed to view the information of other group members ; Whether to allow adding group members and friends ;
Technical friends should be familiar with read-write diffusion , Whether it's information flow 、 Forum 、 mail , Or private chat 、 Group chat 、 notice , Can use read-write diffusion . This article does not explain the technical details ,OpenIM The read diffusion based on push-pull combination mainly solves the redundant storage of messages in the group chat mode , Message real time , New users cannot view new messages after joining the Group , Super large group, etc .
Andrews experience :https://www.pgyer.com/OpenIM
Group chat and reading spread - Load on demand
(1) Specify the workgroup when creating , This group uses the read diffusion model , Each group has its own seq, Group members share this seq, It can greatly reduce the redundancy of group messages , And improve the real-time performance of messages .
(2) The message on-demand loading mechanism paves the way , For the scenario of not logging in for a long time or reloading after uninstallation , Load the latest by default 100 Bar message , For historical messages , If the local db non-existent , Pull from the server .
(3) New users can view historical messages when joining the Group , Add options later , Give developers more options .

uniapp edition demo Release
uniapp, long-awaited ,demo The published , There may be some flaws , Please forgive me a lot .
Please go to github Download the use :https://github.com/OpenIMSDK/Open-IM-Uniapp-Demo
Project results
From the server to the client SDK Open source instant messaging (IM) Overall solution , Can easily replace third parties IM The cloud service , And can be highly customized and redeveloped according to business needs , Create a chat 、 social contact 、 Office function app.OpenIM Continue to lead open source IM field , With the strong support of developers , at present github star Keep breaking through . More and more developers put OpenIM Applied in Social , Collaborative office . In the process of operation, some of the code has also been exposed and repaired bug, Due to the wide range of use scenarios ,OpenIM More and more robust , The value of open source is also highlighted . Especially for the government system , Open source products have more advantages of access conditions .“ Open source ” Its value lies in breaking the monopoly of resources , Let developers You can control yourself .“ Open source ” The value of is to improve the quality of software , Optimizing system architecture .“ Open source ” Its value lies in enriching cultural connotation , Co build engineer culture .

Open source is more than just open source . As open source IM The leader ,OpenIM Open source has several purposes :(1)IM Core data should be in the hands of operators (2)IM Wide demand , Many people use it for free , And find problems (3) Let more developers participate in the project , especially IM There are many demands . In the open source community , Every project can be opened pr,pr The function will allow every developer to modify the code , But you need the merge code of the project owner . The collective power is the greatest , Fully reflect the value of open source .OpenIM Community operation is deficient , In the future, we plan to live broadcast and explain the technical architecture , Let community developers deeply participate in the development .
github Address :https://github.com/OpenIMSDK/Open-IM-Server
Developer center :https://doc.rentsoft.cn/#/
Our team
OpenIM By IM Technical experts build open source instant messaging components , at present github The community is active ,star Nearly 10000 , It's way ahead of the League , developer 7000 people ,OpenM Strive for open source IM project No1, Create open source IM The first community . Support Android、iOS Native development , Support Flutter、uni-app Cross end development , Support for applets 、React All mainstream web Front end technology framework , PC Support Electron. It is mainly used in government affairs , social contact ,web3 scene , Everything is controllable , Give Way OpenIM Go deep into all industries . From the internal meaning of open source , These five dimensions are needed : transparency ; Collaboration ; Continuous release ; Elite system ; Community operations ,OpenIM In these five aspects, we still need to make continuous efforts , Stabilize ecological construction , To consolidate OpenIM influence . The value of open source is open use , There is no limit to the space for imagination and development , Efficient use of . Each developer's imagination and starting point for products and technologies are different , This creates a most basic form into a hundred flowers in full bloom , The effect of competition .
边栏推荐
- 【Kernel】驱动开发学习之Platform平台总线模型
- 数组——977. 有序数组的平方
- 从ACL 2022 Onsite经历看NLP热点
- Tropomi (sentinel 5p) data introduction and download method
- What if there is no word document in win11? There is no word document solution tutorial in win11
- win7-vs2012下安装.net frame work 的过程图文详解
- MongoDB-查询语句中$exists以及结合$ne、$nin、$nor、$not使用介绍
- shell命令及运行原理
- OpenLayers官方实例全集
- Himawari-8 data introduction and download method
猜你喜欢

Himawari-8 数据介绍及下载方法

视觉slam学习|基础篇01

第3章业务功能开发(创建线索)

After the input error of next numerical data type () occurs, it can still be input normally next time

如何合理地估算线程池大小

Interpretation of Flink catalog

深度学习-NLP经典论文、课程、论文等资源整理分享

使用TinkerPop框架对GDB增删改查

Today's sleep quality record 81 points

Go to the square for dinner
随机推荐
shell脚本中$#、$*、[email protected]、$?、$0等含义一文搞懂
选择大于努力!贵阳校区小哥哥0基础成功转行软件测试收获12K!
分布式事务方案:最大努力通知方案
美团大脑百亿级知识图谱的构建及应用进展
源启数字化:既有模式,还是开源创新?|砺夏行动
121. 买卖股票的最佳时机
第十二天:续第十一天(BGP相关知识)
[Yunxiang book club No. 13] Chapter IV packaging format and coding format of audio files
Addon plug-in 002 of CDR plug-in development - write an EXE program that can be run by double clicking in 1 minute
05_ue4进阶_材质UV缩放
MongoDB-查询语句中$exists以及结合$ne、$nin、$nor、$not使用介绍
2022.7.11mySQL作业
cJSON库的使用
What if there is no word document in win11? There is no word document solution tutorial in win11
【Kernel】驱动开发学习之Platform平台总线模型
使用代码设置activity为透明
Improving Performance with Explicit Rendering(通过显式渲染提高性能)
实现生成订单30分钟未支付,则自动取消
OpenLayers官方实例全集
平安证券低佣金开户链接安全吗,怎么办理低佣金