From a2ad4edd7b05a8e604c637e95702b7f061891ad3 Mon Sep 17 00:00:00 2001 From: gharley Date: Fri, 16 Mar 2018 16:31:27 +0000 Subject: [PATCH] Minor update to Java sharding tutorial instructions (#112) --- tutorials/java/sharding-tutorial.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tutorials/java/sharding-tutorial.md b/tutorials/java/sharding-tutorial.md index 6e2534f..37e1f05 100644 --- a/tutorials/java/sharding-tutorial.md +++ b/tutorials/java/sharding-tutorial.md @@ -33,7 +33,7 @@ A diagram of the shard architecture is below Typically a shard deployment would consist of two different application containers (the router and the shard), two different deployment configurations and two services to connect pieces together. That's a lot of YAML and a lot of complexity for an enduser to absorb to implement a fairly straightforward concept. -To show how Metaparticle/Sharding can help dramatically simplify this, here is the corresponding code in Java: +To show how Metaparticle/Sharding can help dramatically simplify this, here is the corresponding code in Java (where `your-docker-user-goes-here` needs to be replaced with a Docker Hub user name): ```java package io.metaparticle.examples.web; @@ -58,9 +58,10 @@ public class Main { shards = 4, urlShardPattern = "^\\/users\\/([^\\/]*)\\/.*", executor="metaparticle") - @Package(repository="brendanburns", + @Package(repository="your-docker-user-goes-here", verbose=true, - jarFile="target/metaparticle-package-0.1-SNAPSHOT-jar-with-dependencies.jar") + publish = true, + jarFile="target/metaparticle-package-tutorial-0.1-SNAPSHOT-jar-with-dependencies.jar") public static void main(String[] args) { Containerize(() -> { try {