Activity Forums Salesforce® Discussions Which type of Webservices methods is to be idempotent in Salesforce?

  • madhulika shah

    Member
    August 3, 2018 at 12:42 pm

    Hello Anjali,

    One of the important aspects of REST (or at least HTTP) is the concept that some operations are idempotent. An idempotent method means that the result of a successful performed request is independent of the number of times it is executed.

  • Parul

    Member
    September 23, 2018 at 8:51 am

    In the context of REST APIs, when making multiple identical requests has the same effect as making a single request – then that REST API is called idempotent.

    When you design REST APIs, you must realize that API consumers can make mistakes. They can write client code in such a way that there can be duplicate requests as well. These duplicate requests may be unintentional as well as intentional some time (e.g. due to timeout or network issues). You have to design fault-tolerant APIs in such a way that duplicate requests do not leave the system unstable.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos