当前位置:网站首页>小程序容器可以发挥的价值
小程序容器可以发挥的价值
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、打造开放生态平台
边栏推荐
- Permission problem: source bash_ profile permission denied
- Single source shortest path exercise (I)
- Go learning --- structure to map[string]interface{}
- 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
- 数据分析思维分析方法和业务知识——分析方法(二)
- Spark SQL UDF function
- AtCoder Beginner Contest 258【比赛记录】
- Codeforces Round #804 (Div. 2)【比赛记录】
- MySQL存储引擎
- NLP text processing: lemma [English] [put the deformation of various types of words into one form] [wet- > go; are- > be]
猜你喜欢

AtCoder Beginner Contest 254【VP记录】

Problems and solutions of converting date into specified string in date class

Multithreading and high concurrency (8) -- summarize AQS shared lock from countdownlatch (punch in for the third anniversary)

Priority queue (heap)
![Atcoder beginer contest 258 [competition record]](/img/e4/1d34410f79851a7a81dd8f4a0b54bf.gif)
Atcoder beginer contest 258 [competition record]

notepad++正則錶達式替換字符串

Start from the bottom structure and learn the introduction of fpga---fifo IP core and its key parameters

Comment faire votre propre robot

OpenCV经典100题

FFT learning notes (I think it is detailed)
随机推荐
Uniapp development, packaged as H5 and deployed to the server
[designmode] composite mode
Yolov5、Pycharm、Anaconda环境安装
FFmpeg抓取RTSP图像进行图像分析
Data analysis thinking analysis methods and business knowledge -- analysis methods (II)
常用API类及异常体系
An understanding of & array names
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
Leetcode Fibonacci sequence
LeetCode 1598. Folder operation log collector
Spark SQL UDF function
notepad++正则表达式替换字符串
[designmode] adapter pattern
Global and Chinese markets of POM plastic gears 2022-2028: Research Report on technology, participants, trends, market size and share
FFmpeg学习——核心模块
SQLServer连接数据库读取中文乱码问题解决
Cloud guide DNS, knowledge popularization and classroom notes
Atcoder beginer contest 258 [competition record]
Key structure of ffmpeg - avformatcontext
《编程之美》读书笔记