-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Establish VISION for "One Layer, All Storage" #5309
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
51b50e2
docs: Establish VISION for "One Layer, All Storage"
Xuanwo 083c70d
Also update asf.yml
Xuanwo 2faf5c9
Merge branch 'main' into add-vision
Xuanwo f7de334
Fix pnpm been upgrade in wrong
Xuanwo 3a06f5f
Merge remote-tracking branch 'refs/remotes/origin/add-vision' into ad…
Xuanwo 23320e8
Fix typo
Xuanwo e60b333
Use principles instead
Xuanwo 73c34b7
Update deps
Xuanwo 7056a9a
Fix typos
Xuanwo 7e447ea
Polish use cases
Xuanwo fe79144
Update website/docs/vision.md
Xuanwo fc90d4b
Update website/docs/vision.md
Xuanwo c06aab5
Add link to vision
Xuanwo 5d63d30
Polish words
Xuanwo 271b697
Use Principles everywhere
Xuanwo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
"module name","license","repository" | ||
"@docusaurus/core@3.4.0","MIT","https://github.com/facebook/docusaurus" | ||
"@docusaurus/plugin-client-redirects@3.4.0","MIT","https://github.com/facebook/docusaurus" | ||
"@docusaurus/preset-classic@3.4.0","MIT","https://github.com/facebook/docusaurus" | ||
"@mdx-js/react@3.0.1","MIT","https://github.com/mdx-js/mdx" | ||
"@docusaurus/core@3.6.1","MIT","https://github.com/facebook/docusaurus" | ||
"@docusaurus/plugin-client-redirects@3.6.1","MIT","https://github.com/facebook/docusaurus" | ||
"@docusaurus/preset-classic@3.6.1","MIT","https://github.com/facebook/docusaurus" | ||
"@mdx-js/react@3.1.0","MIT","https://github.com/mdx-js/mdx" | ||
"[email protected]","MIT","https://github.com/lukeed/clsx" | ||
"docusaurus-lunr-search@3.4.0","MIT","https://github.com/lelouch77/docusaurus-lunr-search" | ||
"docusaurus-lunr-search@3.5.0","MIT","https://github.com/lelouch77/docusaurus-lunr-search" | ||
"[email protected]","MIT","https://github.com/gabrielcsapo/docusaurus-plugin-image-zoom" | ||
"[email protected]","MIT","https://github.com/olivernn/lunr.js" | ||
"[email protected]","MIT","https://github.com/FormidableLabs/prism-react-renderer" | ||
"[email protected]","MIT","https://github.com/facebook/react" | ||
"[email protected]","MIT","https://github.com/facebook/react" | ||
"[email protected].2","ISC","https://github.com/npm/node-semver" | ||
"[email protected].3","ISC","https://github.com/npm/node-semver" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
--- | ||
title: Vision | ||
sidebar_label: Vision | ||
sidebar_position: 2 | ||
--- | ||
|
||
## Charter | ||
|
||
**One Layer, All Storage.** | ||
|
||
## Principles | ||
|
||
Principles are guiding principles. They guide how decisions are made for the whole project. Ideally, we do all of them all the time. In some cases, though, we may be forced to decide between slightly penalizing one goal or another. In that case, we tend to support those goals that come earlier in the list over those that come later (but every case is different). | ||
|
||
### 0. Open Community | ||
|
||
OpenDAL SHOULD be an **open** storage library. | ||
|
||
OpenDAL is an ASF project governed by the OpenDAL PMC. At ASF, we believe in "Community Over Code" and adhere to [the Apache Way](https://www.apache.org/theapacheway/). We aim to develop OpenDAL to meet the needs of our community. We do not maintain private versions or include features that aren't useful to others. | ||
|
||
For example, OpenDAL prefers to have clear and readable code, as this allows more people in the community to join the development. | ||
|
||
### 1. Solid Foundation | ||
|
||
OpenDAL SHOULD be a **solid** storage library. | ||
|
||
OpenDAL is a solid foundation of user projects that users can trust OpenDAL to perform operations on real-world storage services. OpenDAL SHOULD always focus on building a Solid Foundation. | ||
|
||
For example, OpenDAL performs additional error checks for AWS S3 complete multipart operations, as S3 may return an error in response with a 200 status code, even though this may add extra costs that conflict with "Fast Access.” | ||
|
||
### 2. Fast Access | ||
|
||
OpenDAL SHOULD be a **fast** storage library. | ||
|
||
Its fast access ensures that OpenDAL implements storage support with zero overhead. Users can integrate with OpenDAL without concerns about additional costs. OpenDAL should be as fast as, or faster than, the SDK for any given storage service. | ||
|
||
For example, OpenDAL uses Capability to describe the capabilities of different services and adopts native features of those services whenever possible. | ||
|
||
### 3. Object Storage First | ||
|
||
OpenDAL SHOULD be an **object storage first** library. | ||
|
||
OpenDAL does support all storage services, but it is usually optimized for modern storage services. At the time of writing, we can say OpenDAL is object storage first. When designing features, OpenDAL tends to prioritize optimization for object storage. | ||
|
||
For example, OpenDAL's Buffer design is primarily optimized for HTTP-based services, helping to reduce extra allocation, in-memory copying, and memory usage. | ||
|
||
### 4. Extensible Architecture | ||
|
||
OpenDAL SHOULD be an extensible storage library. | ||
|
||
OpenDAL can be extended to various languages, backends, and layers. Each is independent and does not depend on the others. Users can combine different layers, such as metrics, logging, tracing, and retry, and extend their own languages, backends, and layers. | ||
|
||
For example, OpenDAL's core never relies on the behavior or dependency of a single layer. Users can stack as many layers as they want on a given operator. | ||
|
||
## Use Cases | ||
|
||
Who are typical OpenDAL *users*? How would they use OpenDAL? | ||
|
||
### Infrastructure Builders | ||
|
||
Examples: | ||
|
||
- [Databend](https://github.com/databendlabs/databend) | ||
- [RisingWave](https://github.com/risingwavelabs/risingwave) | ||
- [GreptimeDB](https://github.com/GreptimeTeam/greptimedb) | ||
- [Apache Iceberg Rust](https://github.com/apache/iceberg-rust) | ||
|
||
Use Cases: | ||
|
||
- Building storage systems like databases | ||
- Developing data processing pipelines | ||
- Creating backup and archive solutions | ||
|
||
Primary Concerns: | ||
|
||
- **Solid Foundation**: Need guaranteed consistency and predictability for storage operations | ||
- **Fast Access**: Require minimal overhead and optimal performance | ||
- *Why*: Infrastructure services demand both reliability and performance as foundational requirements | ||
|
||
### Application Developers | ||
|
||
Examples: | ||
|
||
- [Sccache](https://github.com/mozilla/sccache) | ||
- [Vector](https://github.com/vectordotdev/vector) | ||
- [Rustic](https://github.com/rustic-rs/rustic) | ||
|
||
Use Cases: | ||
|
||
- Building end-user applications | ||
- Developing CLI tools | ||
- Creating web services | ||
|
||
Primary Concerns: | ||
|
||
- **Fast Access**: Need efficient integration and optimal performance | ||
- **Object Storage First**: Benefit from optimizations for modern cloud storage | ||
- *Why*: Modern applications commonly use object storage and require responsive performance | ||
|
||
### Platform Developers | ||
|
||
Examples: | ||
|
||
- [Pants](https://github.com/pantsbuild/pants) | ||
- [Zino](https://github.com/zino-rs/zino) | ||
- [Shuttle](https://github.com/shuttle-hq/shuttle) | ||
|
||
Use Cases: | ||
|
||
- Building AI/ML platforms | ||
- Developing cloud services | ||
- Creating developer tools | ||
|
||
Primary Concerns: | ||
|
||
- **Extensible Architecture**: Need to customize and extend storage capabilities | ||
- **Solid Foundation**: Require dependable storage operations | ||
- *Why*: Platforms need flexibility to adapt to various use cases while maintaining reliability | ||
|
||
--- | ||
|
||
*This documentation is inpisred a lot by [hyper’s VISION document](https://hyper.rs/contrib/vision/).* |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-1 for
Solid Foundation
, as mentioned in #5301 (reply in thread)IMO such a tenet is too big, hollow and subjective to provide guidance meaning and be constructive: no one will ever want to uncarefully build unsolid, untrustworthy software. It is self-evident to me that don't need to be told.
I propose the following alternatives:
Well-defined Behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is true. The closest comparison I can think of is the set of safety rules for flying a plane. No one wants the plane to crash, be damaged, or get lost, but that does happen. This principle exists to guide our development so that we don't make changes that lead us off track.
Yes, I agree that "solid foundation" is somewhat a big word. I'm open to better alternatives.
This phrase doesn't convey what we want in these areas.
Unfortunately, I believe we need to emphasize this area. Removing this one might leave our principles incomplete. I still suggest to use
solid foundation
if we don't have better one.