当前位置:网站首页>Isomorphism + cross end, knowing applet +kbone+finclip is enough!

Isomorphism + cross end, knowing applet +kbone+finclip is enough!

2022-07-06 23:10:00 InfoQ

Applets are a new mobile application format , It's a kind of dependence Web technology , But there are also hybrid solutions that integrate native application functionality . Some features of the applet help to fill in Web And native platforms , So applets are popular with some super applications .

  • It doesn't need to be installed , Support hot update .
  • Have more than one Web View to improve performance .
  • It provides some access to operating system functions through native paths ( The native interface ) Or data mechanism .
  • Its content is usually more trustworthy , Because the application needs to be verified by the platform .

from 2017 In, wechat launched a small program for the first time , After four years of development , Major Internet giants have launched their own small program application platforms , Small programs become real “ New Internet technology standards ”. By 2021 In the first half of ,
Breakthrough in the number of small programs in the whole network 700 m
, among ,
Wechat applet is the mainstream of the industry , More than 430 m , The proportion is as high as about 61.43%
.

What is? kbone?

In recent days, , Wechat official started to promote a new multi-terminal unified development tool ——Kbone.

According to the official introduction ,Kbone  Is a dedicated wechat applet and  Web  End isomorphism solution . say concretely , Because the underlying model of wechat applets and  Web  Different ends , So if we want to put  Web  It is impossible to move the end code to the applet environment for execution .Kbone  Was born to solve this problem , It implements an adapter , The browser environment is simulated in the adaptation layer , Give Way  Web  The end code can run in the applet without any changes .

because  kbone  It's about providing adapters to implement isomorphism , So its advantages are obvious :
  • Most popular front-end frameworks can be found in  kbone  Up operation , such as  Vue、React、Preact  etc. .
  • Support for more complete front-end framework features , because  kbone  The bottom layer of the frame will not be deleted ( such as  Vue  Medium  v-html  Instructions 、Vue-router  plug-in unit ).
  • Common  dom/bom  Interface , Let user code do not need to make too big change from  Web  End to applet end .
  • When running on the applet side , You can still use the features of the applet itself ( Such as  live-player  Built in components 、 Subcontracting function ).
  • Provided some  Dom  Extension interface , There are alternatives for interfaces that are not perfectly compatible with the applet side ( such as  getComputedStyle  Interface ).

The advantages of official propaganda , In short :
Common  DOM/BOM  Interface , Let user code do not need to make too big change from  Web  End to applet end .

The launch of this solution , Wechat also responds to the growing demand of developers in the market .

What situation to use kbone good ?

Officials also say , In fact, there have been many solutions about isomorphism in the industry , Each scheme has its own advantages and disadvantages , There is no perfect solution to all problems ,kbone  It's the same thing . If the performance of small programs is particularly harsh , The official suggestion is to use native applet development directly ; In other cases, we can consider  kbone.

Hybird App The good news for developers

Now small program development is popular ,Hybird The development of is being compared 「Native+H5」 and 「Native+ Applet 」 Two hybrid APP Development mode , Which is better . By contrast ,「Native+ Applet 」 There are still many benefits of the development model .

「Native+ Applet 」 The advantages of :
  • Cross platform capability , A set of codes can be  iOS  And  Android  Running on both platforms ;
  • Far more than  H5  Experience ( Support local cache ,Webview, There are rich components and support libraries );
  • Can get more system permissions , Complete richer product design ;
  • You can avoid  DOM  Let the cat out of the ( Do not use commonly used  window  Object and the  document  object );
  • Effective reduction of package size , Save traffic and storage
  • Service is no longer limited by distribution , Support hot update

If you add kbone This web Isomorphic solutions , Now many web application , Can try to migrate into applet applications , Let enterprises pay more attention to the implementation of business logic .

Cross end development combo : Applet +kbone+finclip

kbone Or applet , It just meets the existing business processes in the social ecosystem App Medium to lighter 、 It is more in line with users' needs for fragmented time access on social platforms .

that App There is no meaning of existence ? Not at all .
Web3, With “ De centralization ”、“ Privacy protection ” As the core of a “ Technology movement ”, If it works , Can be said to be “ A long time must be divided. ” Proof of . But for ordinary enterprises , It's still far away . The present , immediately , What can I do ? The simple way is :

Own your own App、 Have your own service 、 Have your own data , Master your own digital ecology

Have these things , It used to be a difficult thing . For ordinary small and medium-sized enterprises and even large enterprises, there is nothing IT Budget Department , Make your own App First, the technical threshold is high , Secondly, it is difficult to maintain , Thirdly, the operation capacity is low . therefore , The final effect is , The input-output ratio is very poor , Proprietary App The quality is not high 、 The promotion cost is high 、 The traffic is small , Do more harm than good . Last , Many enterprises have given up trying in this field .

The emergence of the technical form of applet , It can be said that these problems encountered by enterprises have been solved to a great extent  -  Low development threshold 、 Light weight 、 And media content can be intertwined to facilitate sharing 、 It has the convenience of social communication 、 Publishing is relatively easy 、 Strong digital connectivity ...  So quickly get the welcome of the market .

add kbone Isomorphic solutions , So imagine ,
There will be more and more web End applications have joined the trend of applet applications
.
Autonomous Control App, There are still many benefits , First, it precipitates the stock of users , You can reach and operate more directly , A stronger sense of community ; secondly , Customer privacy data 、 Business data of business operation , Can get greater protection  -  Ownership of data assets , There is no doubt that it belongs to the enterprise rather than a third party . Domestic Internet connectivity supported and promoted by the state 、“ Antitrust ” In the situation of , Between platforms 、 Public social platforms and enterprises App The connection and jump between should be based on open standards , Then the applet will flow to App、App Jump back to applet , It's all possible .

There is applet container technology on the market ( for example :
FinClip
) You can make App It runs small programs , Or use Kbone Transformed web application .

FanTai geeks learn from the mature applet technology scheme of the Internet , Introduction
FinClip Applet container technology
, whatever  App  By introducing  FinClip When the applet runs  SDK  To gain the ability to run applets , meanwhile , It also provides a background management system , Unified management of small programs on and off the shelf , And collecting and analyzing applet data , For developers , It is extremely convenient .
null
FinClip Follow the development standards and specifications compatible with wechat applet . in other words , If you have developed a wechat applet , You can... Without changing a line of code , Put it directly into your  App  Inside , The operation effect is consistent with that on wechat , There is no need for additional secondary development and transformation , It saves a lot of labor costs .

FinClip
Support a variety of terminals other than mobile phones , Include  Linux、Windows、MacOS、 Kirin and other operating systems . It means , Multi terminal equipment such as TV 、 Visual screen 、 Flat 、 Vehicle mounted equipment 、 Smart TV can use small programs , The implementation of the applet “ A development , Run anywhere ”, Reach many traffic platforms at the same time , Not just limited to wechat Ecology .
null
FinClip With plug-in 、 The embedded 、 Lightweight and flexible product features and industry-leading advantages have enabled banks 、 negotiable securities 、 government administration versus business enterprise 、 Online retailers 、 aviation 、 Park 、 Retail and many other industries , Open the bank in the boundless 、 Digital brokerage 、 Regulatory and compliance technology 、 E-government 、 Innovative application cases with distinctive features have been formed in the fields of information and innovation . Now log in to the official website and click consultation to obtain industry solutions ! Manual guidance  :
https://www.finclip.com
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061532510859.html