[{"data":1,"prerenderedAt":332},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2019\u002F04\u002F25\u002Fkafka-java-to-scala-introduction\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":27,"date":314,"description":315,"embedImage":316,"extension":317,"image":316,"intro":318,"meta":319,"navigation":321,"path":322,"seo":323,"series":324,"sitemap":325,"stem":326,"tags":327,"__hash__":331},"content\u002F2019\u002F04\u002F25\u002Fkafka-java-to-scala-introduction.md","Kafka - java to scala - introduction",{"type":208,"value":209,"toc":308},"minimark",[210,225,231,236,273,277,284,288,295,305],[211,212,213,214,224],"p",{},"I was recently a participant on a ",[215,216,223],"a",{"href":217,"rel":218,"target":222},"https:\u002F\u002Fwww.confluent.io\u002Ftraining\u002F",[219,220,221],"nofollow","noopener","noreferer","_blank","Confluent on-premesis kafka course",". While working through the labs (which are in java), for fun I tried the same code in kotlin. That was fun - but I thought it could be a nice exercise to convert from java to scala - step by step - and maybe learn some new scala stuff on the way. It will assume some level of kafka knowledge - what is a producer, consumer, topic etc.",[211,226,227],{},[228,229,230],"em",{},"It is important to understand that it is written from my viewpoint - someone who has played with scala, likes it, but has never really had time to get into it - so this will be somewhat of a discovery journey for me too.",[232,233,235],"h2",{"id":234},"posts-in-this-series","Posts in this series",[237,238,239,247,254,261,267],"ol",{},[240,241,242,246],"li",{},[215,243,245],{"href":244},"\u002F2019\u002F04\u002F25\u002Fkafka-java-to-scala-java\u002F","A simple java example running"," - a basic producer and consumer pair",[240,248,249,253],{},[215,250,252],{"href":251},"\u002F2019\u002F04\u002F30\u002Fkafka-java-to-scala-scala-v1\u002F","Convert java to scala"," - conversion of the basic producer and consumer to scala - on an almost line by line basis",[240,255,256,260],{},[215,257,259],{"href":258},"\u002F2019\u002F05\u002F03\u002Fkafka-java-to-scala-scala-v2\u002F","Update the scala version"," to be more \"scala-like\" and add a config file instead of hard coded values",[240,262,263],{},[215,264,266],{"href":265},"\u002F2019\u002F05\u002F08\u002Fkafka-java-to-scala-akka-streams-basics\u002F","A slight digression to look at basic akka-streams",[240,268,269],{},[215,270,272],{"href":271},"\u002F2019\u002F05\u002F15\u002Fkafka-java-to-scala-akka-streams-kafka\u002F","Use akka-streams for the scala example",[232,274,276],{"id":275},"code","Code",[211,278,279,280],{},"All code is available in this github repository: ",[215,281,282],{"href":282,"rel":283,"target":222},"https:\u002F\u002Fgithub.com\u002Fchrissearle\u002Fkafka-java-to-scala",[219,220,221],[232,285,287],{"id":286},"docker","Docker",[211,289,290,291,294],{},"All of the related articles assume that you have kafka running using the supplied ",[275,292,293],{},"docker-compose.yml"," file - so in the working directory - run:",[296,297,302],"pre",{"className":298,"code":300,"language":301},[299],"language-text","docker-compose up\n","text",[275,303,300],{"__ignoreMap":304},"",[211,306,307],{},"Make sure you have a good amount of memory available to docker - 4-5 Gb minimum :)",{"title":304,"searchDepth":309,"depth":309,"links":310},2,[311,312,313],{"id":234,"depth":309,"text":235},{"id":275,"depth":309,"text":276},{"id":286,"depth":309,"text":287},"2019-04-25 12:02 +0200","I was recently a participant on a Confluent on-premesis kafka course. While working through the labs (which are in java), for fun I tried the same code in kotlin. That was fun - but I thought it could be a nice exercise to convert from java to scala - step by step - and maybe learn some new scala stuff on the way. It will assume some level of kafka knowledge - what is a producer, consumer, topic etc.",null,"md","This series will work through converting java from the confluent on-premesis course to scala",{"updated":320},"2020-01-23 00:00",true,"\u002F2019\u002F04\u002F25\u002Fkafka-java-to-scala-introduction",{"title":206,"description":315},"Kafka - java to scala",{"loc":322},"2019\u002F04\u002F25\u002Fkafka-java-to-scala-introduction",[328,329,330],"kafka","java","scala","Naj___zaoAJvia_rWonj-KQZKIW2cHUfd0zIbiy89no",1775293009251]