{"action":"created","comment":{"url":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/comments/78915545","id":78915545,"diff_hunk":"@@ -0,0 +1,69 @@\n+<?php","path":"Tests/Units/DependencyInjection/M6WebKafkaExtension","position":1,"original_position":1,"commit_id":"72997b802a2692036822dd9c0f5da080e9e2b196","original_commit_id":"72997b802a2692036822dd9c0f5da080e9e2b196","user":{"login":"b-viguier","id":5537799,"avatar_url":"https://avatars.githubusercontent.com/u/5537799?v=3","gravatar_id":"","url":"https://api.github.com/users/b-viguier","html_url":"https://github.com/b-viguier","followers_url":"https://api.github.com/users/b-viguier/followers","following_url":"https://api.github.com/users/b-viguier/following{/other_user}","gists_url":"https://api.github.com/users/b-viguier/gists{/gist_id}","starred_url":"https://api.github.com/users/b-viguier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-viguier/subscriptions","organizations_url":"https://api.github.com/users/b-viguier/orgs","repos_url":"https://api.github.com/users/b-viguier/repos","events_url":"https://api.github.com/users/b-viguier/events{/privacy}","received_events_url":"https://api.github.com/users/b-viguier/received_events","type":"User","site_admin":false},"body":"Isn't the file extension missing?","created_at":"2016-09-15T08:45:09Z","updated_at":"2016-09-15T08:48:53Z","html_url":"https://github.com/M6Web/KafkaBundle/pull/1#discussion_r78915545","pull_request_url":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/comments/78915545"},"html":{"href":"https://github.com/M6Web/KafkaBundle/pull/1#discussion_r78915545"},"pull_request":{"href":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/1","id":85012732,"html_url":"https://github.com/M6Web/KafkaBundle/pull/1","diff_url":"https://github.com/M6Web/KafkaBundle/pull/1.diff","patch_url":"https://github.com/M6Web/KafkaBundle/pull/1.patch","issue_url":"https://api.github.com/repos/M6Web/KafkaBundle/issues/1","number":1,"state":"open","locked":false,"title":"Init project","user":{"login":"NastasiaSaby","id":8245071,"avatar_url":"https://avatars.githubusercontent.com/u/8245071?v=3","gravatar_id":"","url":"https://api.github.com/users/NastasiaSaby","html_url":"https://github.com/NastasiaSaby","followers_url":"https://api.github.com/users/NastasiaSaby/followers","following_url":"https://api.github.com/users/NastasiaSaby/following{/other_user}","gists_url":"https://api.github.com/users/NastasiaSaby/gists{/gist_id}","starred_url":"https://api.github.com/users/NastasiaSaby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NastasiaSaby/subscriptions","organizations_url":"https://api.github.com/users/NastasiaSaby/orgs","repos_url":"https://api.github.com/users/NastasiaSaby/repos","events_url":"https://api.github.com/users/NastasiaSaby/events{/privacy}","received_events_url":"https://api.github.com/users/NastasiaSaby/received_events","type":"User","site_admin":false},"body":"[Kafka Documentation](http://kafka.apache.org/documentation.html)\r\n[Extension PHP RdKafka](https://arnaud-lb.github.io/php-rdkafka/phpdoc/book.rdkafka.html)\r\n\r\nLe Readme explique plus en détails l'utilisation du bundle.\r\n\r\nL'idée est d'avoir un bundle qui produit et consomme les messages.\r\n\r\nIl n'est pas possible de choisir les partitions, replication-factor des topics depuis l'extension directement.\r\nPas de back office trouvé pour le moment.\r\n\r\n**Parti pris :** \r\n\r\n**Pour le producer** : \r\nOn produit un message sur l'ensemble des topics donnés en paramètres. La configuration des topics est passée à ce moment-là\r\n\r\n**Pour le consumer**\r\n- Utilisation d'une queue pour pouvoir consommer plusieurs topics de différentes partitions à la fois : [Exemple](https://arnaud-lb.github.io/php-rdkafka/phpdoc/rdkafka.examples-low-level-consumer-multi.html)\r\n- Renvoi des messages à la fin\r\n- Renvoi de l'emplacement des derniers messages lus dans chaque dernière partition de chaque dernier topic (afin de pouvoir recommencer là où on s'en est arrêté)\r\n- Vérification que les topics envoyés sont bien définis sur le cluster\r\n\r\n**Consommation sans préciser d'où on part (donc depuis le début)**\r\n- On récupère la liste des topics vraiment présents sur le serveur\r\n- On boucle sur les topics configurés pour les consumers en vérifiant qu'ils sont bien dans le serveur.\r\n- On boucle sur leurs partitions et pour chacune d'entre elles, on consomme les messages depuis le tout début (premier offset)\r\n\r\n**Consommation en précisant d'où on part (topics à lire, partitions d'où partir et offset dans la partition)**\r\nConsommation pour chaque topic défini, uniquement dans les partitions définies à partir de l'offset défini.\r\n=>Pas de flexibilité\r\n=>Pas de contrôle\r\n=>Pas la possibilité d'aller sur les autres partitions\r\n=> Mal !! - A réaliser\r\n\r\n**Reste à faire**\r\n- Faire des tests\r\n- Ajout de contrôles (partitions non existantes, ...)\r\n- Travis","created_at":"2016-09-13T09:24:12Z","updated_at":"2016-09-15T08:48:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acbf62ae1640fdecbdab4c00afcaa87f73d09425","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/1/commits","review_comments_url":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/1/comments","review_comment_url":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/M6Web/KafkaBundle/issues/1/comments","statuses_url":"https://api.github.com/repos/M6Web/KafkaBundle/statuses/72997b802a2692036822dd9c0f5da080e9e2b196","head":{"label":"M6Web:feature/initial-commit","ref":"feature/initial-commit","sha":"72997b802a2692036822dd9c0f5da080e9e2b196","user":{"login":"M6Web","id":1485147,"avatar_url":"https://avatars.githubusercontent.com/u/1485147?v=3","gravatar_id":"","url":"https://api.github.com/users/M6Web","html_url":"https://github.com/M6Web","followers_url":"https://api.github.com/users/M6Web/followers","following_url":"https://api.github.com/users/M6Web/following{/other_user}","gists_url":"https://api.github.com/users/M6Web/gists{/gist_id}","starred_url":"https://api.github.com/users/M6Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M6Web/subscriptions","organizations_url":"https://api.github.com/users/M6Web/orgs","repos_url":"https://api.github.com/users/M6Web/repos","events_url":"https://api.github.com/users/M6Web/events{/privacy}","received_events_url":"https://api.github.com/users/M6Web/received_events","type":"Organization","site_admin":false},"repo":{"id":68092181,"name":"KafkaBundle","full_name":"M6Web/KafkaBundle","owner":{"login":"M6Web","id":1485147,"avatar_url":"https://avatars.githubusercontent.com/u/1485147?v=3","gravatar_id":"","url":"https://api.github.com/users/M6Web","html_url":"https://github.com/M6Web","followers_url":"https://api.github.com/users/M6Web/followers","following_url":"https://api.github.com/users/M6Web/following{/other_user}","gists_url":"https://api.github.com/users/M6Web/gists{/gist_id}","starred_url":"https://api.github.com/users/M6Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M6Web/subscriptions","organizations_url":"https://api.github.com/users/M6Web/orgs","repos_url":"https://api.github.com/users/M6Web/repos","events_url":"https://api.github.com/users/M6Web/events{/privacy}","received_events_url":"https://api.github.com/users/M6Web/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/M6Web/KafkaBundle","description":"Apache Kafka Bundle","fork":false,"url":"https://api.github.com/repos/M6Web/KafkaBundle","forks_url":"https://api.github.com/repos/M6Web/KafkaBundle/forks","keys_url":"https://api.github.com/repos/M6Web/KafkaBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/M6Web/KafkaBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/M6Web/KafkaBundle/teams","hooks_url":"https://api.github.com/repos/M6Web/KafkaBundle/hooks","issue_events_url":"https://api.github.com/repos/M6Web/KafkaBundle/issues/events{/number}","events_url":"https://api.github.com/repos/M6Web/KafkaBundle/events","assignees_url":"https://api.github.com/repos/M6Web/KafkaBundle/assignees{/user}","branches_url":"https://api.github.com/repos/M6Web/KafkaBundle/branches{/branch}","tags_url":"https://api.github.com/repos/M6Web/KafkaBundle/tags","blobs_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/M6Web/KafkaBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/M6Web/KafkaBundle/languages","stargazers_url":"https://api.github.com/repos/M6Web/KafkaBundle/stargazers","contributors_url":"https://api.github.com/repos/M6Web/KafkaBundle/contributors","subscribers_url":"https://api.github.com/repos/M6Web/KafkaBundle/subscribers","subscription_url":"https://api.github.com/repos/M6Web/KafkaBundle/subscription","commits_url":"https://api.github.com/repos/M6Web/KafkaBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/M6Web/KafkaBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/M6Web/KafkaBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/M6Web/KafkaBundle/contents/{+path}","compare_url":"https://api.github.com/repos/M6Web/KafkaBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/M6Web/KafkaBundle/merges","archive_url":"https://api.github.com/repos/M6Web/KafkaBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/M6Web/KafkaBundle/downloads","issues_url":"https://api.github.com/repos/M6Web/KafkaBundle/issues{/number}","pulls_url":"https://api.github.com/repos/M6Web/KafkaBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/M6Web/KafkaBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/M6Web/KafkaBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/M6Web/KafkaBundle/labels{/name}","releases_url":"https://api.github.com/repos/M6Web/KafkaBundle/releases{/id}","deployments_url":"https://api.github.com/repos/M6Web/KafkaBundle/deployments","created_at":"2016-09-13T09:00:42Z","updated_at":"2016-09-13T09:00:42Z","pushed_at":"2016-09-15T07:07:56Z","git_url":"git://github.com/M6Web/KafkaBundle.git","ssh_url":"git@github.com:M6Web/KafkaBundle.git","clone_url":"https://github.com/M6Web/KafkaBundle.git","svn_url":"https://github.com/M6Web/KafkaBundle","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"M6Web:master","ref":"master","sha":"cb22b4a0e55dc00a697799e493a0a28f66153353","user":{"login":"M6Web","id":1485147,"avatar_url":"https://avatars.githubusercontent.com/u/1485147?v=3","gravatar_id":"","url":"https://api.github.com/users/M6Web","html_url":"https://github.com/M6Web","followers_url":"https://api.github.com/users/M6Web/followers","following_url":"https://api.github.com/users/M6Web/following{/other_user}","gists_url":"https://api.github.com/users/M6Web/gists{/gist_id}","starred_url":"https://api.github.com/users/M6Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M6Web/subscriptions","organizations_url":"https://api.github.com/users/M6Web/orgs","repos_url":"https://api.github.com/users/M6Web/repos","events_url":"https://api.github.com/users/M6Web/events{/privacy}","received_events_url":"https://api.github.com/users/M6Web/received_events","type":"Organization","site_admin":false},"repo":{"id":68092181,"name":"KafkaBundle","full_name":"M6Web/KafkaBundle","owner":{"login":"M6Web","id":1485147,"avatar_url":"https://avatars.githubusercontent.com/u/1485147?v=3","gravatar_id":"","url":"https://api.github.com/users/M6Web","html_url":"https://github.com/M6Web","followers_url":"https://api.github.com/users/M6Web/followers","following_url":"https://api.github.com/users/M6Web/following{/other_user}","gists_url":"https://api.github.com/users/M6Web/gists{/gist_id}","starred_url":"https://api.github.com/users/M6Web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M6Web/subscriptions","organizations_url":"https://api.github.com/users/M6Web/orgs","repos_url":"https://api.github.com/users/M6Web/repos","events_url":"https://api.github.com/users/M6Web/events{/privacy}","received_events_url":"https://api.github.com/users/M6Web/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/M6Web/KafkaBundle","description":"Apache Kafka Bundle","fork":false,"url":"https://api.github.com/repos/M6Web/KafkaBundle","forks_url":"https://api.github.com/repos/M6Web/KafkaBundle/forks","keys_url":"https://api.github.com/repos/M6Web/KafkaBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/M6Web/KafkaBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/M6Web/KafkaBundle/teams","hooks_url":"https://api.github.com/repos/M6Web/KafkaBundle/hooks","issue_events_url":"https://api.github.com/repos/M6Web/KafkaBundle/issues/events{/number}","events_url":"https://api.github.com/repos/M6Web/KafkaBundle/events","assignees_url":"https://api.github.com/repos/M6Web/KafkaBundle/assignees{/user}","branches_url":"https://api.github.com/repos/M6Web/KafkaBundle/branches{/branch}","tags_url":"https://api.github.com/repos/M6Web/KafkaBundle/tags","blobs_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/M6Web/KafkaBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/M6Web/KafkaBundle/languages","stargazers_url":"https://api.github.com/repos/M6Web/KafkaBundle/stargazers","contributors_url":"https://api.github.com/repos/M6Web/KafkaBundle/contributors","subscribers_url":"https://api.github.com/repos/M6Web/KafkaBundle/subscribers","subscription_url":"https://api.github.com/repos/M6Web/KafkaBundle/subscription","commits_url":"https://api.github.com/repos/M6Web/KafkaBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/M6Web/KafkaBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/M6Web/KafkaBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/M6Web/KafkaBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/M6Web/KafkaBundle/contents/{+path}","compare_url":"https://api.github.com/repos/M6Web/KafkaBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/M6Web/KafkaBundle/merges","archive_url":"https://api.github.com/repos/M6Web/KafkaBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/M6Web/KafkaBundle/downloads","issues_url":"https://api.github.com/repos/M6Web/KafkaBundle/issues{/number}","pulls_url":"https://api.github.com/repos/M6Web/KafkaBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/M6Web/KafkaBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/M6Web/KafkaBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/M6Web/KafkaBundle/labels{/name}","releases_url":"https://api.github.com/repos/M6Web/KafkaBundle/releases{/id}","deployments_url":"https://api.github.com/repos/M6Web/KafkaBundle/deployments","created_at":"2016-09-13T09:00:42Z","updated_at":"2016-09-13T09:00:42Z","pushed_at":"2016-09-15T07:07:56Z","git_url":"git://github.com/M6Web/KafkaBundle.git","ssh_url":"git@github.com:M6Web/KafkaBundle.git","clone_url":"https://github.com/M6Web/KafkaBundle.git","svn_url":"https://github.com/M6Web/KafkaBundle","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/1"},"html":{"href":"https://github.com/M6Web/KafkaBundle/pull/1"},"issue":{"href":"https://api.github.com/repos/M6Web/KafkaBundle/issues/1"},"comments":{"href":"https://api.github.com/repos/M6Web/KafkaBundle/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/M6Web/KafkaBundle/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/M6Web/KafkaBundle/statuses/72997b802a2692036822dd9c0f5da080e9e2b196"}}}}
{"actor":{"display_login":"b-viguier"}}