feat: Add mobile-friendly /link2/{id} endpoint with caching and security limits#1
feat: Add mobile-friendly /link2/{id} endpoint with caching and security limits#1SeverinAlexB wants to merge 27 commits intomainfrom
/link2/{id} endpoint with caching and security limits#1Conversation
|
Im probably missing some context, im wondering out loud: |
|
I am currently completely redoing link2 with #3 . The new PR uses explicit acks. I explain everything later when the PR is ready. I don't think our current http-relay has a 30s timeout. I think we increased it explicitly so at least we dont run in to this specific timeout issue. The reason link1 is still here is that we have backwards compatibility with the old SDKs. The new PR but also link2 have a new url path so they will not work. So I do think it's worth keeping them. Do I make sense? |
The current main branch is a copy of the pubky-core http-relay which was used for testing before. The goal is to extract this library to clean up the core repo.
This branch tries to solve #2 by adding caching. It also adds features to make the code more mature for a production environment.
Summary
/link2/{id}endpoint with response caching and shorter timeout to support mobile clients that may be backgrounded or killed during requestssrc/http_relay/Test plan
/linkendpoint still works as before (10 min timeout, no caching)/link2endpoint with 25s timeout and verify cache works on retryCode Quality
This repo is fully vibe coded. I double checked the important areas but let me know if you want me to unslop things.