|
|
|
|
|
by jiggawatts
393 days ago
|
|
I'm not thinking of "current" DB engines, but an entirely new stack that is end-to-end JavaScript (or WASM). Something like Java's Akka or .NET Orleans combined with React. So the "data" would be persisted by stateful Actors, which can run either on the server or in the browser, using the exact same code. Actors running in the browser can persist to localStorage and on the server the actors can persist to blob storage or whatever. Actors have unique addresses that can be used to activate them. In this system these become standard HTTP URIs so that there is a uniform calling convention. |
|
Bringing model definition and usage closer to the storage layer thereby reducing the need for translation and transport might cut down on the need for repeated and variant definitions across layers but it doesn't remove the other issues related to data storage.
There will need to be a system for storage and that will have to deal with transactional state management as well as consistency schemes, having that in an actor layer that is shared with other parts of the system might solve some issues, but it'd need to be really carefully managed so as not to inflict the solutions to those problems on the other parts of the system using the same transport mechanisms.
i dislike javascript with a passion but I'd be down for using a wasm based system that does what you say, my skepticism is usually just me shouting at clouds so it'd be interesting to see a working model.