• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Kafka Streams in Action: Stream DSL vs Processor API

 
Greenhorn
Posts: 27
IntelliJ IDE Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can you tell about pros and cons of using  stream DSL and Processor API and about cases, when one of them is more appropriate than another?
 
author
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Timur,

The DSL makes it easier to write Kafka Streams applications and handles pretty much the low-level details of building a topology.  However, the DSL is "opinionated" in that you can only create what the DSL offers you.  With the Processor API you have to do all the low-level work yourself to put together your topology, but you have no restrictions on what you can build.

Overall my recommendation is to start with the DSL and if you find you need some functionality the DSL doesn't offer, then use the Processor API.

Cheers,
Bill
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!