[RFC] Server Storage System #4968
GiveMe-A-Name
started this conversation in
RFC Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1. BackGround
Provide a
Storage System
for FS, SSR Cache, and so on.We don't need more overhead for Fs, SSR Cache.
On the other hand, the upper layer can't take more care about underlying storage.
2. Glossary
3. Basic example
The api like web api storage
4. Detailed Design
Store
Every module can create storage on its own.
Then every module can create a cache system from this storage.
The Store would export createStorage method
Storage
Storage would export a series of methods for upper layer application usage.
Container
Container Design
5. Drawbacks
Like this:
7. Alternatives
Every module import store from dependency, like this:
Beta Was this translation helpful? Give feedback.
All reactions