Midway 2023 Recap: New Components, Serverless Advances, and the Road to Midway 3.x
The 8.11 Midway face‑to‑face livestream recap highlights a year of componentization, serverless evolution, progressive design, new mini‑program cloud development, Vercel support, GitHub Actions, code generation, and the preview of Midway 3.x, outlining the framework's roadmap and community contributions.
Thank you for watching the August 11 Midway face‑to‑face livestream; here is the full text summary.
Review of the Year
Midway introduced componentization from Midway v2 onward, abstracting module reuse into an IoC‑container model and providing components such as ORM, OSS storage, Axios HTTP, and community‑contributed micro‑service components like Consul. These components form an ecosystem usable in both traditional and Serverless environments.
Serverless matured with the Midway Serverless system, and a functional‑programming (FP) style using hooks received positive feedback for front‑back integration.
Community users and enterprises have begun adopting Midway, and contributions like the "cool‑admin" product are welcomed.
Progressive & Integrated New Scenarios
Midway.js’s future design is organized into four layers:
Midway Core – IoC container, startup hooks, etc.
Programming Paradigm – Decorator (IoC + Class) and Hooks (functional).
Scenario – solutions for APIs, scheduled tasks, message queues, etc.
Modern Web – a unified development paradigm built on all underlying capabilities.
This progressive design lets developers evolve applications like building with LEGO blocks.
New Scenario – Mini Program Cloud Development
Midway now supports mini‑program cloud development by combining Midway.js, Rax, and various cloud platforms, offering a modern front‑end‑like experience.
Use the functional + JSX + integrated call style for simpler mini‑program development.
To try it, run npm init rax in the command line.
Toolchain Upgrades
New platform support: Vercel, providing fast page hosting and deployment for Web workloads.
GitHub Actions integration enables automated deployment from GitHub to cloud platforms.
Code Generator feature simplifies boilerplate code generation, demonstrated in the showcase.
Midway 3.x Progress
Midway 3.x is currently in preview, targeting Node v12+, native module bundling (e.g., ncc, pkg), explicit type declarations for injection, and object‑based configuration loading.
Async configuration loading allows remote config merging at startup, and a new middleware system aims to replace the old multi‑middleware approach.
The goal is a cleaner, easier‑to‑use framework while accelerating component evolution for 2.x.
Conclusion
Midway will continue regular face‑to‑face updates, with all discussed features and discussions recorded in RFCs for the community to follow.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Node Underground
No language is immortal—Node.js isn’t either—but thoughtful reflection is priceless. This underground community for Node.js enthusiasts was started by Taobao’s Front‑End Team (FED) to share our original insights and viewpoints from working with Node.js. Follow us. BTW, we’re hiring.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
