Is it possible to use checkpointstore-jedis in spring-cloud-azure-starter-integration-eventhubs

Feona Sun 0 Reputation points
2023-05-15T10:52:57.4933333+00:00

I am learning about the Azure event hub service, and trying to integrate it with spring by using spring-cloud-azure-starter-integration-eventhubs.

I'd like to use azure-messaging-eventhubs-checkpointstore-jedis as checkpoint-store instead of Blob, I am not sure is this feasible. If not feasible, how to implement this?

Is there anyone could give some directions?

Thanks.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
637 questions
Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
124 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruno Lucas 4,431 Reputation points MVP
    2023-05-16T10:25:54.1833333+00:00

    Hi

    The Consumer code could use an alternative storage and look like that's what that code is doing.

    This code has the instructions: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-jedis/src/samples/java/com/azure/messaging/eventhubs/checkpointstore/jedis/JedisCheckpointStoreSample.java

    how to create the redis:

    https://video2.skills-academy.com/en-us/azure/azure-cache-for-redis/quickstart-create-redis

    add the redis host name:

    User's image

    Then add the key:

    User's image

    This should do for the checkpoint storage. The rest is like any other event hub consumer:

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.