https://dev.to/0xkkocel/wednesday-links-edition-2024-04-03-1hef
#java #jvm #idempotence #junit5 #xz
Building Resilient Systems with Idempotent APIs
https://dev.to/karishmashukla/building-resilient-systems-with-idempotent-apis-5e5p
"In the context of API designing, idempotency is crucial to prevent unintended side effects and ensure the predictability and reliability of the API. It allows clients to safely retry requests without causing any data duplication, overwriting, or other unwanted effects." -- #KarishmaShukla
Doubts about #idempotence in #TemporalIO seem to be confirmed by insights from my discussion with #ChatGPT. 🤔 Exploring the complexities of achieving idempotence in intricate systems. Check out the thought-provoking thread:
https://chat.openai.com/share/68526142-057c-4e0f-b1ae-9fb434f7a541
Please, in the name of #idempotence
On a particular #rockylinux machine (others seem fine), #saltstack has trouble enabling a service:
"The named service systemd-timesyncd is not available"
Trouble is: after I typed "systemctl enable systemd-timesyncd", the salt state (service.enabled) works forever (re-enabling ok). If I mask the service, the error is different.
Could it be an implicit "daemon-reload" when typing or something fishy like this?
#Mastodon needs an #idempotence marker for toots.
Just had a Publish timeout, so I naturally retried.
Et voila: duplicate toots.
I'm kinda disappointed a network-failure-aware system doesn't already have this. Or maybe it does and the mastodon app doesn't use it?
(This one just timed out too. Will I get a dupe?)
x 3
Can there not be some kind of async callback after a timeout to check if the operation succeeded after all?
#Mastodon needs an #idempotence marker for toots.
Just had a Publish timeout, so I naturally retried.
Et voila: duplicate toots.
I'm kinda disappointed a network-failure-aware system doesn't already have this. Or maybe it does and the mastodon app doesn't use it?
(This one just timed out too. Will I get a dupe?)
#Mastodon needs an #idempotence marker for toots.
Just had a Publish timeout, so I naturally retried.
Et voila: duplicate toots.
I'm kinda disappointed a network-failure-aware system doesn't already have this. Or maybe it does and the mastodon app doesn't use it?