Idempotent means doing a work multiple times but get same output .
Example 1:- you press like button on Instagram but if you press it once or 10 times your like will consider only onces.
-> it insure one like per user.
Example 2 :-
int x = 5;
int x = 5;
int x = 5;
if i assign x = 5 once or multiple times it's value remaining same.
Advantages:-
-> Privacy
-> times saver
-> API saftey
Top comments (0)