{"action":"created","issue":{"url":"https://api.github.com/repos/shyiko/mysql-binlog-connector-java/issues/75","labels_url":"https://api.github.com/repos/shyiko/mysql-binlog-connector-java/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/shyiko/mysql-binlog-connector-java/issues/75/comments","events_url":"https://api.github.com/repos/shyiko/mysql-binlog-connector-java/issues/75/events","html_url":"https://github.com/shyiko/mysql-binlog-connector-java/issues/75","id":117478132,"number":75,"title":"a question about latency","user":{"login":"xnxky","id":1526944,"avatar_url":"https://avatars.githubusercontent.com/u/1526944?v=3","gravatar_id":"","url":"https://api.github.com/users/xnxky","html_url":"https://github.com/xnxky","followers_url":"https://api.github.com/users/xnxky/followers","following_url":"https://api.github.com/users/xnxky/following{/other_user}","gists_url":"https://api.github.com/users/xnxky/gists{/gist_id}","starred_url":"https://api.github.com/users/xnxky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xnxky/subscriptions","organizations_url":"https://api.github.com/users/xnxky/orgs","repos_url":"https://api.github.com/users/xnxky/repos","events_url":"https://api.github.com/users/xnxky/events{/privacy}","received_events_url":"https://api.github.com/users/xnxky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-17T23:48:28Z","updated_at":"2015-11-18T20:17:50Z","closed_at":null,"body":"Hi, thanks again for this great tool. Here is my scenario:\r\n\r\nWe have aws rds mysql master (which is row based replication) and an ec2 instance running the mysql-binlog-connector (bandwidth and throughput are not an issue) reading the binlog from the mysql master. We just extracted the timestamp out of the binlog event, and calculate the difference between the current time and timestamp. The number of events is around 1k per second.\r\n\r\nHowever, the difference, for p95, is about 1.3 seconds, and the max one could be as much as 8~9 seconds. We are hoping to have it under 100ms. Do you have an estimate or benchmark about how much latency this tool has in the best case?\r\n\r\nThanks. "},"comment":{"url":"https://api.github.com/repos/shyiko/mysql-binlog-connector-java/issues/comments/157850156","html_url":"https://github.com/shyiko/mysql-binlog-connector-java/issues/75#issuecomment-157850156","issue_url":"https://api.github.com/repos/shyiko/mysql-binlog-connector-java/issues/75","id":157850156,"user":{"login":"shyiko","id":370176,"avatar_url":"https://avatars.githubusercontent.com/u/370176?v=3","gravatar_id":"","url":"https://api.github.com/users/shyiko","html_url":"https://github.com/shyiko","followers_url":"https://api.github.com/users/shyiko/followers","following_url":"https://api.github.com/users/shyiko/following{/other_user}","gists_url":"https://api.github.com/users/shyiko/gists{/gist_id}","starred_url":"https://api.github.com/users/shyiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyiko/subscriptions","organizations_url":"https://api.github.com/users/shyiko/orgs","repos_url":"https://api.github.com/users/shyiko/repos","events_url":"https://api.github.com/users/shyiko/events{/privacy}","received_events_url":"https://api.github.com/users/shyiko/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T20:17:50Z","updated_at":"2015-11-18T20:17:50Z","body":"Hi.\r\n\r\nIf I understand you correctly time between [this](https://github.com/xnxky/mysql-binlog-connector-java/commit/aed0c061b2f60818f8e01e7c6aed90be96e2c9c4#diff-7addc4e3eed6e9254e088abc015ac8adR590) and [this](https://github.com/xnxky/mysql-binlog-connector-java/commit/aed0c061b2f60818f8e01e7c6aed90be96e2c9c4#diff-7addc4e3eed6e9254e088abc015ac8adR604) is ~4s (correct me if I'm wrong). If that's the case - try connecting remotely using [VisualVM](https://visualvm.java.net/) (or similar) to see what is taking so long (4s is insane, especially for a single event)."}}