apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".
https://brpc.apache.org
Apache License 2.0
16.35k stars 3.96k forks source link

有没有使用 AMQP(rabbitmq) 的例子 #1550

Open magengbin opened 2 years ago

magengbin commented 2 years ago

Describe the bug (描述bug)

To Reproduce (复现方法)

Expected behavior (期望行为)

Versions (各种版本) OS: Compiler: brpc: protobuf:

Additional context/screenshots (更多上下文/截图)

zyearn commented 2 years ago

If you are asking whether brpc has rabbitmq client, for now the answer is no.

magengbin commented 2 years ago

If you are asking whether brpc has rabbitmq client, for now the answer is no. If I want to use this library in brpc, the library is reserved for asynchronous event interfaces. Is there a way to use it in brpc?

cdjingit commented 2 years ago

It depends on the interface behavior of your mq library. If it is an asynch non-blocking API, you can call directly. Otherwise, it will block the brpc worker thread.

magengbin commented 2 years ago

_It depends on the interface behavior of your mq library. If it is an asynch non-blocking API, you can call directly. Otherwise, it will block the brpc worker thread.

The asynchronous interface needs to be event-driven, which requires the framework to provide