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
.
- Interface example: Defines a
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.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。