Delay between posting and API availability #1562
-
I'm working on a client, and one of the things I need to do is save a copy of the post data immediately after posting. I was doing this by calling Is there some kind of caching that would cause this delay? And is there any way to work around this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 16 replies
-
Hi! This is probably because of the PDS/BGS/AppView architecture. Originally, the PDS handled all of those API calls itself, so they were strongly consistent more or less automatically. The team is now migrating toward serving reads from the AppView instead, either directly and/or proxied through the PDS. Commits take time to propagate from the PDS through the BGS to the AppView via (I don't know what the team thinks of this eventually consistency. I'm curious to hear!) |
Beta Was this translation helpful? Give feedback.
-
A little while ago I suggested that the |
Beta Was this translation helpful? Give feedback.
-
P.S. For anyone following this discussion, I just discovered that the URL format for images has changed; it's now possible to get the image URLs with just the CID and the DID of the user. The image URL formats for thumb and full size:
|
Beta Was this translation helpful? Give feedback.
-
Interesting that getBlob is one of the few magic |
Beta Was this translation helpful? Give feedback.
Definitely! Makes sense.
The other thing you might try is
com.atproto.repo.getRecord
, which ideally the PDS can/should handle itself, instead ofapp.bsky.feed.getPosts
, which is the AppView's domain.