Deployment patterns #159
Replies: 4 comments 4 replies
-
|
I think there could be a deployment that separates the responsibilities of proposing payments, agreeing to proposals, and monitoring for safety, into three components:
In diagram form: |
Beta Was this translation helpful? Give feedback.
-
|
I think there could be a deploy that embeds most responsibility into a client or daemon, although where something external can monitor for bad behavior as well. I think this is more similar to what @nikhilsaraf found elsewhere in research.
In diagram form: |
Beta Was this translation helpful? Give feedback.
-
|
As a third option, also want to include the "mailbox" component in our list that we had discussed, which is slightly different from the watcher/client/server model. This watcher/client/mailbox pattern isn't fully applicable today with our high-throughput use-case but an important component to list since we're listing components here. Both server and mailbox are long running services that can serve to operate as proxies for the client when client is offline, but the key difference between the server and mailbox is that the client always has to go through the mailbox to receive messages (which also gets around the synchronization in the client/server model) and the mailbox will never auto-approve payments even if the client will gain funds. I'd like to analogize the mailbox approach to email, whereas our fast throughput approach is like IM. We are focusing on the IM case for now and when we get to the email case (low throughput) we can consider the mailbox component. |
Beta Was this translation helpful? Give feedback.
-
|
@leighmcculloch and @nikhilsaraf: now that CAP-40 is published does this mean you want to move forward designing the "mailbox" as part of the model as outlined above?
@leighmcculloch the diagram is very useful, thank you for taking the time to create that. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@nikhilsaraf posed the question to me recently about how payment channels might be deployed, and if we would have some sort of service that a user could deploy and use to watch the network for bad actors closing channels in old states.
I think this also raises the question of what components will a user of a payment channel likely have, or how might they want to organize monitoring, etc. Regardless of whether we build these components, or only build the building blocks for them, I think it is worthwhile we hash this out a little in parallel with the work we're doing.
There could probably be many types of deployments, so the goal of this discussion should be to capture different possible deployments so we can develop and understanding of how the SDK might be used.
cc @nikhilsaraf @acharb @accordeiro
Beta Was this translation helpful? Give feedback.
All reactions