hello!
Maybe you have also heard of alova, a lightweight request library, which can help you implement complex data requests at a lower cost, saving developers energy and time.
If you need to learn about alova, you can visit the official website, where you can find more detailed documentation and sample code to help you better understand and use this tool.
It has been a year since the release of alova2.0. During this period, it has received a lot of praise. Of course, it has also received a lot of feedback for improvements, which has made alova continue to mature and improve. I am very grateful to everyone who has contributed to alova, and I also know it. There are many redundancies and flaws in the design.
Now, in order to better serve you, it is time to upgrade to 3.0. The purpose of this upgrade mainly focuses on the following goals:
- Adjust alova structure and expand application scope
- Simplify usage, discard unnecessary APIs, and adjust defective designs.
- Redesign some modules to improve performance
Before looking at the specific 3.0 adjustments, let us review what exactly alova is going to do and where it is going.
Pain points of network requests
In enterprise-level projects involving multi-person collaboration, the cost of Client-Server interaction is relatively high.
-
High cost of front-end and back-end collaboration:
- Depends on backend notification: API updates require active notification from the backend
- API document dependence: The front end needs to consult the API document to obtain information.
- API code writing: The front-end manually writes the interface code according to the API document.
- Lack of response data type: API response data does not have type hints by default, which increases the cost of data usage.
- Increase in bug rate: API changes may lead to an increase in the bug rate of the project.
Complex data interaction logic: Front-end requests are often not that simple. You need to consider when to send requests, when not to send requests, how to process response data, etc. according to different scenarios to meet the performance and performance improvement of the project. This will result in increased developer time costs and code maintenance costs.
solution
-
IDE plug-in (vscode/webStorm): Solve the problem of front-end and back-end collaboration (specific solutions can be viewed in the Feishu document below)
- Automatically generate request codes and response data types
- Embed the api document into the code, you can directly query and insert the API interface in the code
- Update API information regularly and proactively notify front-end development
- Interface update records to prevent changes from causing bugs
Request Strategy: Select the corresponding request strategy and implement complex data interaction logic in one line of code.
alova goals
Don't spend time on the small matter of requesting, leave it to alova, it will save you most of the work in requesting, you only need to specify which API to use and what strategy to execute the request. .
alova@3.0 update plan
Release Notes
Before the official version 3.0 is released, we always welcome your feedback. You are welcome to comment in the article or submit your valuable opinions on WeChat from any angle such as usage scenarios and design issues.
The specific update content, progress, and IDE plug-in design can be viewed in alova product white paper and 3.0 update overview.
Find core partner people
alovajs has so far achieved certain feasibility verification. In order to speed up its development, it is now necessary to invite two friends who agree with alovajs to join the core team (one has been confirmed) to be responsible for the core work of alovajs. This may allow you to obtain huge benefits. Friends who are willing to learn more see Become a Core Member.
Top comments (0)