# kratos-transport **Repository Path**: tx7do/kratos-transport ## Basic Information - **Project Name**: kratos-transport - **Description**: 使B站Go语言微服务框架支持:kafka、rabbitmq、rocketmq、nats、graphql、thirft、gin、fasthttp…… - **Primary Language**: Go - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 3 - **Created**: 2022-12-06 - **Last Updated**: 2025-12-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: Go语言, Kafka, RabbitMQ, rocketmq, NATS ## README # kratos-transport 把消息队列、任务队列,以及Websocket、HTTP3等网络协议实现为微服务框架 [Kratos](https://go-kratos.dev/docs/) 的`transport.Server`。 在使用的时候,可以调用`kratos.Server()`方法,将之注册成为一个`Server`。 各种缝合,请叫我:缝合怪。 ## 支持的服务(Server) ### 消息队列 - [RabbitMQ](https://www.rabbitmq.com/) - [Kafka](https://kafka.apache.org/) - [RocketMQ](https://rocketmq.apache.org/) - [ActiveMQ](http://activemq.apache.org) - [Apollo](http://activemq.apache.org/apollo) - [Pulsar](https://pulsar.apache.org/) - [NATS](https://nats.io/) - [NSQ](https://nsq.io/) - [Redis](https://redis.io/) - [MQTT](https://mqtt.org/) - [STOMP](https://stomp.github.io/) - [AMQP](https://www.amqp.org/) ### RPC - [Thrift](https://thrift.apache.org/) - [GraphQL](https://graphql.org/) - [FastHttp](https://github.com/valyala/fasthttp) - [Gin](https://gin-gonic.com) - [Go-Zero](https://go-zero.dev) - [Hertz](https://www.cloudwego.io/zh/docs/hertz) - [Iris](https://docs.iris-go.com) ### 任务队列 - [Asynq](https://github.com/hibiken/asynq) - [Machinery](https://github.com/RichardKnop/machinery) ### 网络协议 - [WebSocket](https://zh.wikipedia.org/zh-hant/WebSocket) - [HTTP3](https://www.chromium.org/quic/) - [WebTransport](https://web.dev/webtransport/) - [SSE](https://en.wikipedia.org/wiki/Server-sent_events) - [SignalR](https://learn.microsoft.com/en-us/aspnet/signalr/overview/getting-started/introduction-to-signalr) - [Socket.IO](https://socket.io/zh-CN/docs/v4/) - [MCP](https://modelcontextprotocol.io/) ## 支持的消息代理(Broker) - [RabbitMQ](https://www.rabbitmq.com/) - [Kafka](https://kafka.apache.org/) - [RocketMQ](https://rocketmq.apache.org/) - [ActiveMQ](http://activemq.apache.org) - [Apollo](http://activemq.apache.org/apollo) - [Pulsar](https://pulsar.apache.org/) - [NATS](https://nats.io/) - [NSQ](https://nsq.io/) - [Redis](https://redis.io/) - [MQTT](https://mqtt.org/) - [STOMP](https://stomp.github.io/) - [AMQP](https://www.amqp.org/) ## 应用示例 - [kratos-chatroom](https://github.com/tx7do/kratos-chatroom) 一个简单的Websocket聊天室的示例 - [kratos-cqrs](https://github.com/tx7do/kratos-cqrs) 一个CQRS架构模式的示例 - [kratos-realtimemap](https://github.com/tx7do/kratos-realtimemap) 一个物联网的公共交通实时显示地图的示例 - [kratos-uba](https://github.com/tx7do/kratos-uba) 一个UBA系统 - [go-kratos-admin](https://github.com/tx7do/go-kratos-admin) 一个Admin系统 以上示例在[Kratos官方示例代码库](https://github.com/go-kratos/examples)中也可以找到。