logoalt Hacker News

jagged-chiseltoday at 12:49 PM2 repliesview on HN

Idempotency is an important attribute for correctness. Yep, you can document that POSTing to $ENDPOINT is idempotent, but you can't communicate that to caching layers throughout the network. QUERY, by definition, is idempotent and cacheable.


Replies

resterstoday at 4:15 PM

Great point. I wish more people realized that intuitively.

jnewton_devtoday at 1:02 PM

Does anyone know if this approach works at significantly larger scales? Curious about where it breaks down.

show 1 reply