朱莉,面向服务的编程语言

  • Jolie features:

    • Contract-first: Puts API design first and supports both synchronous and asynchronous communication.
    • Data models: Defined by types with refinement (shown in red on the right), and DTO transformations managed by the interpreter.
    • Structured workflows: Comes with native primitives like sequences and parallels for structuring code naturally.
    • Dynamic error handling: Solid semantics for parallel fault handling with the install primitive to update fault handlers at runtime.
  • Code examples:

    • Interface example: Defines a ProfileInterface with synchronous and asynchronous operations.
    • Workflow example: Shows how operations become available in sequence (after login) and in parallel (|).
    • Error handling example: Demonstrates a service with nested scopes and fault recovery using install.
  • Composition examples:

    • Orchestration: An orchestrator coordinates other services with a workflow.
    • Aggregation: Generalizes proxies and load balancers to compose and expose API of separate services.
    • Redirection: Generalizes virtual servers to hide service locations and assign logical names.
    • Embedding: Generalizes application servers to run other services as inner components and enables cross-language communication.
阅读 10
0 条评论