Skip to content
Discussion options

You must be logged in to vote

Well, so much for that adventure. I figured out a way around it (although I'd rather just use a single partition - since some files might take a LONG time and others very short. That means I'm going to have hanging threads that are just listening to nothing)

I found two ways around it - and for now I'll run with partitions because it's more straightforward.

  1. Create the topic with 3 partitions
  2. when sending the messages, I did this:
        int partitionOffset = 0;
        int numOfPartitions = 3;
        for(DownloadFileRequest request : sendMe) {
            producer.sendDownloadRequest(UUID.randomUUID(), (partitionOffset++%numOfPartitions), request);
        }

Which appropriately hashe…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@graemerocher
Comment options

@krickert
Comment options

Answer selected by krickert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants