encyclopegia.org

Choreographic programming

In computer science, choreographic programming is a programming paradigm for distributed systems, where programs are written as compositions of interactions among multiple concurrent participants. Deadlock is a common error that can occur in distributed systems. Choreographic programming ensures that deadlock cannot occur in the scope of the choreography by ensuring that every time a message is sent from one party, there is a corresponding receive on the other end.

In computer science, choreographic programming is a programming paradigm for distributed systems, where programs are written as compositions of interactions among multiple concurrent participants. Deadlock is a common error that can occur in distributed systems. Choreographic programming ensures that deadlock cannot occur in the scope of the choreography by ensuring that every time a message is sent from one party, there is a corresponding receive on the other end. Alice.expr -> Bob.x reads " Alice communicates the result of evaluating the expression expr to Bob , which stores it in its local variable x ". Alice, Bob, etc. are typically called roles or processes. The example below shows a choreography for a simplified single sign-on (SSO) protocol based on a Central Authentication Service (CAS) that involves three roles: Client , which wishes to obtain an access token from CAS to interact with Service . Service , which needs to know from CAS if the Client should be given access. CAS , which is the Central Authentication Service responsible for checking the Client 's credentials. The choreography is: Client.(credentials, serviceID) -> CAS.authRequest if CAS.check(authRequest) then CAS.token = genToken(authRequest) CAS.Success(token) -> Client.result CAS.Success(token) -> Service.result else CAS.Failure -> Client.result CAS.Failure -> Service.result The choreography starts in Line 1, where Client communicates a pair consisting of some credentials and the identifier of the service it wishes to access to CAS . CAS stores this pair in its local variable authRequest (for authentication request). In Line 2, the CAS checks if the request is valid for obtaining an authentication token. If so, it generates a token and communicates a Success message containing the token to both Client and Service (Lines 3–5). Otherwise, the CAS informs Client and Service that authentication failed, by sending a Failure message (Lines 7–8). We refer to this choreography as the "SSO choreography" in the remainder.

References

No reference rows published for this article.

Cite this article

MLA

"Choreographic programming." encyclopegia.org, 2026, https://encyclopegia.org/wiki/choreographic-programming. Accessed 24 November 2026.

Chicago

"Choreographic programming." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/choreographic-programming.

APA

encyclopegia.org. (2026). Choreographic programming. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/choreographic-programming

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1367502923 · 0.5 · snapshot enwiki-001367502923

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.