发送消息

<p class="shortdesc">本文主要介绍如何使用控制台发送消息。</p> <section class="section prereq" id="send_message__prereq_kmw_kbx_cmb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div> <p class="p">您已成功创建Topic,可参考<a class="xref" href="https://pinganyun.com/ssr/help/middleware/pamq/quickstart.found_topic" target="_blank">创建Topic</a>。</p> </section> <section class="section context"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div> <p class="p">使用控制台发送消息到Topic,同生产者客户端发送消息的结果一样。可用于消息补发或快速验证 Topic 资源的可用性。</p> </section> <section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">登录<a class="xref" href="https://pinganyun.com/console/mq/topic/list" target="_blank">消息队列MQ管理控制台</a>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">单击左侧导航栏<span class="ph menucascade"><span class="ph uicontrol">发布订阅管理</span><abbr> > </abbr><span class="ph uicontrol">发布管理</span></span>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">在<span class="keyword wintitle">发布管理</span>页面,选择目标地域。</span> </li><li class="li step stepexpand"> <span class="ph cmd">单击目标生产者<span class="ph uicontrol">操作</span>列的<span class="ph uicontrol">发送</span>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">在<span class="keyword wintitle">发送消息</span>页面,填写<span class="ph uicontrol">Key</span>、<span class="ph uicontrol">Tag</span>和<span class="ph uicontrol">Message Body</span>。</span> <div class="itemgroup info"> <table class="table" id="send_message__table_mkg_1qx_dmb"><caption></caption><colgroup><col><col></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="send_message__table_mkg_1qx_dmb__entry__1">配置项</th> <th class="entry" id="send_message__table_mkg_1qx_dmb__entry__2">说明</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="send_message__table_mkg_1qx_dmb__entry__1 "> <p class="p">Key</p> </td> <td class="entry" headers="send_message__table_mkg_1qx_dmb__entry__2 "> <p class="p">填写发送消息的关键字。关键字可用于消息查询,建议关键字设置与业务属性关联,且尽量唯一。</p> </td> </tr> <tr class="row"> <td class="entry" headers="send_message__table_mkg_1qx_dmb__entry__1 "> <p class="p">Tag</p> </td> <td class="entry" headers="send_message__table_mkg_1qx_dmb__entry__2 "> <p class="p">填写消息标签。消息标签可用来进一步区分某个Topic下的消息分类。</p> </td> </tr> <tr class="row"> <td class="entry" headers="send_message__table_mkg_1qx_dmb__entry__1 "> <p class="p">Message Body</p> </td> <td class="entry" headers="send_message__table_mkg_1qx_dmb__entry__2 "> <p class="p">填写消息的正文。</p> </td> </tr> </tbody></table> </div> </li><li class="li step stepexpand"> <span class="ph cmd">单击<span class="ph uicontrol">确定</span>。</span> </li></ol></section> <section class="section result" id="send_message__result_mq4_dqx_dmb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div> <p class="p">消息发送成功后,系统将自动生成消息ID,在<span class="keyword wintitle">发送消息成功</span>页面单击<span class="ph uicontrol">详情</span>可以查看消息的基本信息和消费状态。</p> <img class="image" id="send_message__image_g1r_gqx_dmb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20202209170658-15a392bb9c65.png"> </section>
以上内容是否解决了您的问题?
请补全提交信息!
咨询·建议

电话咨询

400-151-8800

邮件咨询

cloud@pingan.com

在线客服

工单支持

解决云产品相关技术问题