Reference Architecture for a High-Performance Lightning Node on AWS

未关闭
#4,633 4 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@joostjager 已经在做这个了。

开始于 2026年5月28日。

评估

这个 Issue 还没有评估数据。

描述

This issue is intended as a place for the team to discuss a reference architecture for running a high-performance Lightning node on AWS. The goal is to identify a deployment pattern that gives strong funds-safety properties, predictable persistence latency, operational simplicity, and enough throughput headroom for a serious routing node.

Initial Starting Point

As an initial proposal, use Aurora PostgreSQL Standard with two provisioned instances:

  • One Aurora PostgreSQL writer instance
  • One Aurora PostgreSQL reader instance in another Availability Zone
  • The Lightning node connects to the Aurora writer endpoint
  • The watchtower process connects to the Aurora reader endpoint, or to a pinned reader instance
  • The Lightning node process runs on separate application compute in the writer AZ
  • The watchtower process runs on separate application compute in the reader AZ

Aurora provides the replicated cluster storage layer underneath the database instances. The writer handles node persistence writes, while the reader gives the watchtower a cross-AZ read path over the same committed database state.

Persistence Requirements

The exact persistence model is intentionally left open. The important requirement is that the node and watchtower operate on a consistent committed view of the node's persistence state.

The watchtower can read the same committed monitor data as the node. A small durable cursor or outbox table may still be useful so the watchtower can reliably determine what changed, resume after restart, and measure lag, without duplicating monitor payloads.

Assumptions

  • The node may continue once the Aurora commit succeeds.
  • It is acceptable for the watchtower reader to observe committed data with some reader lag.
  • The watchtower does not need to acknowledge each update before the node releases safety-critical messages.
  • The watchtower has an independent chain view and can catch up after restart or database failover.

Why This Seems Like a Good Baseline

  • Aurora gives managed multi-AZ durability without operating PostgreSQL replication ourselves.
  • Two database instances are enough for a writer plus a watchtower reader.
  • The architecture keeps the node and watchtower in separate AZs while sharing the same committed persistence state.
  • The database-backed architecture gives us a concrete place to define and validate consistency between the node and watchtower.
主要语言
Rust
星标
1.4k
派生
482
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lightningdevkit/rust-lightning 的其他 Issue

查看 lightningdevkit/rust-lightning 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。