当前位置:网站首页>小程序容器可以发挥的价值
小程序容器可以发挥的价值
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、打造开放生态平台
边栏推荐
- Set data real-time update during MDK debug
- Spark DF增加一列
- The relationship between FPGA internal hardware structure and code
- Permission problem: source bash_ profile permission denied
- MySql——CRUD
- 【DesignMode】适配器模式(adapter pattern)
- 【DesignMode】组合模式(composite mode)
- 如何解决ecology9.0执行导入流程流程产生的问题
- Pointer pointer array, array pointer
- NLP text processing: lemma [English] [put the deformation of various types of words into one form] [wet- > go; are- > be]
猜你喜欢

【DesignMode】装饰者模式(Decorator pattern)

Intranet Security Learning (V) -- domain horizontal: SPN & RDP & Cobalt strike

Notepad + + regular expression replace String

About the slmgr command

FFmpeg抓取RTSP图像进行图像分析

Key structure of ffmpeg - avframe

电机的简介

Anconda download + add Tsinghua +tensorflow installation +no module named 'tensorflow' +kernelrestart: restart failed, kernel restart failed

数据分析思维分析方法和业务知识——分析方法(三)

Location based mobile terminal network video exploration app system documents + foreign language translation and original text + guidance records (8 weeks) + PPT + review + project source code
随机推荐
MySQL之函数
Go learning --- read INI file
AtCoder Beginner Contest 258【比赛记录】
Idea remotely submits spark tasks to the yarn cluster
数据分析思维分析方法和业务知识——分析方法(二)
STM32按键消抖——入门状态机思维
Spark SQL null value, Nan judgment and processing
2022-02-13 work record -- PHP parsing rich text
Global and Chinese markets of universal milling machines 2022-2028: Research Report on technology, participants, trends, market size and share
anconda下载+添加清华+tensorflow 安装+No module named ‘tensorflow‘+KernelRestarter: restart failed,内核重启失败
Pointer pointer array, array pointer
《编程之美》读书笔记
MySql——CRUD
PHP determines whether an array contains the value of another array
Codeforces Round #804 (Div. 2)【比赛记录】
7.5 simulation summary
Notepad++ regular expression replacement string
Codeforces gr19 D (think more about why the first-hand value range is 100, JLS yyds)
Leetcode Fibonacci sequence
NLP basic task word segmentation third party Library: ICTCLAS [the third party library with the highest accuracy of Chinese word segmentation] [Chinese Academy of Sciences] [charge]