Skip to content

Commit

Permalink
chore: update concurrency level to 20 (#329)
Browse files Browse the repository at this point in the history
* chore: update concurrency level to 20

* chore: update default max conn based on perf tests
  • Loading branch information
pratik151192 authored Dec 4, 2023
1 parent 3b9232c commit af3f521
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public class BatchUtilsExample {
private static final String CACHE_NAME = "cache";

// represents the concurrency level for the batch of requests we send to Momento
private static final int MAX_CONCURRENT_REQUESTS = 5;
private static final int MAX_CONCURRENT_REQUESTS = 20;

private static final int TOTAL_KEYS = 20;
private static final int TOTAL_KEYS = 100;

public static void main(String[] args) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class MomentoBatchUtils implements Closeable {

private final Logger logger = LoggerFactory.getLogger(MomentoBatchUtils.class);

private static final int DEFAULT_MAX_CONCURRENT_REQUESTS = 5;
private static final int DEFAULT_MAX_CONCURRENT_REQUESTS = 20;

private static final int DEFAULT_REQUEST_TIMEOUT_SECONDS = 10;

Expand Down

0 comments on commit af3f521

Please sign in to comment.