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/use-log-compaction.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.date: 06/19/2023
7
7
---
8
8
9
9
# Use log compaction
10
-
This article shows you how to use log compaction feature in Event Hubs. To understand the details of log compaction, see [Log Compaction](log-compaction.md).
10
+
This article shows you how to use log compaction feature in Event Hubs. To understand the details of log compaction, see [Log Compaction](log-compaction.md).
11
11
12
12
In this article you'll, follow these key steps:
13
13
- Create a compacted event hub/Kafka topic.
@@ -18,10 +18,10 @@ In this article you'll, follow these key steps:
18
18
> Log compaction feature isn't supported in the **Basic** tier.
19
19
20
20
## Create a compacted event hub/Kafka topic
21
-
This section shows you how to create a compacted event hub using Azure portal and an Azure Resource Manager (ARM) template.
21
+
This section shows you how to create a compacted event hub using Azure portal and an Azure Resource Manager (ARM) template.
22
22
23
23
### [Azure portal](#tab/portal)
24
-
You can create a compacted event hub using the Azure portal by following these steps.
24
+
You can create a compacted event hub using the Azure portal by following these steps.
25
25
26
26
1. Navigate to your Event Hubs namespace.
27
27
1. On the Event Hubs Namespace page, select Event Hubs in the left menu.
@@ -32,7 +32,7 @@ You can create a compacted event hub using the Azure portal by following these s
32
32
1. Select *create* and create the compacted event hub.
33
33
34
34
### [ARM template](#tab/arm)
35
-
The following example shows how to create a compacted event hub/Kafka topic using an ARM template.
35
+
The following example shows how to create a compacted event hub/Kafka topic using an ARM template.
36
36
37
37
```json
38
38
"resources": [
@@ -54,14 +54,13 @@ The following example shows how to create a compacted event hub/Kafka topic usin
54
54
]
55
55
```
56
56
57
-
58
57
---
59
58
60
59
## Triggering compaction
61
60
Event Hubs service determines when the compaction job of a given compacted event hub should be executed. Compacted event hub reaches the compaction threshold when there are considerable number of events or the total size of a given event log grows significantly.
62
61
63
62
## Publish event to a compacted topic
64
-
Publishing events to a compacted event hub is the same as publishing events to a regular event hub. As the client application you only need to determine the compaction key, which you set using partition key.
63
+
Publishing events to a compacted event hub is the same as publishing events to a regular event hub. As the client application you only need to determine the compaction key, which you set using partition key.
65
64
66
65
### Using Event Hubs SDK(AMQP)
67
66
With Event Hubs SDK, you can set partition key and publish events as shown below:
0 commit comments