zoukankan      html  css  js  c++  java
  • JAMstack 最佳实践

    摘自官方介绍,没有翻译(没必要,已经比较简单了,重要的就是进行每条的诠释了,后续。。。)
    Entire Project on a CDN
    
    Because JAMstack projects don’t rely on server-side code, they can be distributed 
    instead of living on a single server. Serving directly from a CDN unlocks speeds 
    and performance that can't be beat. The more of your app you can push to the edge,
    the better the user experience
    
    Everything Lives in Git
    
    With a JAMstack project, anyone should be able to do a `git clone` , install any 
    needed dependencies with a standard procedure (like `npm install`), and be ready 
    to run the full project locally. No databases to clone, no complex installs. This
    reduces contributor friction, and also simplifies staging and testing workflows.
    
    Modern Build Tools
    
    Take advantage of the world of modern build tools. It can be a jungle to get oriented
    in and it's a fast moving space, but you'll want to be able to use tomorrow's web 
    standards today without waiting for tomorrow's browsers. And that currently means, 
    Babel, PostCSS, Webpack, and friends.
    
    Automated Builds
    
    Because JAMstack markup is prebuilt, content changes won’t go live until you run
    another build. Automating this process will save you lots of headache. You can do 
    this yourself with webhooks, or use a publishing platform that includes the service
    automatically.
    
    Atomic Deploys
    
    As JAMstack projects grow really large, new changes might require re-deploying hundreds
    of files. Uploading these one at a time can cause inconsistent state while the process 
    completes. You can avoid this with a system that lets you do "atomic deploys," where no 
    changes go live until all changed files have been uploaded.
    
    
    Instant Cache Invalidation
    
    When the build-to-deploy cycle becomes a regular occurrence, you need to know that when 
    a deploy goes live, it really goes live. Eliminate any doubt by making sure your CDN can
    handle instant cache purges.
  • 相关阅读:
    安装.NET FRAMEWORK 4.5安装进度条回滚之后发生严重错误 代码0x80070643
    C#远程时间同步助手软件设计
    Win7+Ubuntu双系统安装完成后时间不一致相差大概8小时
    php中类的不定参数使用示例
    php读写xml基于DOMDocument方法
    php写的非常简单的文件浏览器
    php封装的sqlite操作类
    phpstudy中apache的默认根目录的配置
    实现基于最近邻内插和双线性内插的图像缩放C++实现
    【STL深入理解】vector
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/7780811.html
Copyright © 2011-2022 走看看