当前位置:网站首页>小程序容器可以发挥的价值
小程序容器可以发挥的价值
2022-07-06 00:33:00 【InfoQ】
一、小程序容器是什么
1、如何理解容器
2、前端容器的优势
- 每个容器都具有独立的文件系统,单个容器内对文件系统进行增删改查不会影响到其他容器
- 参考 Linux 下的 chroot 命令,可以将子目录变为根目录
- 利用 namespace 隔离进程之间的相互可见及通信
- 使用 Cgroup 限制资源使用率,设置其能够使用的 CPU 以及内存量的大小
3、小程序容器相较于h5、原生的优势
- 具备跨平台的能力,一套代码可以在 iOS 与 Android 等多个平台中运行;
- 远超过 H5 的体验(支持本地缓存,Webview,有丰富的组件与支持库);
- 能获取更多系统权限,完成更加丰富的产品设计;
- 可以避免 DOM 泄露(不使用常用的 window 对象与 document 对象);
- 包尺寸有效减少,节省流量和存储
- 服务不再受发版所限制,支持热更新
二、怎样引入小程序容器
- 小程序容器很好,很多公司也都是内部在自研,不过仅限于有实力的公司,研发出来也是自己内部在用。例如,腾讯、阿里、字节、百度等大厂都有自己的小程序平台,但他们几乎也都是仅限于内部使用。
- 更普遍的现实是更多的公司想用但没这个实力搞,如果确实需要一个小程序容器该用怎样的正确姿势获得呢?
- 这里就推荐下 FinClip ,一个能够让任何 App 运行小程序的解决方案,只需要在你的 App 里面,引入它的 SDK,就能加载运行外部小程序了。除了 SDK,它还提供一个后台管理系统,统一管理小程序的上架和下架,以及收集和分析小程序数据。
- 使用下来,想谈下对 FinClip 的体验:
- 遵循微信小程序的开发标准与规范,开发轻松很多
- 开发者的福音,支持多终端运行
- 提供IDE 与文档,上手的学习成本低
三、小程序容器可以发挥的价值
1、多端投放上架
2、迭代更敏捷
3、打造开放生态平台
边栏推荐
- Global and Chinese market of digital serial inverter 2022-2028: Research Report on technology, participants, trends, market size and share
- MySql——CRUD
- [designmode] Decorator Pattern
- STM32 configuration after chip replacement and possible errors
- How to use the flutter framework to develop and run small programs
- Codeforces gr19 D (think more about why the first-hand value range is 100, JLS yyds)
- DEJA_ Vu3d - cesium feature set 055 - summary description of map service addresses of domestic and foreign manufacturers
- LeetCode 8. String conversion integer (ATOI)
- MySQL存储引擎
- Cloud guide DNS, knowledge popularization and classroom notes
猜你喜欢

Extension and application of timestamp

多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)

FFT learning notes (I think it is detailed)

XML Configuration File

FFmpeg学习——核心模块

【EI会议分享】2022年第三届智能制造与自动化前沿国际会议(CFIMA 2022)
![[noi simulation] Anaid's tree (Mobius inversion, exponential generating function, Ehrlich sieve, virtual tree)](/img/d6/c3128e26d7e629b7f128c551cd03a7.png)
[noi simulation] Anaid's tree (Mobius inversion, exponential generating function, Ehrlich sieve, virtual tree)

Idea remotely submits spark tasks to the yarn cluster

【DesignMode】组合模式(composite mode)

Determinant learning notes (I)
随机推荐
How to use the flutter framework to develop and run small programs
Yolov5、Pycharm、Anaconda环境安装
Go learning --- read INI file
FFmpeg抓取RTSP图像进行图像分析
Introduction of motor
How to solve the problems caused by the import process of ecology9.0
FFMPEG关键结构体——AVFrame
Problems and solutions of converting date into specified string in date class
多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)
[Chongqing Guangdong education] Chongqing Engineering Vocational and Technical College
Solve the problem of reading Chinese garbled code in sqlserver connection database
Permission problem: source bash_ profile permission denied
[Chongqing Guangdong education] reference materials for Zhengzhou Vocational College of finance, taxation and finance to play around the E-era
【线上小工具】开发过程中会用到的线上小工具合集
2022-02-13 work record -- PHP parsing rich text
【文件IO的简单实现】
Free chat robot API
Tools to improve work efficiency: the idea of SQL batch generation tools
数据分析思维分析方法和业务知识——分析方法(三)
Opencv classic 100 questions