kafka测试

2137088-665a3db179fbc169.png
image.png

测试使用的消息为

\n====================================\n"+"[{\"item_id\":\"7341954\",\"title\":\"Apache Kafka系列(一) 起步\",\"url\":\"http://www.cnblogs.com/qizhelongdeyang/p/7341954.html\",\"context\":\"2tOkiKStM0d936gGWyt+3Kg/wultljgJzwyYI/fTjxzYYdFugMzRwERE/pAHGb7BJQ9TC3es1i+97zMRr3LODDEssye11NkrRqaah9MbR0dsQm7iQ6NdvWFNn4VKsUNutkSo0GJsWPnIEiVp40AeOHHE1WRtohIJI6thrfyEux8qnFihtMn6QcvRiApsXGZ3euU=\"},{\"item_id\":\"3859193\",\"title\":\"Kafka实战系列--Kafka API使用体验\",\"url\":\"http://www.cnblogs.com/mumuxinfei/p/3859193.html\",\"context\":\"WSyDGkDSIS3DDz4LS6U+L6aetxsRysTHCMzzf4jtiQgyC9XyLS75AGnOclEjaFldqoEhB1O5lVnn952YrHZrehO7Ypfva68hlv54j+9pu2EM8wBVk5KNsNnkKEBHZkp//29kLY6mA01FJXHpxyJR+SzIq31jewTUyMDrCw62DlSpqj61UA/T23PQF96WRHu6qEg=\"},{\"item_id\":\"10099894\",\"title\":\"kafka系列五、kafka常用java API\",\"url\":\"http://www.cnblogs.com/wangzhuxing/p/10099894.html\",\"context\":\"HtS99ktdfPbTsytlBvguGNHRkQnK1/lgGJN9l8OnLHO8htrF4XKD2gWPjHYpr4S0vwP+Jz/L+XbZ8fgcQ4zD+LI0CCfeMmGP4htnDocwq/mhGdLgl6X9++WvixS902RVv0n90wyKOnUQGCB0gBZtHHBzSfGD4QApwiE21KvXOQWeVtsQyfs9ldrtXkac4uwQ\"},{\"item_id\":\"9960093\",\"title\":\"Apache Kafka系列(七)Kafka Repartition操作\",\"url\":\"http://www.cnblogs.com/qizhelongdeyang/p/9960093.html\",\"context\":\"GM39c2pPiU3v85l5kGK5EVGLGHoUwAOM4BtiIVkvtJKnH3OlMOUBVEyAFRB3aGU7lPGTtBsiBte8Q8HdDeL0qf8Z6ilXa/ooVf1jirUO2mvHYL5flqkDDYIuxDkMZMuKUd/v+t4p4/FlNA0kSnXjSPffFI/v0zO1WBdu5aq+um8sTiDM\"},{\"item_id\":\"8579215\",\"title\":\"Kafka系列三 java API操作\",\"url\":\"http://www.cnblogs.com/zhaobingqing/p/8579215.html\",\"context\":\"bY8O7XljE8+UcSQ+11Tjio8kxVFRaLrYjjiYBcTR5HbqOgHQJVrVHd/haJ5BW6CtQJjE4CymNDtGSBiHj6fNgvuTmDwe0cWcme6Bfi2jEFt4fKq3FaSCTDJpuBiFzQ0Iamp/jWCd0v1Mla+Ep1EUmFCLNZGihz99YLYuMRRRP5Qm+Awr\"}]

test1

生产者发送六十万,一个消费者,接收消息后写入log4j本地磁盘,结果如下(单位:ms)


2137088-2606180a6a653b80.png
image.png

日志文件为:


2137088-c08ae252409174b6.png
image.png

test2

2137088-823c58d31ab8c1ad.png
image.png
2137088-50cd8caba1c3f038.png
image.png
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值