We are rolling out a small change to the PLC directory that should help avoid rate-limit problems with many identity updates coming from a single host. This is relevant to the atproto spaces roll-out next week, when many PDS instances will be submitting PLC operations to add #atproto_kem keys.
The change is to add support for the If-Match HTTP header on POST requests to submit operations. If an identifier already exists, the value can be given as If-Match: * (any existing identifier) to flag the request as an update as opposed to creating a new identifier. In this case the directory service will give generous per-IP rate-limits, but more constrained per-identifier limits. This should allow PDS operators to submit one PLC update each for a large number of hosted accounts without triggering rate-limits, which is the pattern we expect to see next week. This header is optional, so existing code will continue to function just like it does today.
The PLC directory should be deployed this week, and a new version of the PLC typescript SDK will support passing headers through on requests. The Bluesky-maintained reference PDS will be updated to use this header when submitting update operations as part of the spaces release, with no operator intervention necessary. Other PDS implementations and operators may want to add this header, but be sure to only include it for updates, not creating new identifiers.
Relevant PRs: