For a collection of several complete sample applications using Flink with
Kafka, see https://github.com/confluentinc/flink-cookbook.

And I agree with Marco -- in fact, I would go farther, and say that using
Spring Boot with Flink is an anti-pattern.

David

On Wed, Feb 7, 2024 at 4:37 PM Marco Villalobos <mvillalo...@kineteque.com>
wrote:

> Hi Nida,
>
> You can find sample code for using Kafka here:
> https://kafka.apache.org/documentation/
> You can find sample code for using Flink here:
> https://nightlies.apache.org/flink/flink-docs-stable/
> You can find sample code for using Flink with Kafka here:
> https://nightlies.apache.org/flink/flink-docs-release-1.18/docs/connectors/datastream/kafka/
>
> You can find sample code for using Spring Boot here:
> https://docs.spring.io/spring-boot/docs/3.2.2/reference/htmlsingle/
> You can find sample code for using Spring Boot with Kafka here:
> https://docs.spring.io/spring-boot/docs/3.2.2/reference/htmlsingle/#messaging.kafka
>
> As far as sample code for using Spring Boot with Apache Flink in the same
> process, you won't find it because both technologies solve different
> problems. Apache Flink is stream programming. Code is submitted to a Flink
> cluster.
>
> Spring Boot is micro-services, IoC, integration, application framework for
> building stand-alone applications (it doesn't run on a cluster).
>
> You don't need Spring Boot in an Apache Flink application and there is now
> way to use Apache Flink within a Spring Boot application.
>
> But, maybe can elaborate on why you think it is necessary to use Spring
> Boot with Apache Flink?
>
>
> Why would you need Spring Boot to for a Flink Job?
>
> > On Feb 6, 2024, at 3:22 AM, Fidea Lidea <lideafidea...@gmail.com> wrote:
> >
> > Hi Team,
> >
> > I request you to provide sample codes on data streaming using flink,
> kafka and spring boot.
> >
> > Awaiting your response.
> >
> > Thanks & Regards
> > Nida Shaikh
>
>

Reply via email to