跳到正文
GitHub·· 7 天前AI 评分30

Go Micro:Go 分布式系统开发框架

micro/go-micro

AI 导读

Go Micro 是用于分布式系统开发的 Go 框架,提供 RPC、服务发现、消息传递、存储和配置能力,各组件均以 Go 接口加可替换的默认实现构成。该框架支持智能体将服务作为工具调用,并通过工作流编排服务调用与智能体任务,工作流具备有序步骤、重试和检查点机制。安装方式为 go get go-micro.dev/v6,采用 Apache 2.0 许可。

正文

Go Micro is a Go framework for distributed systems development.

It provides RPC, service discovery, messaging, storage, and configuration. Agents use services as tools; workflows coordinate service calls and agent tasks. Each component uses a Go interface with a default implementation that can be replaced.

Features

  • RPC: typed client/server communication with streaming and message encoding.
  • Service discovery: automatic registration, name resolution, and load balancing.
  • Messaging: publish/subscribe for asynchronous events.
  • Storage and configuration: pluggable data stores and dynamic configuration sources.
  • Models and agents: model providers, conversation history, tools, and agent execution.
  • Workflows: ordered steps, retries, and checkpoints.

Getting started

Install the framework:

go get go-micro.dev/v6

See the quickstart for local development, client/server guide for services, and agent guide for agents.

Documentation

License

Apache 2.0

来源:GitHub · github.com