Over a million developers have joined DZone.

Spring for Apache Kafka 1.0 Milestone 2 Available

The second milestone for Spring with Apache Kafka has been released, along with a peak of what's coming next.

· Java Zone

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

I am pleased to announce that the spring-kafka (Spring for Apache Kafka) Second Milestone for version 1.0 is now available.

The artifacts org.springframework.kafka:spring-kafka:1.0.0.M2 and org.springframework.kafka:spring-kafka-test:1.0.0.M2 are available in the Milestone repository.

Changes since the First Milestone include:

  • KafkaTemplate.send() methods now return ListenableFuture<SendResult<K, V>>
    to track publishing to the Kafka topic asynchronously.
  • The MessagingMessageListenerAdapter (for @KafkaListener method) can now infer the type for payload conversion from the method arguments.
  • A StringJsonMessageConverter, which can use the type inference to build the target object from JSON content using the Jackson ObjectMapper.
  • RECEIVED_ headers have been added from the Listener to avoid clashing (re-routing) to the same topic with the same messageKey when sending, e.g. with the Spring Integration Adapters.
  • More testing utilities.

See also the Reference Manual for more information.

Spring Integration Kafka Support

Don’t miss the First Milestone for Spring Integration Kafka 2.0 which is fully based on this Spring for Apache Kafka foundation.

Next Steps

  • The Spring Boot Kafka starter and AutoConfiguration is in progress.
  • A new Binder implementation for spring-cloud-stream.
  • Flesh out the documentation, set up a project page etc.

Also we looking into the version 1.1 already to implement the interaction with Kafka using Reactive Streams with Reactor’s Flux and Mono abstractions. At the same time the Apache Kafka 0.10.0 with its Kafka Streams feature, which would also be good addition into Spring for Apache Kafka 1.1, too.

Meanwhile we look forward to your feedback and if all goes well plan to release 1.0.0.RELEASE in the next few weeks!

Project Page | Documentation | Help

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:
spring architecture ,kafka ,java ,jvm

Published at DZone with permission of Joshua Long, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}