Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
fastbuild-前端资源打包平台架构与设计及其他
Search
Joe Wang
March 25, 2019
Programming
0
180
fastbuild-前端资源打包平台架构与设计及其他
Joe Wang
March 25, 2019
Tweet
Share
More Decks by Joe Wang
See All by Joe Wang
An Introduction to Reactive Programming based on RxJS
nodew
0
43
Lazy List With Generator and Iterator
nodew
1
600
ddd.pdf
nodew
0
180
An Introduction to Haskell
nodew
2
68
es6 proxy overview
nodew
1
47
Other Decks in Programming
See All in Programming
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
810
『ドメイン駆動設計をはじめよう』中核の業務領域
masuda220
PRO
5
1k
GraphQL あるいは React における自律的なデータ取得について
quramy
11
3k
エンジニア1年目で複雑なコードの改善に取り組んだ話
mtnmr
3
2k
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
4
90k
Prolog入門
qnighy
4
1k
エラーレスポンス設計から考える、0→1開発におけるGraphQLへの向き合い方
bicstone
5
1.5k
私のEbitengineの第一歩
qt_luigi
0
450
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
190
2024 컴포즈 정원사
jisungbin
0
150
Understand the mechanism! Let's do screenshots tests of Compose Previews with various variations / 仕組みから理解する!Composeプレビューを様々なバリエーションでスクリーンショットテストしよう
sumio
3
810
今インフラ技術をイチから学び直すなら
yuhta28
1
140
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
42
5.7k
The Brand Is Dead. Long Live the Brand.
mthomps
53
38k
Optimising Largest Contentful Paint
csswizardry
31
2.8k
What the flash - Photography Introduction
edds
67
11k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
27
7.4k
From Idea to $5000 a Month in 5 Months
shpigford
379
46k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.4k
The Cult of Friendly URLs
andyhume
76
6k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
24
610
Fireside Chat
paigeccino
31
2.9k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
227
52k
Git: the NoSQL Database
bkeepers
PRO
425
64k
Transcript
Fastbuild 前端资源打包平台架构与设计及其他 Joe
Why another fxxk build platform ?
None
Known problems • ⼈⾁添加/修改项⺫配置,⽽且添加⼀个项⺫要同步到三个项⺫,上机发布三个项⺫ 的代码 • 任务已经失败退出,前端仍然显⽰打包中 • cancel⼀个任务,拿不到⽇志⽂件 •
任务机显⽰被占⽤,其实是闲置的,但是没办法添加新任务 • 任务机区分node版本,没办法充分利⽤资源 • websocket推送⼤量⽆⽤数据,⼀条消息⼏⼗k的数据 • 前端⻚⾯cpu占⽤⾼(真的没有⽤来挖矿 • 没办法深度扩展
⽼版 build平台 调⽤关系⽰意图
Show some code
None
None
None
“If you could not refactor the fxxk legacy code, just
rewrite it!” - Joe
None
None
None
Show some code
Task Runner Steps
Make Command
ENV
Fastbuild ⽬录结构
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
Protobuf & GRPC
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/
None
What are GRPC A high-performance, open-source universal RPC framework https://grpc.io/
None
None
None
Next Step • Integration with OPS • Delivery fastbuild with
one click • Improve the user experience • Use NSQ if possible
The end