<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 26, 2017 at 9:48 AM, Jose Miguel Gallas Olmedo <span dir="ltr"><<a href="mailto:jgallaso@redhat.com" target="_blank">jgallaso@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small">I say,</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">and then rethinking what value we want to give and how to do it properly.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Just one thing, we need the "pending" state for the UI as a "loading" state, from the moment we click the button "send notification" until one of the two states you propose is reached.</div></div></blockquote><div><br></div><div>Ok, the server has an "All Batches" loaded event, this one could be used to implement that.</div><div><br></div><div>One problem is, that the "loading" means -> nasty poliing of the server, until it is "done".</div><div>Unfortunately the queries are not that cool, they are a mess, for the "metrics" </div><div><br></div><div>Also, one part of the problem is, that naively the UI aims to be a real-time UI, which current architecture does not allow us</div><div><br></div><div>-M</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div></div><div class="gmail_extra"><div><div class="m_436894022777916383h5"><br><div class="gmail_quote">On 25 May 2017 at 13:26, Leigh Griffin <span dir="ltr"><<a href="mailto:lgriffin@redhat.com" target="_blank">lgriffin@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">+1 to removing it and rethinking the value in what is presented!<div><br></div><div>It could also lead to false assumptions about end device delivery, when in reality it's delivering it to the gateway. </div></div><div class="gmail_extra"><div><div class="m_436894022777916383m_-833127033844104784h5"><br><div class="gmail_quote">On Wed, May 24, 2017 at 4:58 PM, Oleh Mackiv <span dir="ltr"><<a href="mailto:omatskiv@redhat.com" target="_blank">omatskiv@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Matthias,<br></div>I agree with your idea. I think that device counter for Android is really confusing so lets remove it. And as you described it, pending state doesn't add much value.<br><br></div>Cheers,<br></div>Oleg<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_436894022777916383m_-833127033844104784m_3319601175398991937h5">On Wed, May 24, 2017 at 10:30 AM, Matthias Wessendorf <span dir="ltr"><<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_436894022777916383m_-833127033844104784m_3319601175398991937h5"><div dir="ltr">Hi,<div><br></div><div>we do have a problem w/ our current metrics processing. It's complicated (lot's of CDI events and two different JMS messaging approaches...) and also slow (JPQL/JDBC) and it does consume a lot of memory and processing time. This is leading to bugs (incorrect stats) and eventually causes down times, due to heavy processing.</div><div><br></div><div>I'd like to dramatically simplify our metrics processing... to something like:</div><div>Success -> could connect to 3rd party, to deliver tokens</div><div>Failure -> something went wrong when talking to 3rd party service.</div><div><br></div><div><br></div><div><div>Right now we do have metrics on push delivery:</div><div>Pending -> the submission to the 3rd party provider is in flight</div><div>Success -> we were able to connect, and could deliver *something*</div><div>Failure -> something obvious, like invalid certificate (APNs), no connection to 3rd party possible, etc</div><div><br></div><div>Besides that, we also do a count on targeted devices. I think there is not really a huge value. For instance if APNs rejects some tokens, we do not track those, we just show how many tokens our DB did find, not more. We don't show any of real interest. We could improve this (see below), but I doubt that the current implementation is able to handle this well.<br></div><div><br></div><div>Also, on Android/FCM the numbers are even worse. We do, internally, leverage their topics, so we usually end up sending exactly one push to FCM, regardless of how many Android device-tokens we have in the DB. The counter says 1 (one), because the server did target one topic (not n devices).</div><div><br></div><div>So, for now, I'd like to dramatically simplify the code, and go with the above Success/Failure solution.</div><div><br></div><div>However, I honestly think in the long run, we should get something pluggable, that allows us to process the metrics independently, outside of the UPS code base. I think my previous Kafka mail is addressing this partially: The actual response and details about the push job should be logged to some Kafka system, and an independent process should be able to process those. </div><div><br></div><div>This will give us much more freedom and flexibility. Perhaps also, in the future, we want some different stats, and something like Prometheus /Grafana:</div><div><a href="https://prometheus.io/docs/visualization/grafana/" target="_blank">https://prometheus.io/docs/vis<wbr>ualization/grafana/</a></div></div><div><br></div><div>A more flexible system, with independent metrics 'calculation' processing will help us here.</div><div><br></div><div>Any thoughts?</div><span class="m_436894022777916383m_-833127033844104784m_3319601175398991937m_1051954446655436538HOEnZb"><font color="#888888"><div><br></div><div>-Matthias</div><div><br></div><div><div><br clear="all"><div><br></div>-- <br><div class="m_436894022777916383m_-833127033844104784m_3319601175398991937m_1051954446655436538m_-8910927331190696749gmail-m_7852728415273694341gmail_signature"><div dir="ltr"><div>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.word<wbr>press.com/</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><wbr>a</div></div></div>
</div></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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/mailma<wbr>n/listinfo/aerogear-dev</a><span class="m_436894022777916383m_-833127033844104784m_3319601175398991937HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="m_436894022777916383m_-833127033844104784m_3319601175398991937HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_436894022777916383m_-833127033844104784m_3319601175398991937m_1051954446655436538gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Oleg Matskiv<br></div>Associate Quality Engineer<br></div><div>Red Hat Mobile Application Platform<br></div><a href="mailto:omatskiv@redhat.com" target="_blank">omatskiv@redhat.com</a><br></div></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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/mailma<wbr>n/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div><div class="m_436894022777916383m_-833127033844104784m_3319601175398991937gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span>LEIGH</span> <span>GRIFFIN</span></p><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>ENGINEERING MANAGER, MOBILE</span></p><p style="font-family:overpass,sans-serif;margin:0px;font-size:10px;color:rgb(153,153,153)"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat <span>Ireland</span></a></p><p style="font-size:10px;margin:0px">Communications House, Cork Road</p><p style="font-size:10px;margin:0px;color:rgb(153,153,153)">Waterford City, Ireland X91NY33</p><p style="font-family:overpass,sans-serif;margin:0px 0px 6px;font-size:10px;color:rgb(153,153,153)"><span style="margin:0px;padding:0px"><a href="mailto:lgriffin@redhat.com" style="color:rgb(0,136,206);margin:0px" target="_blank">lgriffin@redhat.com</a> </span> <span>M: <a href="tel:+353877545162" style="color:rgb(0,136,206);font-size:11px;margin:0px" target="_blank">+353877545162</a> </span> <span>IM: <span>lgriffin</span></span></p><table border="0" style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"><img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto"></a></td><td style="font-size:10px"><div><a href="https://redhat.com/trusted" style="color:rgb(204,0,0);font-weight:bold" target="_blank">TRIED. TESTED. TRUSTED.</a></div></td></tr></tbody></table><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span style="font-weight:normal;text-transform:none;font-size:10px;margin:0px;color:rgb(153,153,153)"></span><span style="font-size:medium;font-weight:normal;text-transform:none"></span><span style="font-size:medium;font-weight:normal;text-transform:none"></span><span style="font-size:medium;font-weight:normal;text-transform:none"></span></p><div style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px"><div style="color:rgb(153,153,153)"><a href="https://twitter.com/redhatway" title="twitter" style="background-image:url("https://www.redhat.com/files/brand/email/sm-twitter.png");height:20px;color:rgb(119,119,119);display:inline-block;line-height:20px;padding-left:16px;background-repeat:no-repeat;background-position:0px 50%" target="_blank">@redhatway</a> <a href="https://instagram.com/redhatinc" title="instagram" style="background-image:url("https://www.redhat.com/files/brand/email/sm-instagram.png");height:20px;color:rgb(119,119,119);display:inline-block;line-height:20px;padding-left:16px;background-repeat:no-repeat;background-position:0px 50%" target="_blank">@redhatinc</a> <a href="https://snapchat.com/add/redhatsnaps" title="snapchat" style="background-image:url("https://www.redhat.com/files/brand/email/sm-snapchat.png");height:20px;color:rgb(119,119,119);display:inline-block;line-height:20px;padding-left:16px;background-repeat:no-repeat;background-position:0px 50%" target="_blank">@red<wbr>hatsnaps</a></div></div></div></div></div></div></div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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/mailma<wbr>n/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div><div class="m_436894022777916383m_-833127033844104784gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span>JOSE MIGUEL</span> <span>GALLAS OLMEDO</span></p><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>ASSOCIATE QE, mobile</span></p><p style="font-family:overpass,sans-serif;margin:0px;font-size:10px;color:rgb(153,153,153)"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat <span><br><br></span></a></p><p style="font-family:overpass,sans-serif;margin:0px 0px 6px;font-size:10px;color:rgb(153,153,153)"><span href="tel:+34618488633">M: <a href="http://redhatemailsignature-marketing.itos.redhat.com/" style="color:rgb(0,136,206);font-size:11px;margin:0px" target="_blank">+34618488633</a> </span></p><table border="0" style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"><img src="https://www.redhat.com/profiles/rh/themes/redhatdotcom/img/logo-red-hat-black.png" width="90" height="auto"></a></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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/mailma<wbr>n/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_436894022777916383gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.<wbr>wordpress.com/</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div></div></div>
</div></div>