{"action":"created","comment":{"url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/comments/188851027","pull_request_review_id":120910214,"id":188851027,"diff_hunk":"@@ -34,32 +35,35 @@ public MessageConsumerKafkaImpl(String bootstrapServers) {\n   @Autowired\n   private DuplicateMessageDetector duplicateMessageDetector;\n \n+\n   @Override\n   public void subscribe(String subscriberId, Set<String> channels, MessageHandler handler) {\n-    BiConsumer<ConsumerRecord<String, String>, BiConsumer<Void, Throwable>> kcHandler = (record, callback) -> {\n-      Message m = toMessage(record);\n+    SwimlaneBasedDispatcher swimlaneBasedDispatcher = new SwimlaneBasedDispatcher(subscriberId, Executors.newCachedThreadPool());\n \n-      // TODO If we do that here then remove TT from higher-levels\n+    BiConsumer<ConsumerRecord<String, String>, BiConsumer<Void, Throwable>> kcHandler = (record, callback) -> {\n+      swimlaneBasedDispatcher.dispatch(toMessage(record), record.key().hashCode() % 8, message ->","path":"eventuate-tram-consumer-kafka/src/main/java/io/eventuate/tram/consumer/kafka/MessageConsumerKafkaImpl.java","position":21,"original_position":21,"commit_id":"ae3b6182dcdf8b3fa67598e813f996b0db0077b7","original_commit_id":"ae3b6182dcdf8b3fa67598e813f996b0db0077b7","user":{"login":"dartartem","id":32159240,"avatar_url":"https://avatars0.githubusercontent.com/u/32159240?v=4","gravatar_id":"","url":"https://api.github.com/users/dartartem","html_url":"https://github.com/dartartem","followers_url":"https://api.github.com/users/dartartem/followers","following_url":"https://api.github.com/users/dartartem/following{/other_user}","gists_url":"https://api.github.com/users/dartartem/gists{/gist_id}","starred_url":"https://api.github.com/users/dartartem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dartartem/subscriptions","organizations_url":"https://api.github.com/users/dartartem/orgs","repos_url":"https://api.github.com/users/dartartem/repos","events_url":"https://api.github.com/users/dartartem/events{/privacy}","received_events_url":"https://api.github.com/users/dartartem/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2018-05-17T06:34:03Z","updated_at":"2018-05-17T06:34:03Z","html_url":"https://github.com/eventuate-tram/eventuate-tram-core/pull/8#discussion_r188851027","pull_request_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/8","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/comments/188851027"},"html":{"href":"https://github.com/eventuate-tram/eventuate-tram-core/pull/8#discussion_r188851027"},"pull_request":{"href":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/8"}},"in_reply_to_id":188762455},"pull_request":{"url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/8","id":185978757,"html_url":"https://github.com/eventuate-tram/eventuate-tram-core/pull/8","diff_url":"https://github.com/eventuate-tram/eventuate-tram-core/pull/8.diff","patch_url":"https://github.com/eventuate-tram/eventuate-tram-core/pull/8.patch","issue_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/issues/8","number":8,"state":"open","locked":false,"title":"#7. Implement multi-threaded dispatcher so messages are not consumed …","user":{"login":"dartartem","id":32159240,"avatar_url":"https://avatars0.githubusercontent.com/u/32159240?v=4","gravatar_id":"","url":"https://api.github.com/users/dartartem","html_url":"https://github.com/dartartem","followers_url":"https://api.github.com/users/dartartem/followers","following_url":"https://api.github.com/users/dartartem/following{/other_user}","gists_url":"https://api.github.com/users/dartartem/gists{/gist_id}","starred_url":"https://api.github.com/users/dartartem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dartartem/subscriptions","organizations_url":"https://api.github.com/users/dartartem/orgs","repos_url":"https://api.github.com/users/dartartem/repos","events_url":"https://api.github.com/users/dartartem/events{/privacy}","received_events_url":"https://api.github.com/users/dartartem/received_events","type":"User","site_admin":false},"body":"…in the Kafka consumer thread.","created_at":"2018-05-04T13:08:18Z","updated_at":"2018-05-17T06:34:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1441779a8acc3420ef0dfb36a16c6cff44eadbb5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/8/commits","review_comments_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/8/comments","review_comment_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/issues/8/comments","statuses_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/statuses/ae3b6182dcdf8b3fa67598e813f996b0db0077b7","head":{"label":"dartartem:swimlane-dispatcher","ref":"swimlane-dispatcher","sha":"ae3b6182dcdf8b3fa67598e813f996b0db0077b7","user":{"login":"dartartem","id":32159240,"avatar_url":"https://avatars0.githubusercontent.com/u/32159240?v=4","gravatar_id":"","url":"https://api.github.com/users/dartartem","html_url":"https://github.com/dartartem","followers_url":"https://api.github.com/users/dartartem/followers","following_url":"https://api.github.com/users/dartartem/following{/other_user}","gists_url":"https://api.github.com/users/dartartem/gists{/gist_id}","starred_url":"https://api.github.com/users/dartartem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dartartem/subscriptions","organizations_url":"https://api.github.com/users/dartartem/orgs","repos_url":"https://api.github.com/users/dartartem/repos","events_url":"https://api.github.com/users/dartartem/events{/privacy}","received_events_url":"https://api.github.com/users/dartartem/received_events","type":"User","site_admin":false},"repo":{"id":105909357,"name":"eventuate-tram-core","full_name":"dartartem/eventuate-tram-core","owner":{"login":"dartartem","id":32159240,"avatar_url":"https://avatars0.githubusercontent.com/u/32159240?v=4","gravatar_id":"","url":"https://api.github.com/users/dartartem","html_url":"https://github.com/dartartem","followers_url":"https://api.github.com/users/dartartem/followers","following_url":"https://api.github.com/users/dartartem/following{/other_user}","gists_url":"https://api.github.com/users/dartartem/gists{/gist_id}","starred_url":"https://api.github.com/users/dartartem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dartartem/subscriptions","organizations_url":"https://api.github.com/users/dartartem/orgs","repos_url":"https://api.github.com/users/dartartem/repos","events_url":"https://api.github.com/users/dartartem/events{/privacy}","received_events_url":"https://api.github.com/users/dartartem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dartartem/eventuate-tram-core","description":"Transactional messaging for microservices","fork":true,"url":"https://api.github.com/repos/dartartem/eventuate-tram-core","forks_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/forks","keys_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/teams","hooks_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/hooks","issue_events_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/issues/events{/number}","events_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/events","assignees_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/assignees{/user}","branches_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/branches{/branch}","tags_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/tags","blobs_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/statuses/{sha}","languages_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/languages","stargazers_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/stargazers","contributors_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/contributors","subscribers_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/subscribers","subscription_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/subscription","commits_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/contents/{+path}","compare_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/merges","archive_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/downloads","issues_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/issues{/number}","pulls_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/pulls{/number}","milestones_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/milestones{/number}","notifications_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/labels{/name}","releases_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/releases{/id}","deployments_url":"https://api.github.com/repos/dartartem/eventuate-tram-core/deployments","created_at":"2017-10-05T15:47:38Z","updated_at":"2018-04-11T15:37:53Z","pushed_at":"2018-05-07T15:12:10Z","git_url":"git://github.com/dartartem/eventuate-tram-core.git","ssh_url":"git@github.com:dartartem/eventuate-tram-core.git","clone_url":"https://github.com/dartartem/eventuate-tram-core.git","svn_url":"https://github.com/dartartem/eventuate-tram-core","homepage":null,"size":227,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eventuate-tram:master","ref":"master","sha":"1119d9d9dd1a349c56451c9ad043c5c9cbf044e5","user":{"login":"eventuate-tram","id":29695616,"avatar_url":"https://avatars1.githubusercontent.com/u/29695616?v=4","gravatar_id":"","url":"https://api.github.com/users/eventuate-tram","html_url":"https://github.com/eventuate-tram","followers_url":"https://api.github.com/users/eventuate-tram/followers","following_url":"https://api.github.com/users/eventuate-tram/following{/other_user}","gists_url":"https://api.github.com/users/eventuate-tram/gists{/gist_id}","starred_url":"https://api.github.com/users/eventuate-tram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventuate-tram/subscriptions","organizations_url":"https://api.github.com/users/eventuate-tram/orgs","repos_url":"https://api.github.com/users/eventuate-tram/repos","events_url":"https://api.github.com/users/eventuate-tram/events{/privacy}","received_events_url":"https://api.github.com/users/eventuate-tram/received_events","type":"Organization","site_admin":false},"repo":{"id":98709134,"name":"eventuate-tram-core","full_name":"eventuate-tram/eventuate-tram-core","owner":{"login":"eventuate-tram","id":29695616,"avatar_url":"https://avatars1.githubusercontent.com/u/29695616?v=4","gravatar_id":"","url":"https://api.github.com/users/eventuate-tram","html_url":"https://github.com/eventuate-tram","followers_url":"https://api.github.com/users/eventuate-tram/followers","following_url":"https://api.github.com/users/eventuate-tram/following{/other_user}","gists_url":"https://api.github.com/users/eventuate-tram/gists{/gist_id}","starred_url":"https://api.github.com/users/eventuate-tram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventuate-tram/subscriptions","organizations_url":"https://api.github.com/users/eventuate-tram/orgs","repos_url":"https://api.github.com/users/eventuate-tram/repos","events_url":"https://api.github.com/users/eventuate-tram/events{/privacy}","received_events_url":"https://api.github.com/users/eventuate-tram/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eventuate-tram/eventuate-tram-core","description":"Transactional messaging for microservices","fork":false,"url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core","forks_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/forks","keys_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/teams","hooks_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/hooks","issue_events_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/issues/events{/number}","events_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/events","assignees_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/assignees{/user}","branches_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/branches{/branch}","tags_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/tags","blobs_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/statuses/{sha}","languages_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/languages","stargazers_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/stargazers","contributors_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/contributors","subscribers_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/subscribers","subscription_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/subscription","commits_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/contents/{+path}","compare_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/merges","archive_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/downloads","issues_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/issues{/number}","pulls_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls{/number}","milestones_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/milestones{/number}","notifications_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/labels{/name}","releases_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/releases{/id}","deployments_url":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/deployments","created_at":"2017-07-29T04:50:55Z","updated_at":"2018-05-16T01:07:36Z","pushed_at":"2018-05-04T13:08:18Z","git_url":"git://github.com/eventuate-tram/eventuate-tram-core.git","ssh_url":"git@github.com:eventuate-tram/eventuate-tram-core.git","clone_url":"https://github.com/eventuate-tram/eventuate-tram-core.git","svn_url":"https://github.com/eventuate-tram/eventuate-tram-core","homepage":null,"size":206,"stargazers_count":50,"watchers_count":50,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":10,"open_issues":5,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/8"},"html":{"href":"https://github.com/eventuate-tram/eventuate-tram-core/pull/8"},"issue":{"href":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/issues/8"},"comments":{"href":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/eventuate-tram/eventuate-tram-core/statuses/ae3b6182dcdf8b3fa67598e813f996b0db0077b7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dartartem"}}