<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 12, 2015 at 9:22 AM, Lukáš Fryč <span dir="ltr">&lt;<a href="mailto:lukas@fryc.eu" target="_blank">lukas@fryc.eu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys,<div><br></div><div>/wrt the GCM Topics support PR <a href="https://github.com/aerogear/aerogear-unifiedpush-server/pull/626" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/pull/626</a></div><div><br></div><div>me and summersp have discussed how JMS should be used to route messages.</div><div><br></div><div><br></div><div>Current implementation loads tokens and conditionally sends either message with registration IDs or topics.</div><div><br></div><div>There are two things yet to be solved:</div><div><ul><li> topics can be used up to 1 million registrations, otherwise you have to fall back to enumerating registration IDs</li><li>implementation with one sender (GCMPushNotificationSender) is suboptimal</li><ul><li>the utilization of the topics can be increased by prioritizing topic message sending first (covering multiple, potentially thousands registrations)</li><li>followed by sending registration IDs out</li></ul></ul><div><br></div>That&#39;s why I suggested to split implementation to two JMS queues talking to two sender impls (e.g. GCMTopicSender and GCMRegistrationIdsSender).<br></div><div><ul><li>first we send out topic based messages (for efficiency)</li><li>we collect those topics that fail and resend them for processing as registration IDs (fail over)</li><ul><li>registration ids sending can start in parallel, but it can&#39;t end until we sent out all topics</li></ul></ul><div>Additionally we get an ability to configure these two message routes individually on the JMS level (better utilization, transact-ability, fail over).</div></div><div><br></div><div><br></div><div>What do you think?</div></div></blockquote><div>Since we discussed this yesterday I am of course +1 :-p </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div><br></div><div>Cheers,</div><div><br></div><div>~ Lukas</div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div></div>