Pykafka. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~daniel/
Pykafka. ű×
Pykafka. ¼³¸í
Pykafka´Â KAFKA ºÐ»ê °Ô½Ã / ±¸µ¶ ¸Þ½Ã¡ ¼ºñ½º¿¡ ´ëÇÑ ¸Þ½ÃÁö¸¦ »ý¼º ÇÒ ¼öÀÖ´Â ÆÄÀ̽㠶óÀ̺귯¸®·Î KAFKA ÀνºÅϽº¿¡ ¾×¼¼½º ÇÒ ¼ö ÀÖ°í TCP¸¦ ÅëÇØ ¿¬°áÇÒ ¼ö ÀÖ¾î¾ßÇÕ´Ï´Ù. https://github.com/kafka-dev/kafkainstallationpip ¼³Ä¡ ¹æ¹ý¿¡ ´ëÇÑ »çº» ¹× ÁöħÀ» ¾òÀ» ¼ö ÀÖ½À´Ï´Ù. kafkaproducer = kafka.producer.producer ( 'test') message = kafka.message.message ( "foo!") producer.send (¸Þ½ÃÁö) sequessImportÀÇ ¼ø¼¸¦ º¸³»´Â KAFKAPRODUCER = kafka.producer.producer ( 'test') message1 = kafka.message.message ( "foo!") message2 = kafka.message.message ( "bar!") producer.send () context manager.Import KAFKAPRODUCER = KAFKA.PODUCER.Producer ( 'test')¸¦ »ç¿ëÇÏ¿© ¸Þ½ÃÁö·Î ÀÏ°ý ó¸®ÇÕ´Ï´Ù. producer.batch () ¸Þ½ÃÁö : Àμâ "¹èÄ¡ ¿©·¯ ¸Þ½ÃÁö Àü¼Û .. "messages.append (kafka.message.message ("º¸³»´Â ù ¹ø° ¸Þ½ÃÁö ") messages.append (kafka.message.message ("º¸³»´Â µÎ ¹ø° ¸Þ½ÃÁö ") ±×µéÀº ÇÑ ¹ø¿¡ Àü¼ÛµË´Ï´Ù. ÄÁÅؽºÆ® °ü¸®ÀÚ ½ÇÇà ÈÄ. ¸Þ½ÃÁö¸¦ oneImport KafkAconsumer = kafka.consumer.consumer ( 'test') message = consumer.consume () genera¸¦ »ç¿ëÇÏ¿© ¸Þ½ÃÁö¸¦ ¼ÒºñÇÏ´Â ¸Þ½ÃÁö Tor loopimport kafkaconsumer = kafka.consumer.consumer ( 'test') ¼ÒºñÀÚÀÇ ¸Þ½ÃÁö¿¡ ´ëÇÑ ¸Þ½ÃÁö¸¦À§ÇÑ ¸Þ½ÃÁö : Àμ⹰ : https://github.com/ddsully/pykafka/issuesproducts ȨÆäÀÌÁö¸¦ »ç¿ëÇϽʽÿÀ.
Pykafka. °ü·Ã ¼ÒÇÁÆ®¿þ¾î