Skip to content

Add long-held HTTP request support to LUD21 verify#281

Open
elsirion wants to merge 1 commit into
lnurl:ludsfrom
elsirion:2025-08-no-polling-lud21
Open

Add long-held HTTP request support to LUD21 verify#281
elsirion wants to merge 1 commit into
lnurl:ludsfrom
elsirion:2025-08-no-polling-lud21

Conversation

@elsirion

Copy link
Copy Markdown

Polling is an antipattern in most cases, it increases latency for clients and server load, yet it's the only way to use LNURL verify aka LUD21 right now. When e.g. building a PoS using LUD21 one has to poll at least every second to achieve reasonably low latency.

Long-polling fixes this.

Polling is an antipattern in most cases, it increases latency for
clients and server load. When e.g. building a PoS using LUD21 one
has to poll at least every second to achieve reasonably low
latency.

Long-polling fixes this.
@dni dni requested review from dni and hsjoberg August 20, 2025 06:38
@andrerfneves andrerfneves added lud-extension Adds a field or behavior to an existing LUD ready Author considers it final, needs review/merge decision labels May 25, 2026

@Kukks Kukks left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Longpolling is kind of stale tech by now.

SSE seems to be the goto approach today.

I'd also perhaps expect some kind of signalling capability to know we can do this?

@andrerfneves

Copy link
Copy Markdown
Collaborator

Agree on the SSE being the more stable modern path forward, but open to suggestions here. I do think solving over-polling is great and something we should aim to achieve, but the spec additions as they are, feel very bare bones.

@andrerfneves andrerfneves self-requested a review May 30, 2026 22:41
@andrerfneves andrerfneves added needs-author-response PR has review feedback, waiting on author and removed ready Author considers it final, needs review/merge decision labels May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lud-extension Adds a field or behavior to an existing LUD needs-author-response PR has review feedback, waiting on author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants