doumao1047 2019-02-12 16:24
浏览 23

存在“ String.Array”的AWS SNS过滤

I understand from documentation that officially AWS SQS does not support "String.Array" which SNS documentation says it does for attributes. I tried a few tests and I am more unsure about what doc says vs what I am observing. I created two queues Q1 and Q2 that subscribe to my topic topic.

On Q1I had set a filter with json as

jsonFilterString={"\"event\"":["\"[event1]\""}

On Q2, I did not set any filter. Now when I send the SNS with event key present, both the queues get it as expected. When I remove event key, only Q2 gets it, which is expected.

The problem happens if I put in this key in the SNS message attribute

"items":"[item1 item2 item3]"

Basically, I create a GoLang slice and then I put as a string in the message attribute. Surprisingly, Q2 gets it perfectly and on the AWS SNS UI, it shows under the Message Attributes for the message. However, Q1 does not get it.

Is it because of filtering or some other reasons as from docs, I understand that SQS officially does not support String.Array?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 gg加速器加速游戏时,提示不是x86架构
    • ¥15 python按要求编写程序
    • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入
    • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
    • ¥15 opencv图像处理,需要四个处理结果图
    • ¥15 无线移动边缘计算系统中的系统模型
    • ¥15 深度学习中的画图问题
    • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
    • ¥15 Python报错怎么解决
    • ¥15 simulink如何调用DLL文件