What is Idempotency and Why We Need It

What is Idempotency and Why We Need It

Idempotency is a strategy that makes sure an event that executed multiple times will give the same result. For example, GET method on the HTTP request. If you calling the endpoint with GET method will give you the same result. But POST method is not idempotent because every time you call an endpoint with POST method will create a new record on the database (the database state changes).

1 Like

Hi @ecojuntak, do you intend to cover a lot about APIs here on hackernoon? :face_with_monocle:

There is no plan yet, but if there any good topics related to APIs I will love to write it :smile: