Upgrade to Pro — share decks privately, control downloads, hide ads and more …

fastbuild-前端资源打包平台架构与设计及其他

 fastbuild-前端资源打包平台架构与设计及其他

Joe Wang

March 25, 2019
Tweet

More Decks by Joe Wang

Other Decks in Programming

Transcript

  1. Known problems • ⼈⾁添加/修改项⺫配置,⽽且添加⼀个项⺫要同步到三个项⺫,上机发布三个项⺫ 的代码 • 任务已经失败退出,前端仍然显⽰打包中 • cancel⼀个任务,拿不到⽇志⽂件 •

    任务机显⽰被占⽤,其实是闲置的,但是没办法添加新任务 • 任务机区分node版本,没办法充分利⽤资源 • websocket推送⼤量⽆⽤数据,⼀条消息⼏⼗k的数据 • 前端⻚⾯cpu占⽤⾼(真的没有⽤来挖矿 • 没办法深度扩展
  2. ENV

  3. Pros and cons in golang • Standalone executable file, no

    dll required • Performance • Lightweight channel • Build-in test support • Error handle • Interface{} • Interface • No generics • Lack of functional programming support
  4. What are Protocol buffers Protocol buffers are Google's language-neutral, platform-neutral,

    extensible mechanism for serializing structured data https://developers.google.com/protocol-buffers/
  5. Next Step • Integration with OPS • Delivery fastbuild with

    one click • Improve the user experience • Use NSQ if possible