You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zhouli11 (via GitHub)" <gi...@apache.org> on 2024/11/06 10:21:09 UTC

[PR] new python sdk [rocketmq-clients]

zhouli11 opened a new pull request, #864:
URL: https://github.com/apache/rocketmq-clients/pull/864

   This PR completely refactors the existing Python SDK, including the following content:
   1. It hides the implementation details of coroutines. Users do not need to understand asyncio API, It is simpler to use.
   2. It provides asynchronous methods for sending, receiving, and acknowledging message.
   3. It implements thread safety for using multiple producers and consumers in a multithreaded environment, the existing version can’t work under a multi-threaded environment.
   4. It implements metrics based on OpenTelemetry.
   5. It fixes some bugs, such as multiple connections for the same endpoints、 heartbeat failures and so on
   6. It fixes the incorrect package dependencies.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "beiwei30 (via GitHub)" <gi...@apache.org>.
beiwei30 commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2461198157

   LGTM. This is a feature the community has been looking forward to, good job :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "feipengzhao (via GitHub)" <gi...@apache.org>.
feipengzhao commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2680137294

   @ws-one 我没有深究,不影响使用


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "ws-one (via GitHub)" <gi...@apache.org>.
ws-one commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2678192833

   > > Ubuntu 
   > > python3.12 
   > > rocketmq-python-client 5.0.2
   > 
   > 我配置的测试环境,大部分时间没有数据消耗,拉取一段时间的空列表,然后会报过 `Deadline Exceeded` 一段时间自动回复,但是这样会导致对应的消息驱动,然后监控报警触发,这个问题出现了多次,注释说是存储服务器的问题,请问在使用时如何规避这个问题 `Exception: <AioRpcError of RPC that terminated with: status = StatusCode.DEADLINE_EXCEEDED details = "Deadline Exceeded" debug_error_string = "UNKNOWN:Error received from peer {created_time:"2025-01-11T09:42:25.995335662+08:00", grpc_status:4, grpc_message:"Deadline Exceeded"}"`
   
   我也碰到同样问题,而且重启客户端不能修复,需要重启docker部署的Broker


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "zhouli11 (via GitHub)" <gi...@apache.org>.
zhouli11 commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2567372633

   > 该版本即使是同步发送也会用到事件循环,导致与 fastapi 这种异步框架使用时,会发生 attached to a different loop 错误。
   > 
   > 这个有解决办法吗?
   
   已经确认原因了,会在近期修复这个问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "feipengzhao (via GitHub)" <gi...@apache.org>.
feipengzhao commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2550665467

   **RocketMQ 5.0** 的**监控报警**功能,在**消费者 在线/掉线** 都会进行**消息堆积**的数据收集以及报警吗,比较关注监控报警功能,还有**消息延迟时间**的报警


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "lollipopjin (via GitHub)" <gi...@apache.org>.
lollipopjin merged PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "feipengzhao (via GitHub)" <gi...@apache.org>.
feipengzhao commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2547651974

   好的,请问python 的GRPC客户端会提供 类似java的全量功能吗


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "feipengzhao (via GitHub)" <gi...@apache.org>.
feipengzhao commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2562111803

   python 5.0.1 版本
   normal producer 发送message 在 message_id 前面总是加个01,然后阿里云控制台也有
   但是consumer 拉取的message_id 去掉了01, 这样在ack的时候都失败了,我手动给message_id 加了个01 ,然后ack 才成功,这是个bug?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "zhouli11 (via GitHub)" <gi...@apache.org>.
zhouli11 commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2567282051

   我先看下这个问题,确认后看看怎么解决
   
   
   
   
   
   --
   发自我的网易邮箱手机智能版
   
   
   
   在 2024-12-31 17:44:15,llleixx ***@***.***> 写道:
   
   
   该版本即使是同步发送也会用到事件循环,导致与 fastapi 这种异步框架使用时,会发生 attached to a different loop 错误。
   
   这个有解决办法吗?
   
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   You are receiving this because you were mentioned.Message ID: ***@***.***>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "zhouli11 (via GitHub)" <gi...@apache.org>.
zhouli11 commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2547598074

   > rocketmq 5.0 的 python client 只更新到 0.1版本,能在生产环境使用吗,靠不靠谱 @lollipopjin @zhouli11
   
   0.1这个版本不要用了,后面会删除掉,5.0.1是第一个可以用的正式版本


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "feipengzhao (via GitHub)" <gi...@apache.org>.
feipengzhao commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2562113124

   @zhouli11       
     
   **python 5.0.1**
   **normal producer** 发送message 在 **message_id 前面总是加个01**,然后阿里云控制台也有
   但是**consumer 拉取的message_id 去掉了01**, 这样在ack的时候都失败了,我手动给message_id 加了个01 ,然后ack 才成功,这是个**bug**?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "feipengzhao (via GitHub)" <gi...@apache.org>.
feipengzhao commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2585004476

   > Ubuntu  
   > python3.12  
   > rocketmq-python-client 5.0.2
   
   我配置的测试环境,大部分时间没数据消费,拉取一段时间的空列表,然后会报  `Deadline Exceeded`  然后过段时间自动回复,但这样会导致对应的消息堆积,然后监控报警触发,这个问题出现了多次,注释说是存储服务器的问题,请问在使用时如何规避这个问题<br>
   `
   Exception: <AioRpcError of RPC that terminated with:
   	status = StatusCode.DEADLINE_EXCEEDED
   	details = "Deadline Exceeded"
   	debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2025-01-11T09:42:25.995335662+08:00", grpc_status:4, grpc_message:"Deadline Exceeded"}"
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "feipengzhao (via GitHub)" <gi...@apache.org>.
feipengzhao commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2533496483

   rocketmq 5.0 的 python client 只更新到 0.1版本,能在生产环境使用吗,靠不靠谱


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "zhouli11 (via GitHub)" <gi...@apache.org>.
zhouli11 commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2550203340

   > 好的,请问python 的GRPC客户端会提供 类似java的全量功能吗
   
   目前还没全部对齐,主要是不支持pushconsumer,其他主要功能普通、定时、事务消息是都支持,顺序消费也支持,我们会继续完善python的功能,这个后续肯定会继续迭代和维护的


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "llleixx (via GitHub)" <gi...@apache.org>.
llleixx commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2566292272

   该版本即使是同步发送也会用到事件循环,导致与 fastapi 这种异步框架使用时,会发生  attached to a different loop 错误。
   
   这个有解决办法吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] new python sdk [rocketmq-clients]

Posted by "ws-one (via GitHub)" <gi...@apache.org>.
ws-one commented on PR #864:
URL: https://github.com/apache/rocketmq-clients/pull/864#issuecomment-2681186171

   > @ws-one 我没有深究,不影响使用
   
   好的,感谢


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org