Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The SRP HTTP Framework does not enforce statelessness nor does it offer any tools to make the system stateful. Statelessness is really a matter of self-governance in the design of the API. Developers can move toward statelessness by avoiding, or minimizing database locks, and responding to resource requests with metadata (see Uniform Interface below) that instructs instruct the client how it can request a state change. Stateless APIs are not difficult to implement unless they need to operate within the same application that requires a stateful design, such as one that also supports a traditional OpenInsight desktop environment. In these cases, clients typically maintain pessimistic locks on database rows, which could create conflicts in the way a web API interacts with the same row.

...