You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-hubs/event-hubs-java-get-started-send.md
+34-3Lines changed: 34 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ manager: timlt
8
8
ms.service: event-hubs
9
9
ms.workload: core
10
10
ms.topic: article
11
-
ms.date: 08/20/2018
11
+
ms.date: 08/27/2018
12
12
ms.author: shvija
13
13
14
14
---
@@ -32,13 +32,13 @@ The code in this tutorial is based on the [SimpleSend GitHub sample](https://git
32
32
33
33
## Send events to Event Hubs
34
34
35
-
The Java client library for Event Hubs is available for use in Maven projects from the [Maven Central Repository](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-eventhubs%22). You can reference this library using the following dependency declaration inside your Maven project file. The current version is 1.0.1:
35
+
The Java client library for Event Hubs is available for use in Maven projects from the [Maven Central Repository](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-eventhubs%22). You can reference this library using the following dependency declaration inside your Maven project file. The current version is 1.0.2:
### How messages are routed to EventHub partitions
110
+
111
+
Before messages are retrieved by consumers, they have to be published to the partitions first by the publishers. When messages are published to event hub synchronously using the sendSync() method on the com.microsoft.azure.eventhubs.EventHubClient object, the message could be sent to a specific partition or distributed to all available partitions in a round-robin manner depending on whether the partition key is specified or not.
112
+
113
+
When a string representing the partition key is specified, the key will be hashed to determine which partition to send the event to.
114
+
115
+
When the partition key is not set, then messages will round-robined to all available partitions
0 commit comments