Real-World Async vs Programming Async in KERI #162
-
The QuestionIs KERI's asynchronous nature fundamentally about real-world coordination delays (humans signing at different times, network propagation, witness processing) rather than requiring programming language async patterns (async/await, coroutines)? The DistinctionReal-world async:
Programming async:
The HypothesisKERI's core model is fundamentally "real-world async" - a series of stateful operations that complete "later" due to distributed coordination. From an API perspective, implementations could expose synchronous interfaces (submit event → acknowledgment, query state → current state) while the system achieves eventual consistency behind the scenes. Python async frameworks like The Core QuestionIs "async multi-sig" and KERI's asynchronous operations inherently about eventual consistency and real-world coordination timing, rather than mandating async programming patterns? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hio's approach to async is fundamentally different from asyncio and node.js approach to async. Hio is meant to make real world async problems easy to deal with. Hio's async is fully deterministic, so it can be used for faster than real time simulation/emulation i.e. discrete event loop modeling of real world processes. So the point is that the real world is async and so minimizing the impedence mismatch in ones architecture is useful at a granular level. Once can model the asynchronous nature of the real world at a less granular level, which I think is the distinction your are trying to make. But that granularity imposes friction especially when moving from developing to staging to at scale deployment. Whereas HIO says we can be as granular as is useful. Asyncio and Node.js say, we do async via an event loop with promises and call backs. It is not deterministic so it actually imposes asynchrony when there is none in the real world. Hio does not. |
Beta Was this translation helpful? Give feedback.
Hio's approach to async is fundamentally different from asyncio and node.js approach to async. Hio is meant to make real world async problems easy to deal with. Hio's async is fully deterministic, so it can be used for faster than real time simulation/emulation i.e. discrete event loop modeling of real world processes. So the point is that the real world is async and so minimizing the impedence mismatch in ones architecture is useful at a granular level. Once can model the asynchronous nature of the real world at a less granular level, which I think is the distinction your are trying to make. But that granularity imposes friction especially when moving from developing to staging to at sca…