Recently Confluent and World Wide Technology held a hands-on workshop on Stream Processing with KSQL. Nick Dearden, from Confluent, led the training and did an excellent job. He gave a very clear introduction to the problem space, and the role that KSQL plays.
Then we launched into the hands-on lab. Wow! I have never been to a hands-on that was so smooth.
There were 50 students in the rooms and each of us had a pre-assigned AWS user account, with which we could ssh into a server running KSQL and MySQL. There was a data generator running, I believe using the Kafka Connect Datagen connector (though I could be wrong on that). So, everything was ready to go and we were all working through the exercises within minutes.
Along the way, if anyone got stuck, Brian Likosar and Cliff Gilmore were on hand to help out. From what I could see, nobody was stuck for long.
The exercises were simple, yet detailed enough to show some of the cool features of KSQL. I had seen several video demos of KSQL before, but this was my first time trying it out. It was pretty fun.
For me the highlight—beyond just being in a room with so much Kafka brainpower—was when we ran explain on one of the queries we had written, and lo and behold, there's the KStream topology! I guess I should have figured this, but it was still cool to see. KSQL is basically a really slick Kafka Streams app.
So, the workshop was fun and informative, and KSQL is a pretty powerful tool, especially for those who are not living in the JVM. But the real take-away, for me, was that the Kafka Streams API is amazing!
Wednesday, February 12, 2020
Tuesday, February 11, 2020
Spock: Expect two calls from one method with specific results.
This is probably nothing new to many people, but it was a very pleasant surprise to me, so I'm posting here in case there are others as clueless as I.
Here's the situation. I've got a method under test, in Spock. (Yay! Groovy!) There is a mocked class that has a method that will be called twice, so we want to expect that, and we need to specify the return results because they are used by the method under test. In some scenarios, the expected params are known and easy to construct in the test, like a String literal. This is the easy one.
However, in some scenarios, the expected params are more difficult to construct in the test code, and I still want to expect the two calls in a specific order and with specific return values—which, again, are used downstream.
This is where I was stumped. My very limited Spock skills came back to haunt me, and Google failed to hide my ignorance. No worries: I'm working on a project with the brilliant (and helpful) developers from Object Partners, and Neal Buesing came up with this little gem.
Needless to say, it worked like a charm, and kept me from cluttering up the test with a ton of code to construct the complex objects that would have been needed.
So, if you're reading and didn't know about this trick, tuck it away for later, and you won't have to admit to the world that you were stumped.
Friday, February 7, 2020
Pass me another cup of Kafka Kool-Aid
Ok, I admit it. I have thoroughly imbibed the event-driven Kool-Aid.
It all started with a new job. This new job would involve Java development (I miss Groovy), and we were going to be using something called "Kafka". So, before the job began, I started looking into Kafka. I soon made the connection that my good friend, Tim Berglund, works for the company founded by the creators of Kafka, Confluent. Tim and his colleagues have produced a seemingly endless supply of resources to help people like me understand this amazing new world. (Hmm... I wonder if there is a name for a barista who makes Kool-Aid instead of coffee?)
Anyhow, after watching several of the short Confluent videos, I graduated to conference recordings from Kafka Summit. Wow! It was like I'd reached the Kool-Aid bottling plant! So much good information by such good presenters. I can't wait to attend one of these in person!
Then the job started. To my surprise, I found that I'd be working with consultants from Object Partners. I was familiar with OPI (as we affectionately call them) from the good ol' days of Grails, so it was great to know that they were also working in this amazing space. I guess someone at OPI knows how to pick great technologies!
The team from OPI has been a tremendous help and encouraged me to dive right in. So, I have. I'm currently working on my first Kafka Streams story, and having a blast!
There are so many other great resources and friendly, helpful, and brilliant people that I could talk about. I hope to write more here, as I continue to learn and enjoy this refreshing beverage. For now, I'll just pour another cup and get back to coding.
It all started with a new job. This new job would involve Java development (I miss Groovy), and we were going to be using something called "Kafka". So, before the job began, I started looking into Kafka. I soon made the connection that my good friend, Tim Berglund, works for the company founded by the creators of Kafka, Confluent. Tim and his colleagues have produced a seemingly endless supply of resources to help people like me understand this amazing new world. (Hmm... I wonder if there is a name for a barista who makes Kool-Aid instead of coffee?)
Anyhow, after watching several of the short Confluent videos, I graduated to conference recordings from Kafka Summit. Wow! It was like I'd reached the Kool-Aid bottling plant! So much good information by such good presenters. I can't wait to attend one of these in person!
Then the job started. To my surprise, I found that I'd be working with consultants from Object Partners. I was familiar with OPI (as we affectionately call them) from the good ol' days of Grails, so it was great to know that they were also working in this amazing space. I guess someone at OPI knows how to pick great technologies!
The team from OPI has been a tremendous help and encouraged me to dive right in. So, I have. I'm currently working on my first Kafka Streams story, and having a blast!
There are so many other great resources and friendly, helpful, and brilliant people that I could talk about. I hope to write more here, as I continue to learn and enjoy this refreshing beverage. For now, I'll just pour another cup and get back to coding.
Monday, January 27, 2014
And the winners are…
Congratulations to the five winners of Grails 2: A Quick-Start Guide! We had some very clever entries, but we only have 5 books to give away, so we had to make some hard choices. The winners are:
assert "Grails 2: A Quick-Start Guide!" == Book.where{grails.version==2}.list(order:asap).first()
http://t.co/liNPj0mzT7
#grails #GQuick2
— YeIIowsnow (@yeIIowsnow) January 20, 2014
Grails(2).searchFor.isOver "The Pragmatic Bookshelf | Grails 2: A Quick-Start Guide" @pragpub http://t.co/memYIwze37
— topchimp (@topchimp) January 20, 2014
He who is valiant and pure of spirit may find the holy #Grails in the Castle of Aaauuuggghhh... http://t.co/VRuaUi3Dxc
— Gregg Bolinger (@GDBolinger) January 22, 2014
2 Quick 2 Furious 2 Grails 2 - GQuick2 - http://t.co/ApRwR8r7ir
— Tomas Lin (@tomaslin) January 22, 2014
After reading 15 reasons I should use Grails http://t.co/btGSbs0Uqt, I need a copy of Grails 2: A Quick-Start Guide http://t.co/0ul7Evtjiu
— Vinny Carpenter (@vscarpenter) January 23, 2014
If you are one of the winners, please send a Twitter direct message to @daveklein with your shipping address.
Thank you to all who participated!
Dave
Monday, January 20, 2014
Win a copy of Grails 2: A Quick-Start Guide!
Now that Grails 2: A Quick-Start Guide (affectionately known as GQuick2) is in print, we are looking to helpful blog readers (and Twitter readers) for help in getting the word out. Participating readers will have a chance at winning a paper copy!
From now until Monday, January 28, you can enter the GQuick2 Twitter Giveaway.
We are giving away five copies of the book. To enter:
You are welcome to tweet more than once. Each tweet will be entered in the contest and evaluated. So, put on your thinking caps, get a cup of coffee to get those creative juices flowing and start tweeting!
From now until Monday, January 28, you can enter the GQuick2 Twitter Giveaway.
We are giving away five copies of the book. To enter:
- Post a tweet mentioning the book and linking to its page on the Pragmatic Bookshelf site. For your convenience, here is a link you can use: http://bitly.com/GQuick2
- Tweets will be judged based on creativity and uniqueness.
- On Monday, the 28th, we will announce the top five tweeters based on those criteria, and each of them will get a paper copy of the book!
You are welcome to tweet more than once. Each tweet will be entered in the contest and evaluated. So, put on your thinking caps, get a cup of coffee to get those creative juices flowing and start tweeting!
Thursday, January 16, 2014
Introducing Grails 2: A Quick-Start Guide
Now there’s a great way to get up to speed quickly with Grails 2.3! Grails 2: A Quick-Start Guide is finally done and available.
It’s the same fun, fast-paced tutorial that garnered reviews like “Mr. Klein's easy writing style and terrific examples gave me a clear understanding of the power of Grails and allowed me to see for myself what all of the buzz is about. Great book. Highly recommended” and “The best 200 pages of technical literature I have ever read. This is a true 'No Fluff Just Stuff' book.”
We’re still working through the process of building an app from start to finish, but now we're doing it entirely with Grails 2.3. So, if you're looking to get started with this powerful and popular web framework — or want to help another developer get up to speed — you really should take a look at Grails 2: A Quick-Start Guide. On the publisher's site, at bit.ly/GQuick2, you can view the table of contents and even download one of the first chapters.
So, check it out and let us know what you think.
Thanks!
Dave and Ben
It’s the same fun, fast-paced tutorial that garnered reviews like “Mr. Klein's easy writing style and terrific examples gave me a clear understanding of the power of Grails and allowed me to see for myself what all of the buzz is about. Great book. Highly recommended” and “The best 200 pages of technical literature I have ever read. This is a true 'No Fluff Just Stuff' book.”
We’re still working through the process of building an app from start to finish, but now we're doing it entirely with Grails 2.3. So, if you're looking to get started with this powerful and popular web framework — or want to help another developer get up to speed — you really should take a look at Grails 2: A Quick-Start Guide. On the publisher's site, at bit.ly/GQuick2, you can view the table of contents and even download one of the first chapters.
So, check it out and let us know what you think.
Thanks!
Dave and Ben
Monday, December 12, 2011
Grails: A Quick-Start Guide is back
No, there isn’t a second edition (yet). But some may have noticed that the ebook of Grails: A Quick-Start Guide (or GQuick) was no longer available on The Pragmatic Programmers’ site. The thought was that it was becoming obsolete. But after several requests from developers who are still getting started with the Grails 1.x framework, the publisher decided to make it available for a while longer.
Once Grails 2.0 is out and beginning to be widely adopted, GQuick will probably be retired. But for now, it remains one of the best options for developers wanting to quickly take advantage of the powerful Grails framework.
The publisher is no longer printing copies of GQuick, but if you really want a copy of the dead-tree edition, you can find one on Amazon.com. (The price seems to be climbing, though. Currently, new copies are going for $54.39, and used copies for $48.85.)
For those who have asked, I am working on a Grails 2 intro book (publisher to be determined). Stay tuned.
Once Grails 2.0 is out and beginning to be widely adopted, GQuick will probably be retired. But for now, it remains one of the best options for developers wanting to quickly take advantage of the powerful Grails framework.
The publisher is no longer printing copies of GQuick, but if you really want a copy of the dead-tree edition, you can find one on Amazon.com. (The price seems to be climbing, though. Currently, new copies are going for $54.39, and used copies for $48.85.)
For those who have asked, I am working on a Grails 2 intro book (publisher to be determined). Stay tuned.
Subscribe to:
Posts (Atom)