What is an idempotent operation?

前端 未结 15 916
情话喂你
情话喂你 2020-11-22 03:27

What is an idempotent operation?

15条回答
  •  悲&欢浪女
    2020-11-22 03:40

    Idempotent Operations: Operations that have no side-effects if executed multiple times.
    Example: An operation that retrieves values from a data resource and say, prints it

    Non-Idempotent Operations: Operations that would cause some harm if executed multiple times. (As they change some values or states)
    Example: An operation that withdraws from a bank account

提交回复
热议问题