Skip to content

Commit 2829507

Browse files
committed
OAuth samples
1 parent 4ef6f08 commit 2829507

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

articles/event-hubs/event-hubs-for-kafka-ecosystem-overview.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ You can often use the Event Hubs Kafka endpoint from your applications without c
1717

1818
Conceptually, Kafka and Event Hubs are very similar: they're both partitioned logs built for streaming data, whereby the client controls which part of the retained log it wants to read. The following table maps concepts between Kafka and Event Hubs.
1919

20-
### Kafka and Event Hub conceptual mapping
20+
### Kafka and Event Hubs conceptual mapping
2121

2222
| Kafka Concept | Event Hubs Concept|
2323
| --- | --- |
2424
| Cluster | Namespace |
25-
| Topic | Event Hub |
25+
| Topic | An event hub |
2626
| Partition | Partition|
2727
| Consumer Group | Consumer Group |
2828
| Offset | Offset|
@@ -64,6 +64,10 @@ sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginMo
6464
sasl.login.callback.handler.class=CustomAuthenticateCallbackHandler
6565
```
6666

67+
> [!NOTE]
68+
> The above configuration properties are for the Java programming language. For **samples** that show how to use OAuth with Event Hubs for Kafka using different programming languages, see [samples on GitHub](https://github.com/Azure/azure-event-hubs-for-kafka/tree/master/tutorials/oauth).
69+
70+
6771
### Shared Access Signature (SAS)
6872
Event Hubs also provides the **Shared Access Signatures (SAS)** for delegated access to Event Hubs for Kafka resources. Authorizing access using OAuth 2.0 token-based mechanism provides superior security and ease of use over SAS. The built-in roles can also eliminate the need for ACL-based authorization, which has to be maintained and managed by the user. You can use this feature with your Kafka clients by specifying **SASL_SSL** for the protocol and **PLAIN** for the mechanism.
6973

@@ -86,8 +90,6 @@ sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule require
8690
#### Samples
8791
For a **tutorial** with step-by-step instructions to create an event hub and access it using SAS or OAuth, see [Quickstart: Data streaming with Event Hubs using the Kafka protocol](event-hubs-quickstart-kafka-enabled-event-hubs.md).
8892

89-
For more **samples** that show how to use OAuth with Event Hubs for Kafka, see [samples on GitHub](https://github.com/Azure/azure-event-hubs-for-kafka/tree/master/tutorials/oauth).
90-
9193
## Other Event Hubs features
9294

9395
The Event Hubs for Apache Kafka feature is one of three protocols concurrently available on Azure Event Hubs, complementing HTTP and AMQP. You can write with any of these protocols and read with any another, so that your current Apache Kafka producers can continue publishing via Apache Kafka, but your reader can benefit from the native integration with Event Hubs' AMQP interface, such as Azure Stream Analytics or Azure Functions. Conversely, you can readily integrate Azure Event Hubs into AMQP routing networks as a target endpoint, and yet read data through Apache Kafka integrations.
@@ -96,7 +98,7 @@ Additionally, Event Hubs features such as [Capture](event-hubs-capture-overview.
9698

9799
## Apache Kafka feature differences
98100

99-
The goal of Event Hubs for Apache Kafka is to provide access to Azure Event Hub's capabilities to applications that are locked into the Apache Kafka API and would otherwise have to be backed by an Apache Kafka cluster.
101+
The goal of Event Hubs for Apache Kafka is to provide access to Azure Event Hubs capabilities to applications that are locked into the Apache Kafka API and would otherwise have to be backed by an Apache Kafka cluster.
100102

101103
As explained [above](#is-apache-kafka-the-right-solution-for-your-workload), the Azure Messaging fleet provides rich and robust coverage for a multitude of messaging scenarios, and although the following features aren't currently supported through Event Hubs' support for the Apache Kafka API, we point out where and how the desired capability is available.
102104

@@ -110,7 +112,7 @@ The client-side [compression](https://cwiki.apache.org/confluence/display/KAFKA/
110112

111113
This feature is fundamentally at odds with Azure Event Hubs' multi-protocol model, which allows for messages, even those sent in batches, to be individually retrievable from the broker and through any protocol.
112114

113-
The payload of any Event Hub event is a byte stream and the content can be compressed with an algorithm of your choosing. The Apache Avro encoding format supports compression natively.
115+
The payload of any Event Hubs event is a byte stream and the content can be compressed with an algorithm of your choosing. The Apache Avro encoding format supports compression natively.
114116

115117
### Log Compaction
116118

@@ -139,3 +141,7 @@ If you must use the Kafka Streams framework on Azure, [Apache Kafka on HDInsight
139141

140142
## Next steps
141143
This article provided an introduction to Event Hubs for Kafka. To learn more, see [Apache Kafka developer guide for Azure Event Hubs](apache-kafka-developer-guide.md).
144+
145+
For a **tutorial** with step-by-step instructions to create an event hub and access it using SAS or OAuth, see [Quickstart: Data streaming with Event Hubs using the Kafka protocol](event-hubs-quickstart-kafka-enabled-event-hubs.md).
146+
147+
Also, see the [OAuth samples on GitHub](https://github.com/Azure/azure-event-hubs-for-kafka/tree/master/tutorials/oauth).

0 commit comments

Comments
 (0)