![]() |
VOOZH | about |
dotnet add package RocketMQ.Client --version 5.1.0
NuGet\Install-Package RocketMQ.Client -Version 5.1.0
<PackageReference Include="RocketMQ.Client" Version="5.1.0" />
<PackageVersion Include="RocketMQ.Client" Version="5.1.0" />Directory.Packages.props
<PackageReference Include="RocketMQ.Client" />Project file
paket add RocketMQ.Client --version 5.1.0
#r "nuget: RocketMQ.Client, 5.1.0"
#:package RocketMQ.Client@5.1.0
#addin nuget:?package=RocketMQ.Client&version=5.1.0Install as a Cake Addin
#tool nuget:?package=RocketMQ.Client&version=5.1.0Install as a Cake Tool
English | 简体中文 | RocketMQ Website
.NET 5+ and .NET Core 3.1 is supported.
Due to the release of .NET 5 in 2020, which unified .NET Framework and .NET Core, and has gradually become the mainstream platform for .NET development. We strongly recommend using .NET 5+ to access RocketMQ.
We also support access to RocketMQ using .NET Core 3.1. Note: If you want to use .NET Core 3.1 and want to disable
TLS/SSL by Org.Apache.Rocketmq.ClientConfig.Builder.EnableSsl(false), add the following code before you run.
// Only necessary if you want to disable TLS/SSL on .NET Core 3.1
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true)
See more details about .NET 5 from Introducing .NET 5.
The client would be developed using the protocols outlined in rocketmq-apis and built on gRPC-dotnet, leveraging Protocol Buffers for data serialization and deserialization during transmission.
Use the command below to add client into your dependencies.
dotnet add package RocketMQ.Client
You can obtain the latest version of RocketMQ.Client
from NuGet Gallery. To assist with getting started quickly and working
with various message types and clients, we offer examples .
Layout of this project roughly follows this guide . The solution contains a class library, a unit test module and an example console module. Assuming you are at the home of this repository:
# build the project
dotnet build
# run unit tests
dotnet test -l "console;verbosity=detailed"
We use NLog as our logging implementation. Similar to the Java binding, we allow the use of environment variables to customize the related configuration:
rocketmq_log_level: Log output level, default is INFO.rocketmq_log_root: The root directory of the log output. The default path is $HOME/logs/rocketmq, so the full path
is $HOME/logs/rocketmq/rocketmq-client.log.rocketmq_log_file_maxIndex: The maximum number of log files to keep. The default is 10, and the size of a single log
file is limited to 64 MB. Adjustment is not supported yet.Specifically, by setting mq_consoleAppender_enabled to true, you can output client logs to the console simultaneously
if you need debugging.
dotnet pack --configuration Release command. This will create a NuGet package in the bin/Release folder
of the project.bin/Release folder.| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 netcoreapp3.1 is compatible. |
Showing the top 5 NuGet packages that depend on RocketMQ.Client:
| Package | Downloads |
|---|---|
|
Lingsen.Infra.RocketMQ
该库是一个集成了 RocketMQ 客户端的库,使得在应用程序中使用消息队列变得轻松而高效。通过这个封装,你可以方便地建立生产者和消费者,实现异步消息通信,同时充分利用 RocketMQ 的强大功能。 主要特点: - 提供简洁易用的 API,简化消息的发送和接收。 - 全面支持 RocketMQ 的特性,包括顺序消息、事务消息等。 - 封装了连接管理,处理底层连接和通信细节。 - 异常处理和错误日志,确保代码的可靠性。 - 提供了可扩展性,允许根据具体需求进行个性化定制。 通过这个封装,你可以快速将 RocketMQ 集成到你的应用程序中,实现高效的消息传递和灵活的异步通信。 |
|
|
ToolNET.AliyunRocketMQ.SDK
阿里云RocketMQ消息队列SDK/生产者、消费者/普通消息、定时消息、延时消息、顺序消息 |
|
|
Paramore.Brighter.MessagingGateway.RocketMQ
Apache RocketMQ messaging gateway implementation for Paramore.Brighter Command Processor. Provides decoupled message transport using RocketMQ with support for pub/sub patterns and distributed messaging. |
|
|
Galosys.Foundation.RocketMQ.Client
Galosys.Foundation快速开发库 |
|
|
VinBen.Extension.RocketMQ
Package Description |
Showing the top 1 popular GitHub repositories that depend on RocketMQ.Client:
| Repository | Stars |
|---|---|
|
BrighterCommand/Brighter
A framework for building messaging apps with .NET and C#.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 5.2.0-rc1 | 5,208 | 9/24/2024 |
| 5.1.1-rc1 | 928 | 5/11/2023 |
| 5.1.0 | 54,668 | 3/20/2023 |
| 5.1.0-rc1 | 669 | 3/17/2023 |
| 0.0.17-rc2 | 659 | 3/16/2023 |
| 0.0.17-rc1 | 633 | 3/16/2023 |
| 0.0.16-SNAPSHOT | 649 | 3/16/2023 |
| 0.0.15-SNAPSHOT | 588 | 3/16/2023 |
| 0.0.14-SNAPSHOT | 625 | 3/15/2023 |
| 0.0.13-SNAPSHOT | 587 | 3/15/2023 |
| 0.0.12-SNAPSHOT | 589 | 3/15/2023 |
| 0.0.11-SNAPSHOT | 600 | 3/8/2023 |
| 0.0.10-SNAPSHOT | 617 | 3/8/2023 |
| 0.0.9-SNAPSHOT | 641 | 3/7/2023 |
| 0.0.8-SNAPSHOT | 639 | 3/6/2023 |
| 0.0.7-SNAPSHOT | 635 | 3/6/2023 |
| 0.0.6-SNAPSHOT | 607 | 3/2/2023 |
| 0.0.5-SNAPSHOT | 621 | 3/2/2023 |