问题标签 [aggregators]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
sms - Twilio - 他们如何发送/接收短信
我有兴趣了解 twilio 的 SMS 发送/接收功能如何在长代码或本地号码上工作
在美国以外,移动发起的短信以长号码终止是很常见的,但是,在美国境内,我曾认为 MMA 需要终止批准的短代码?
有任何想法吗?
谢谢
rss - 从各种来源汇总
这可能是一个远远超出我现在技能的项目,但我有大约整整一个月的时间花在它上面,所以我认为我可以做到。我想要构建的是:从各种来源收集有关特定主题的新闻。容易,对吧?只需获取 RSS 源并将其显示在页面上即可。好吧,我想要更高级的东西:删除重复项和自定义演示文稿(即能够定义/更改显示新闻标题的格式)。
我玩过 Yahoo Pipes 和其他一些工具,但我面临两个大问题:
- 一些来源不提供 RSS 提要。如何创建一个?
- 查找和删除重复项的最佳方法是什么。我考虑比较标题并检查是否存在大于 50% 的匹配项。这是一个好习惯吗?
请添加我可能没有考虑过的任何其他内容(问题、建议等)。
rss - 让我的网站出现在新闻聚合器中
我不断遇到有关创建新闻聚合器的帖子,但是如何使我的网站(博客/新闻网站)与其中一个兼容?我的办公室收到了一封关于使我们的网站“对饲料友好”的电子邮件,但我想弄清楚是否有一种通用的方法可以让它在许多不同的聚合器(谷歌新闻等)上工作。它只是 RSS 吗?人们甚至还在为这些东西使用 RSS 吗?我不知道从哪里开始。
rss - GeoRSS 聚合器?
那里还有任何功能正常的 GeoRSS 聚合器吗?
我基本上在考虑一个博客聚合器,但特别是一个只索引与它们相关联的坐标的帖子。
spring - Spring Integration Aggregator + JDBC Message Store 性能
聚合器处理 JMS 消息以及持久性消息存储的性能非常低。就像下面给出的一个简单示例一样,处理的消息在每秒 25-28 条消息之间。
这是正常行为吗?还是我在这里做错了什么?
spring-integration - 无法让聚合器工作
我正在尝试了解聚合器的基础知识。以下是我尝试实现的用例:
1) 从队列中读取消息(订单详情)。
一条订单消息将包含多个orderItem。我们可以期待队列中有数百条订单消息。
2) 最终结果 ::
a) 每个订单项都应该写入一个文件。
b) 4 个这样的文件应该被写入一个唯一的文件夹。
举个例子,假设我们收到了两条订单消息——每条都包含三个orderitem。
所以我们需要创建 2 个文件夹:
在“文件夹 1”中,应该有 4 个文件(每个文件中有 1 个订单项)
在“文件夹 2”中,应该有 2 个文件(每个文件中有 1 个订单项)。在这里为简单起见,我们假设没有更多的订单消息出现,我们可以在 5 分钟后写入。
执行:
- 我能够从队列(websphere MQ)中读取消息并成功解组消息。
- 使用拆分器根据订单项计数拆分消息。
- 使用 Aggregator 将消息分组为 4 大小。
根据我的理解,我无法让聚合器工作。
- 我在 4 个orderitem时推送一个订单,消息被正确聚合。
- 我推送一个带有 5 个orderitem的订单,前 4 个被聚合,但最后一个被发送到丢弃通道。这是预期的,因为 MessageGroup 被释放,所以最后一条消息被丢弃。
- 我推送两个订单,每个订单包含 2 个orderitem。最后 2 个订单项被发送到丢弃通道。
关联策略是硬编码的(OrderAggregator.java),但上述情况应该有效。
需要有关如何实现此用例的指示,我可以将它们分组为 4 并写入唯一的文件夹。请注意,orderitem都是独立的书单,它们之间没有任何关系。
下面是配置。
spring-bean.xml
OrderAggregator.java
DisplayAggregatedList.java
spring-integration - Using JDBCMessageStore in Aggregator
I am trying to understand the behaviour of Aggregator when using JDBCMessageStore. Below is my use case:
1) Read message(order details) from queue.
#xA;One order message will contain multiple orderItem.
2) Split the order message based on the count of orderItem
3) Aggregate into 4 orderItem message; messageCountReleaseStrategy is used with threshold = 4
4) Forward to aggregated message to service activator.
I was observing the data in 3 tables : INT_MESSAGE_GROUP, INT_MESSAGE and INT_GROUP_TO_MESSAGE and seems like data is initially inserted in these 3 tables and when the group is released , the date is removed/deleted from these tables.
I wanted to check DB insert failures in one of the tables (INT_GROUP_TO_MESSAGE). To simulate the error , I dropped the table INT_GROUP_TO_MESSAGE.
The below test was run:
1) Posted 1 order message with 3 orderItem
2) Got an error with message - Table does not exist - (Expected as INT_GROUP_TO_MESSAGE does not exist)
3) I could find records in 2 tables
a) INT_MESSAGE_GROUP had 1 record.
b) INT_MESSAGE had 23 records. Seems like as the message was retried multiple times, multiple entries was done.
4) Created the table INT_GROUP_TO_MESSAGE
5) Posted 1 order message with 1 orderItem
6) The original message(step 1) alongwith the new one (Step 5) was picked up from queue and processed.
7) Aggregator released a group a 4 messages.
8) However in database table - INT_MESSAGE there still exists 23 records, whereas other tables are empty.
I simulated the Db error my dropping the table , but in production we may encounter memory, tablespace issues that can cause these inserts to fail.
My question is can we set any parameter so that we have transaction in 3 tables : INT_MESSAGE_GROUP, INT_MESSAGE and INT_GROUP_TO_MESSAGE?
Below is my configuration
#xA;