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
220
0
Share
fastbuild-前端资源打包平台架构与设计及其他
Joe Wang
March 25, 2019
More Decks by Joe Wang
See All by Joe Wang
An Introduction to Reactive Programming based on RxJS
nodew
0
55
Lazy List With Generator and Iterator
nodew
1
750
ddd.pdf
nodew
0
220
An Introduction to Haskell
nodew
2
93
es6 proxy overview
nodew
1
68
Other Decks in Programming
See All in Programming
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
140
Coding as Prompting Since 2025
ragingwind
0
830
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
380
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
140
2026_04_15_量子計算をパズルとして解く
hideakitakechi
0
110
アーキテクチャモダナイゼーションとは何か
nwiizo
19
5.3k
煩雑なSkills管理をSoC(関心の分離)により解決する――関心を分離し、プロンプトを部品として育てるためのOSSを作った話 / Solving Complex Skills Management Through SoC (Separation of Concerns)
nrslib
4
950
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
3
780
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
200
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
瑠璃の宝石に学ぶ技術の声の聴き方 / 【劇場版】アニメから得た学びを発表会2026 #エンジニアニメ
mazrean
0
250
AIエージェントで業務改善してみた
taku271
0
530
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
260
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.6k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
How to Think Like a Performance Engineer
csswizardry
28
2.6k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
270
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
260
Facilitating Awesome Meetings
lara
57
6.8k
A better future with KSS
kneath
240
18k
Building an army of robots
kneath
306
46k
BBQ
matthewcrist
89
10k
WCS-LA-2024
lcolladotor
0
540
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