当前位置:网站首页>小程序容器可以发挥的价值
小程序容器可以发挥的价值
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、打造开放生态平台
边栏推荐
- Mysql - CRUD
- Arduino六足机器人
- Tools to improve work efficiency: the idea of SQL batch generation tools
- 如何利用Flutter框架开发运行小程序
- How to use the flutter framework to develop and run small programs
- Classic CTF topic about FTP protocol
- Global and Chinese markets for pressure and temperature sensors 2022-2028: Research Report on technology, participants, trends, market size and share
- 数据分析思维分析方法和业务知识——分析方法(二)
- Codeforces gr19 D (think more about why the first-hand value range is 100, JLS yyds)
- Choose to pay tribute to the spirit behind continuous struggle -- Dialogue will values [Issue 4]
猜你喜欢

AtCoder Beginner Contest 254【VP记录】
![N1 # if you work on a metauniverse product [metauniverse · interdisciplinary] Season 2 S2](/img/f3/8e237296f5948dd0488441aa625182.jpg)
N1 # if you work on a metauniverse product [metauniverse · interdisciplinary] Season 2 S2

MDK debug时设置数据实时更新

Idea远程提交spark任务到yarn集群

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

State mode design procedure: Heroes in the game can rest, defend, attack normally and attack skills according to different physical strength values.

Determinant learning notes (I)

OpenCV经典100题

How to make your own robot

Hardware and interface learning summary
随机推荐
Key structure of ffmpeg -- AVCodecContext
AtCoder Beginner Contest 254【VP记录】
Global and Chinese markets of POM plastic gears 2022-2028: Research Report on technology, participants, trends, market size and share
SQLServer连接数据库读取中文乱码问题解决
《编程之美》读书笔记
如何利用Flutter框架开发运行小程序
OS i/o devices and device controllers
Spark SQL null value, Nan judgment and processing
Multithreading and high concurrency (8) -- summarize AQS shared lock from countdownlatch (punch in for the third anniversary)
MIT博士论文 | 使用神经符号学习的鲁棒可靠智能系统
Power query data format conversion, Split Merge extraction, delete duplicates, delete errors, transpose and reverse, perspective and reverse perspective
Permission problem: source bash_ profile permission denied
STM32 configuration after chip replacement and possible errors
FFMPEG关键结构体——AVCodecContext
Pointer - character pointer
[noi simulation] Anaid's tree (Mobius inversion, exponential generating function, Ehrlich sieve, virtual tree)
如何解决ecology9.0执行导入流程流程产生的问题
多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)
免费的聊天机器人API
Reading notes of the beauty of programming