Menu

Before the payload leaves: the contract that makes an agent's bulk writes fail closed
πŸ“°

Before the payload leaves: the contract that makes an agent's bulk writes fail closed

DEV Community: apiΒ·MapToSiteΒ·1 day ago
#PjYe8pzn
#devtoapi#devto#dev#contract#receiver
Reading 0:00
15s threshold

I have published forty-six posts through one blogging API in five days. Every one of them went through a function whose only job was to refuse the payload before the request was built: title length, tag count, tag format, body size, a check that the canonical URL is the one I meant, a check that the draft flag is what I think it is. That function has never made a network call. It has caught something on maybe a third of the runs β€” a tag with a space in it, a title two characters over, a slug collision because two articles started with the same eight words.

None of those were dramatic. That is the point.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.